Lines Matching refs:wrqu

1827 	union iwreq_data wrqu = {  in ipw2100_down()  local
1871 wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL); in ipw2100_down()
1940 union iwreq_data wrqu = { in ipw2100_reset_adapter() local
1965 wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL); in ipw2100_reset_adapter()
2158 union iwreq_data wrqu; in ipw2100_scan_event() local
2160 wrqu.data.length = 0; in ipw2100_scan_event()
2161 wrqu.data.flags = 0; in ipw2100_scan_event()
2162 wireless_send_event(priv->net_dev, SIOCGIWSCAN, &wrqu, NULL); in ipw2100_scan_event()
6572 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_name() argument
6580 strcpy(wrqu->name, "unassociated"); in ipw2100_wx_get_name()
6582 snprintf(wrqu->name, IFNAMSIZ, "IEEE 802.11b"); in ipw2100_wx_get_name()
6584 IPW_DEBUG_WX("Name: %s\n", wrqu->name); in ipw2100_wx_get_name()
6590 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_freq() argument
6593 struct iw_freq *fwrq = &wrqu->freq; in ipw2100_wx_set_freq()
6636 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_freq() argument
6644 wrqu->freq.e = 0; in ipw2100_wx_get_freq()
6650 wrqu->freq.m = priv->channel; in ipw2100_wx_get_freq()
6652 wrqu->freq.m = 0; in ipw2100_wx_get_freq()
6661 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_mode() argument
6666 IPW_DEBUG_WX("SET Mode -> %d\n", wrqu->mode); in ipw2100_wx_set_mode()
6668 if (wrqu->mode == priv->ieee->iw_mode) in ipw2100_wx_set_mode()
6677 switch (wrqu->mode) { in ipw2100_wx_set_mode()
6700 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_mode() argument
6708 wrqu->mode = priv->ieee->iw_mode; in ipw2100_wx_get_mode()
6709 IPW_DEBUG_WX("GET Mode -> %d\n", wrqu->mode); in ipw2100_wx_get_mode()
6735 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_range() argument
6746 wrqu->data.length = sizeof(*range); in ipw2100_wx_get_range()
6860 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_wap() argument
6866 if (wrqu->ap_addr.sa_family != ARPHRD_ETHER) in ipw2100_wx_set_wap()
6875 if (is_broadcast_ether_addr(wrqu->ap_addr.sa_data) || in ipw2100_wx_set_wap()
6876 is_zero_ether_addr(wrqu->ap_addr.sa_data)) { in ipw2100_wx_set_wap()
6885 memcpy(priv->mandatory_bssid_mac, wrqu->ap_addr.sa_data, ETH_ALEN); in ipw2100_wx_set_wap()
6887 err = ipw2100_set_mandatory_bssid(priv, wrqu->ap_addr.sa_data, 0); in ipw2100_wx_set_wap()
6889 IPW_DEBUG_WX("SET BSSID -> %pM\n", wrqu->ap_addr.sa_data); in ipw2100_wx_set_wap()
6898 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_wap() argument
6909 wrqu->ap_addr.sa_family = ARPHRD_ETHER; in ipw2100_wx_get_wap()
6910 memcpy(wrqu->ap_addr.sa_data, priv->bssid, ETH_ALEN); in ipw2100_wx_get_wap()
6912 eth_zero_addr(wrqu->ap_addr.sa_data); in ipw2100_wx_get_wap()
6914 IPW_DEBUG_WX("Getting WAP BSSID: %pM\n", wrqu->ap_addr.sa_data); in ipw2100_wx_get_wap()
6920 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_essid() argument
6933 if (wrqu->essid.flags && wrqu->essid.length) { in ipw2100_wx_set_essid()
6934 length = wrqu->essid.length; in ipw2100_wx_set_essid()
6969 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_essid() argument
6983 wrqu->essid.length = priv->essid_len; in ipw2100_wx_get_essid()
6984 wrqu->essid.flags = 1; /* active */ in ipw2100_wx_get_essid()
6987 wrqu->essid.length = 0; in ipw2100_wx_get_essid()
6988 wrqu->essid.flags = 0; /* active */ in ipw2100_wx_get_essid()
6996 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_nick() argument
7004 if (wrqu->data.length > IW_ESSID_MAX_SIZE) in ipw2100_wx_set_nick()
7007 wrqu->data.length = min_t(size_t, wrqu->data.length, sizeof(priv->nick)); in ipw2100_wx_set_nick()
7009 memcpy(priv->nick, extra, wrqu->data.length); in ipw2100_wx_set_nick()
7018 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_nick() argument
7026 wrqu->data.length = strlen(priv->nick); in ipw2100_wx_get_nick()
7027 memcpy(extra, priv->nick, wrqu->data.length); in ipw2100_wx_get_nick()
7028 wrqu->data.flags = 1; /* active */ in ipw2100_wx_get_nick()
7037 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_rate() argument
7040 u32 target_rate = wrqu->bitrate.value; in ipw2100_wx_set_rate()
7053 (!wrqu->bitrate.fixed && target_rate > 1000000)) in ipw2100_wx_set_rate()
7056 (!wrqu->bitrate.fixed && target_rate > 2000000)) in ipw2100_wx_set_rate()
7059 (!wrqu->bitrate.fixed && target_rate > 5500000)) in ipw2100_wx_set_rate()
7062 (!wrqu->bitrate.fixed && target_rate > 11000000)) in ipw2100_wx_set_rate()
7077 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_rate() argument
7087 wrqu->bitrate.value = 0; in ipw2100_wx_get_rate()
7105 wrqu->bitrate.value = 1000000; in ipw2100_wx_get_rate()
7108 wrqu->bitrate.value = 2000000; in ipw2100_wx_get_rate()
7111 wrqu->bitrate.value = 5500000; in ipw2100_wx_get_rate()
7114 wrqu->bitrate.value = 11000000; in ipw2100_wx_get_rate()
7117 wrqu->bitrate.value = 0; in ipw2100_wx_get_rate()
7120 IPW_DEBUG_WX("GET Rate -> %d\n", wrqu->bitrate.value); in ipw2100_wx_get_rate()
7129 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_rts() argument
7135 if (wrqu->rts.fixed == 0) in ipw2100_wx_set_rts()
7144 if (wrqu->rts.disabled) in ipw2100_wx_set_rts()
7147 if (wrqu->rts.value < 1 || wrqu->rts.value > 2304) { in ipw2100_wx_set_rts()
7151 value = wrqu->rts.value; in ipw2100_wx_set_rts()
7164 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_rts() argument
7172 wrqu->rts.value = priv->rts_threshold & ~RTS_DISABLED; in ipw2100_wx_get_rts()
7173 wrqu->rts.fixed = 1; /* no auto select */ in ipw2100_wx_get_rts()
7176 wrqu->rts.disabled = (priv->rts_threshold & RTS_DISABLED) ? 1 : 0; in ipw2100_wx_get_rts()
7178 IPW_DEBUG_WX("GET RTS Threshold -> 0x%08X\n", wrqu->rts.value); in ipw2100_wx_get_rts()
7185 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_txpow() argument
7190 if (ipw_radio_kill_sw(priv, wrqu->txpower.disabled)) in ipw2100_wx_set_txpow()
7196 if ((wrqu->txpower.flags & IW_TXPOW_TYPE) != IW_TXPOW_DBM) in ipw2100_wx_set_txpow()
7199 if (wrqu->txpower.fixed == 0) in ipw2100_wx_set_txpow()
7202 if (wrqu->txpower.value < IPW_TX_POWER_MIN_DBM || in ipw2100_wx_set_txpow()
7203 wrqu->txpower.value > IPW_TX_POWER_MAX_DBM) in ipw2100_wx_set_txpow()
7206 value = wrqu->txpower.value; in ipw2100_wx_set_txpow()
7226 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_txpow() argument
7234 wrqu->txpower.disabled = (priv->status & STATUS_RF_KILL_MASK) ? 1 : 0; in ipw2100_wx_get_txpow()
7237 wrqu->txpower.fixed = 0; in ipw2100_wx_get_txpow()
7238 wrqu->txpower.value = IPW_TX_POWER_MAX_DBM; in ipw2100_wx_get_txpow()
7240 wrqu->txpower.fixed = 1; in ipw2100_wx_get_txpow()
7241 wrqu->txpower.value = priv->tx_power; in ipw2100_wx_get_txpow()
7244 wrqu->txpower.flags = IW_TXPOW_DBM; in ipw2100_wx_get_txpow()
7246 IPW_DEBUG_WX("GET TX Power -> %d\n", wrqu->txpower.value); in ipw2100_wx_get_txpow()
7253 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_frag() argument
7261 if (!wrqu->frag.fixed) in ipw2100_wx_set_frag()
7264 if (wrqu->frag.disabled) { in ipw2100_wx_set_frag()
7268 if (wrqu->frag.value < MIN_FRAG_THRESHOLD || in ipw2100_wx_set_frag()
7269 wrqu->frag.value > MAX_FRAG_THRESHOLD) in ipw2100_wx_set_frag()
7272 priv->ieee->fts = wrqu->frag.value & ~0x1; in ipw2100_wx_set_frag()
7283 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_frag() argument
7290 wrqu->frag.value = priv->frag_threshold & ~FRAG_DISABLED; in ipw2100_wx_get_frag()
7291 wrqu->frag.fixed = 0; /* no auto select */ in ipw2100_wx_get_frag()
7292 wrqu->frag.disabled = (priv->frag_threshold & FRAG_DISABLED) ? 1 : 0; in ipw2100_wx_get_frag()
7294 IPW_DEBUG_WX("GET Frag Threshold -> %d\n", wrqu->frag.value); in ipw2100_wx_get_frag()
7301 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_retry() argument
7306 if (wrqu->retry.flags & IW_RETRY_LIFETIME || wrqu->retry.disabled) in ipw2100_wx_set_retry()
7309 if (!(wrqu->retry.flags & IW_RETRY_LIMIT)) in ipw2100_wx_set_retry()
7318 if (wrqu->retry.flags & IW_RETRY_SHORT) { in ipw2100_wx_set_retry()
7319 err = ipw2100_set_short_retry(priv, wrqu->retry.value); in ipw2100_wx_set_retry()
7321 wrqu->retry.value); in ipw2100_wx_set_retry()
7325 if (wrqu->retry.flags & IW_RETRY_LONG) { in ipw2100_wx_set_retry()
7326 err = ipw2100_set_long_retry(priv, wrqu->retry.value); in ipw2100_wx_set_retry()
7328 wrqu->retry.value); in ipw2100_wx_set_retry()
7332 err = ipw2100_set_short_retry(priv, wrqu->retry.value); in ipw2100_wx_set_retry()
7334 err = ipw2100_set_long_retry(priv, wrqu->retry.value); in ipw2100_wx_set_retry()
7336 IPW_DEBUG_WX("SET Both Retry Limits -> %d\n", wrqu->retry.value); in ipw2100_wx_set_retry()
7345 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_retry() argument
7353 wrqu->retry.disabled = 0; /* can't be disabled */ in ipw2100_wx_get_retry()
7355 if ((wrqu->retry.flags & IW_RETRY_TYPE) == IW_RETRY_LIFETIME) in ipw2100_wx_get_retry()
7358 if (wrqu->retry.flags & IW_RETRY_LONG) { in ipw2100_wx_get_retry()
7359 wrqu->retry.flags = IW_RETRY_LIMIT | IW_RETRY_LONG; in ipw2100_wx_get_retry()
7360 wrqu->retry.value = priv->long_retry_limit; in ipw2100_wx_get_retry()
7362 wrqu->retry.flags = in ipw2100_wx_get_retry()
7367 wrqu->retry.value = priv->short_retry_limit; in ipw2100_wx_get_retry()
7370 IPW_DEBUG_WX("GET Retry -> %d\n", wrqu->retry.value); in ipw2100_wx_get_retry()
7377 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_scan() argument
7405 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_scan() argument
7412 return libipw_wx_get_scan(priv->ieee, info, wrqu, extra); in ipw2100_wx_get_scan()
7420 union iwreq_data *wrqu, char *key) in ipw2100_wx_set_encode() argument
7427 return libipw_wx_set_encode(priv->ieee, info, wrqu, key); in ipw2100_wx_set_encode()
7432 union iwreq_data *wrqu, char *key) in ipw2100_wx_get_encode() argument
7439 return libipw_wx_get_encode(priv->ieee, info, wrqu, key); in ipw2100_wx_get_encode()
7444 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_power() argument
7455 if (wrqu->power.disabled) { in ipw2100_wx_set_power()
7462 switch (wrqu->power.flags & IW_POWER_MODE) { in ipw2100_wx_set_power()
7469 wrqu->power.flags); in ipw2100_wx_set_power()
7489 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_power() argument
7498 wrqu->power.disabled = 1; in ipw2100_wx_get_power()
7500 wrqu->power.disabled = 0; in ipw2100_wx_get_power()
7501 wrqu->power.flags = 0; in ipw2100_wx_get_power()
7516 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_genie() argument
7526 if (wrqu->data.length > MAX_WPA_IE_LEN || in ipw2100_wx_set_genie()
7527 (wrqu->data.length && extra == NULL)) in ipw2100_wx_set_genie()
7530 if (wrqu->data.length) { in ipw2100_wx_set_genie()
7531 buf = kmemdup(extra, wrqu->data.length, GFP_KERNEL); in ipw2100_wx_set_genie()
7537 ieee->wpa_ie_len = wrqu->data.length; in ipw2100_wx_set_genie()
7552 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_genie() argument
7558 wrqu->data.length = 0; in ipw2100_wx_get_genie()
7562 if (wrqu->data.length < ieee->wpa_ie_len) in ipw2100_wx_get_genie()
7565 wrqu->data.length = ieee->wpa_ie_len; in ipw2100_wx_get_genie()
7574 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_auth() argument
7578 struct iw_param *param = &wrqu->param; in ipw2100_wx_set_auth()
7667 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_auth() argument
7672 struct iw_param *param = &wrqu->param; in ipw2100_wx_get_auth()
7727 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_encodeext() argument
7730 return libipw_wx_set_encodeext(priv->ieee, info, wrqu, extra); in ipw2100_wx_set_encodeext()
7736 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_encodeext() argument
7739 return libipw_wx_get_encodeext(priv->ieee, info, wrqu, extra); in ipw2100_wx_get_encodeext()
7745 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_mlme() argument
7773 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_promisc() argument
7804 union iwreq_data *wrqu, char *extra) in ipw2100_wx_reset() argument
7816 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_powermode() argument
7840 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_powermode() argument
7873 wrqu->data.length = strlen(extra) + 1; in ipw2100_wx_get_powermode()
7880 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_preamble() argument
7909 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_preamble() argument
7918 snprintf(wrqu->name, IFNAMSIZ, "long (1)"); in ipw2100_wx_get_preamble()
7920 snprintf(wrqu->name, IFNAMSIZ, "auto (0)"); in ipw2100_wx_get_preamble()
7928 union iwreq_data *wrqu, char *extra) in ipw2100_wx_set_crc_check() argument
7956 union iwreq_data *wrqu, char *extra) in ipw2100_wx_get_crc_check() argument
7965 snprintf(wrqu->name, IFNAMSIZ, "CRC checked (1)"); in ipw2100_wx_get_crc_check()
7967 snprintf(wrqu->name, IFNAMSIZ, "CRC ignored (0)"); in ipw2100_wx_get_crc_check()
8232 union iwreq_data wrqu; in ipw2100_wx_event_work() local
8244 wrqu.ap_addr.sa_family = ARPHRD_ETHER; in ipw2100_wx_event_work()
8251 eth_zero_addr(wrqu.ap_addr.sa_data); in ipw2100_wx_event_work()
8255 memcpy(wrqu.ap_addr.sa_data, priv->bssid, ETH_ALEN); in ipw2100_wx_event_work()
8276 wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL); in ipw2100_wx_event_work()