Lines Matching refs:wrqu
1939 union iwreq_data wrqu; in notify_wx_assoc_event() local
1940 wrqu.ap_addr.sa_family = ARPHRD_ETHER; in notify_wx_assoc_event()
1942 memcpy(wrqu.ap_addr.sa_data, priv->bssid, ETH_ALEN); in notify_wx_assoc_event()
1944 eth_zero_addr(wrqu.ap_addr.sa_data); in notify_wx_assoc_event()
1945 wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL); in notify_wx_assoc_event()
4446 union iwreq_data wrqu; in ipw_scan_event() local
4451 wrqu.data.length = 0; in ipw_scan_event()
4452 wrqu.data.flags = 0; in ipw_scan_event()
4453 wireless_send_event(priv->net_dev, SIOCGIWSCAN, &wrqu, NULL); in ipw_scan_event()
6515 union iwreq_data *wrqu, char *extra) in ipw_wx_set_genie() argument
6522 if (wrqu->data.length > MAX_WPA_IE_LEN || in ipw_wx_set_genie()
6523 (wrqu->data.length && extra == NULL)) in ipw_wx_set_genie()
6526 if (wrqu->data.length) { in ipw_wx_set_genie()
6527 buf = kmemdup(extra, wrqu->data.length, GFP_KERNEL); in ipw_wx_set_genie()
6535 ieee->wpa_ie_len = wrqu->data.length; in ipw_wx_set_genie()
6550 union iwreq_data *wrqu, char *extra) in ipw_wx_get_genie() argument
6557 wrqu->data.length = 0; in ipw_wx_get_genie()
6561 if (wrqu->data.length < ieee->wpa_ie_len) { in ipw_wx_get_genie()
6566 wrqu->data.length = ieee->wpa_ie_len; in ipw_wx_get_genie()
6593 union iwreq_data *wrqu, char *extra) in ipw_wx_set_auth() argument
6597 struct iw_param *param = &wrqu->param; in ipw_wx_set_auth()
6693 union iwreq_data *wrqu, char *extra) in ipw_wx_get_auth() argument
6698 struct iw_param *param = &wrqu->param; in ipw_wx_get_auth()
6750 union iwreq_data *wrqu, char *extra) in ipw_wx_set_encodeext() argument
6774 return libipw_wx_set_encodeext(priv->ieee, info, wrqu, extra); in ipw_wx_set_encodeext()
6780 union iwreq_data *wrqu, char *extra) in ipw_wx_get_encodeext() argument
6783 return libipw_wx_get_encodeext(priv->ieee, info, wrqu, extra); in ipw_wx_get_encodeext()
6789 union iwreq_data *wrqu, char *extra) in ipw_wx_set_mlme() argument
8641 union iwreq_data *wrqu, char *extra) in ipw_wx_set_freq() argument
8645 struct iw_freq *fwrq = &wrqu->freq; in ipw_wx_set_freq()
8690 union iwreq_data *wrqu, char *extra) in ipw_wx_get_freq() argument
8694 wrqu->freq.e = 0; in ipw_wx_get_freq()
8705 wrqu->freq.e = 1; in ipw_wx_get_freq()
8709 wrqu->freq.m = priv->ieee->geo.a[i].freq * 100000; in ipw_wx_get_freq()
8713 wrqu->freq.m = priv->ieee->geo.bg[i].freq * 100000; in ipw_wx_get_freq()
8720 wrqu->freq.m = 0; in ipw_wx_get_freq()
8729 union iwreq_data *wrqu, char *extra) in ipw_wx_set_mode() argument
8734 IPW_DEBUG_WX("Set MODE: %d\n", wrqu->mode); in ipw_wx_set_mode()
8736 switch (wrqu->mode) { in ipw_wx_set_mode()
8744 wrqu->mode = IW_MODE_INFRA; in ipw_wx_set_mode()
8749 if (wrqu->mode == priv->ieee->iw_mode) in ipw_wx_set_mode()
8760 if (wrqu->mode == IW_MODE_MONITOR) in ipw_wx_set_mode()
8772 priv->ieee->iw_mode = wrqu->mode; in ipw_wx_set_mode()
8781 union iwreq_data *wrqu, char *extra) in ipw_wx_get_mode() argument
8785 wrqu->mode = priv->ieee->iw_mode; in ipw_wx_get_mode()
8786 IPW_DEBUG_WX("Get MODE -> %d\n", wrqu->mode); in ipw_wx_get_mode()
8810 union iwreq_data *wrqu, char *extra) in ipw_wx_get_range() argument
8817 wrqu->data.length = sizeof(*range); in ipw_wx_get_range()
8904 union iwreq_data *wrqu, char *extra) in ipw_wx_set_wap() argument
8908 if (wrqu->ap_addr.sa_family != ARPHRD_ETHER) in ipw_wx_set_wap()
8911 if (is_broadcast_ether_addr(wrqu->ap_addr.sa_data) || in ipw_wx_set_wap()
8912 is_zero_ether_addr(wrqu->ap_addr.sa_data)) { in ipw_wx_set_wap()
8924 if (ether_addr_equal(priv->bssid, wrqu->ap_addr.sa_data)) { in ipw_wx_set_wap()
8931 wrqu->ap_addr.sa_data); in ipw_wx_set_wap()
8933 memcpy(priv->bssid, wrqu->ap_addr.sa_data, ETH_ALEN); in ipw_wx_set_wap()
8946 union iwreq_data *wrqu, char *extra) in ipw_wx_get_wap() argument
8955 wrqu->ap_addr.sa_family = ARPHRD_ETHER; in ipw_wx_get_wap()
8956 memcpy(wrqu->ap_addr.sa_data, priv->bssid, ETH_ALEN); in ipw_wx_get_wap()
8958 eth_zero_addr(wrqu->ap_addr.sa_data); in ipw_wx_get_wap()
8961 wrqu->ap_addr.sa_data); in ipw_wx_get_wap()
8968 union iwreq_data *wrqu, char *extra) in ipw_wx_set_essid() argument
8975 if (!wrqu->essid.flags) in ipw_wx_set_essid()
8985 length = min((int)wrqu->essid.length, IW_ESSID_MAX_SIZE); in ipw_wx_set_essid()
9012 union iwreq_data *wrqu, char *extra) in ipw_wx_get_essid() argument
9024 wrqu->essid.length = priv->essid_len; in ipw_wx_get_essid()
9025 wrqu->essid.flags = 1; /* active */ in ipw_wx_get_essid()
9028 wrqu->essid.length = 0; in ipw_wx_get_essid()
9029 wrqu->essid.flags = 0; /* active */ in ipw_wx_get_essid()
9037 union iwreq_data *wrqu, char *extra) in ipw_wx_set_nick() argument
9042 if (wrqu->data.length > IW_ESSID_MAX_SIZE) in ipw_wx_set_nick()
9045 wrqu->data.length = min_t(size_t, wrqu->data.length, sizeof(priv->nick)); in ipw_wx_set_nick()
9047 memcpy(priv->nick, extra, wrqu->data.length); in ipw_wx_set_nick()
9056 union iwreq_data *wrqu, char *extra) in ipw_wx_get_nick() argument
9061 wrqu->data.length = strlen(priv->nick); in ipw_wx_get_nick()
9062 memcpy(extra, priv->nick, wrqu->data.length); in ipw_wx_get_nick()
9063 wrqu->data.flags = 1; /* active */ in ipw_wx_get_nick()
9070 union iwreq_data *wrqu, char *extra) in ipw_wx_set_sens() argument
9075 IPW_DEBUG_WX("Setting roaming threshold to %d\n", wrqu->sens.value); in ipw_wx_set_sens()
9076 IPW_DEBUG_WX("Setting disassociate threshold to %d\n", 3*wrqu->sens.value); in ipw_wx_set_sens()
9079 if (wrqu->sens.fixed == 0) in ipw_wx_set_sens()
9085 if ((wrqu->sens.value > IPW_MB_ROAMING_THRESHOLD_MAX) || in ipw_wx_set_sens()
9086 (wrqu->sens.value < IPW_MB_ROAMING_THRESHOLD_MIN)) { in ipw_wx_set_sens()
9091 priv->roaming_threshold = wrqu->sens.value; in ipw_wx_set_sens()
9092 priv->disassociate_threshold = 3*wrqu->sens.value; in ipw_wx_set_sens()
9100 union iwreq_data *wrqu, char *extra) in ipw_wx_get_sens() argument
9104 wrqu->sens.fixed = 1; in ipw_wx_get_sens()
9105 wrqu->sens.value = priv->roaming_threshold; in ipw_wx_get_sens()
9109 wrqu->power.disabled ? "OFF" : "ON", wrqu->power.value); in ipw_wx_get_sens()
9116 union iwreq_data *wrqu, char *extra) in ipw_wx_set_rate() argument
9120 u32 target_rate = wrqu->bitrate.value; in ipw_wx_set_rate()
9135 fixed = wrqu->bitrate.fixed; in ipw_wx_set_rate()
9229 union iwreq_data *wrqu, char *extra) in ipw_wx_get_rate() argument
9233 wrqu->bitrate.value = priv->last_rate; in ipw_wx_get_rate()
9234 wrqu->bitrate.fixed = (priv->config & CFG_FIXED_RATE) ? 1 : 0; in ipw_wx_get_rate()
9236 IPW_DEBUG_WX("GET Rate -> %d\n", wrqu->bitrate.value); in ipw_wx_get_rate()
9242 union iwreq_data *wrqu, char *extra) in ipw_wx_set_rts() argument
9246 if (wrqu->rts.disabled || !wrqu->rts.fixed) in ipw_wx_set_rts()
9249 if (wrqu->rts.value < MIN_RTS_THRESHOLD || in ipw_wx_set_rts()
9250 wrqu->rts.value > MAX_RTS_THRESHOLD) { in ipw_wx_set_rts()
9254 priv->rts_threshold = wrqu->rts.value; in ipw_wx_set_rts()
9265 union iwreq_data *wrqu, char *extra) in ipw_wx_get_rts() argument
9269 wrqu->rts.value = priv->rts_threshold; in ipw_wx_get_rts()
9270 wrqu->rts.fixed = 0; /* no auto select */ in ipw_wx_get_rts()
9271 wrqu->rts.disabled = (wrqu->rts.value == DEFAULT_RTS_THRESHOLD); in ipw_wx_get_rts()
9273 IPW_DEBUG_WX("GET RTS Threshold -> %d\n", wrqu->rts.value); in ipw_wx_get_rts()
9279 union iwreq_data *wrqu, char *extra) in ipw_wx_set_txpow() argument
9285 if (ipw_radio_kill_sw(priv, wrqu->power.disabled)) { in ipw_wx_set_txpow()
9290 if (!wrqu->power.fixed) in ipw_wx_set_txpow()
9291 wrqu->power.value = IPW_TX_POWER_DEFAULT; in ipw_wx_set_txpow()
9293 if (wrqu->power.flags != IW_TXPOW_DBM) { in ipw_wx_set_txpow()
9298 if ((wrqu->power.value > IPW_TX_POWER_MAX) || in ipw_wx_set_txpow()
9299 (wrqu->power.value < IPW_TX_POWER_MIN)) { in ipw_wx_set_txpow()
9304 priv->tx_power = wrqu->power.value; in ipw_wx_set_txpow()
9313 union iwreq_data *wrqu, char *extra) in ipw_wx_get_txpow() argument
9317 wrqu->power.value = priv->tx_power; in ipw_wx_get_txpow()
9318 wrqu->power.fixed = 1; in ipw_wx_get_txpow()
9319 wrqu->power.flags = IW_TXPOW_DBM; in ipw_wx_get_txpow()
9320 wrqu->power.disabled = (priv->status & STATUS_RF_KILL_MASK) ? 1 : 0; in ipw_wx_get_txpow()
9324 wrqu->power.disabled ? "OFF" : "ON", wrqu->power.value); in ipw_wx_get_txpow()
9331 union iwreq_data *wrqu, char *extra) in ipw_wx_set_frag() argument
9335 if (wrqu->frag.disabled || !wrqu->frag.fixed) in ipw_wx_set_frag()
9338 if (wrqu->frag.value < MIN_FRAG_THRESHOLD || in ipw_wx_set_frag()
9339 wrqu->frag.value > MAX_FRAG_THRESHOLD) { in ipw_wx_set_frag()
9344 priv->ieee->fts = wrqu->frag.value & ~0x1; in ipw_wx_set_frag()
9347 ipw_send_frag_threshold(priv, wrqu->frag.value); in ipw_wx_set_frag()
9349 IPW_DEBUG_WX("SET Frag Threshold -> %d\n", wrqu->frag.value); in ipw_wx_set_frag()
9355 union iwreq_data *wrqu, char *extra) in ipw_wx_get_frag() argument
9359 wrqu->frag.value = priv->ieee->fts; in ipw_wx_get_frag()
9360 wrqu->frag.fixed = 0; /* no auto select */ in ipw_wx_get_frag()
9361 wrqu->frag.disabled = (wrqu->frag.value == DEFAULT_FTS); in ipw_wx_get_frag()
9363 IPW_DEBUG_WX("GET Frag Threshold -> %d\n", wrqu->frag.value); in ipw_wx_get_frag()
9370 union iwreq_data *wrqu, char *extra) in ipw_wx_set_retry() argument
9374 if (wrqu->retry.flags & IW_RETRY_LIFETIME || wrqu->retry.disabled) in ipw_wx_set_retry()
9377 if (!(wrqu->retry.flags & IW_RETRY_LIMIT)) in ipw_wx_set_retry()
9380 if (wrqu->retry.value < 0 || wrqu->retry.value >= 255) in ipw_wx_set_retry()
9384 if (wrqu->retry.flags & IW_RETRY_SHORT) in ipw_wx_set_retry()
9385 priv->short_retry_limit = (u8) wrqu->retry.value; in ipw_wx_set_retry()
9386 else if (wrqu->retry.flags & IW_RETRY_LONG) in ipw_wx_set_retry()
9387 priv->long_retry_limit = (u8) wrqu->retry.value; in ipw_wx_set_retry()
9389 priv->short_retry_limit = (u8) wrqu->retry.value; in ipw_wx_set_retry()
9390 priv->long_retry_limit = (u8) wrqu->retry.value; in ipw_wx_set_retry()
9403 union iwreq_data *wrqu, char *extra) in ipw_wx_get_retry() argument
9408 wrqu->retry.disabled = 0; in ipw_wx_get_retry()
9410 if ((wrqu->retry.flags & IW_RETRY_TYPE) == IW_RETRY_LIFETIME) { in ipw_wx_get_retry()
9415 if (wrqu->retry.flags & IW_RETRY_LONG) { in ipw_wx_get_retry()
9416 wrqu->retry.flags = IW_RETRY_LIMIT | IW_RETRY_LONG; in ipw_wx_get_retry()
9417 wrqu->retry.value = priv->long_retry_limit; in ipw_wx_get_retry()
9418 } else if (wrqu->retry.flags & IW_RETRY_SHORT) { in ipw_wx_get_retry()
9419 wrqu->retry.flags = IW_RETRY_LIMIT | IW_RETRY_SHORT; in ipw_wx_get_retry()
9420 wrqu->retry.value = priv->short_retry_limit; in ipw_wx_get_retry()
9422 wrqu->retry.flags = IW_RETRY_LIMIT; in ipw_wx_get_retry()
9423 wrqu->retry.value = priv->short_retry_limit; in ipw_wx_get_retry()
9427 IPW_DEBUG_WX("GET retry -> %d\n", wrqu->retry.value); in ipw_wx_get_retry()
9434 union iwreq_data *wrqu, char *extra) in ipw_wx_set_scan() argument
9444 if (wrqu->data.length == sizeof(struct iw_scan_req)) { in ipw_wx_set_scan()
9445 if (wrqu->data.flags & IW_SCAN_THIS_ESSID) { in ipw_wx_set_scan()
9470 union iwreq_data *wrqu, char *extra) in ipw_wx_get_scan() argument
9473 return libipw_wx_get_scan(priv->ieee, info, wrqu, extra); in ipw_wx_get_scan()
9478 union iwreq_data *wrqu, char *key) in ipw_wx_set_encode() argument
9485 ret = libipw_wx_set_encode(priv->ieee, info, wrqu, key); in ipw_wx_set_encode()
9500 union iwreq_data *wrqu, char *key) in ipw_wx_get_encode() argument
9503 return libipw_wx_get_encode(priv->ieee, info, wrqu, key); in ipw_wx_get_encode()
9508 union iwreq_data *wrqu, char *extra) in ipw_wx_set_power() argument
9513 if (wrqu->power.disabled) { in ipw_wx_set_power()
9526 switch (wrqu->power.flags & IW_POWER_MODE) { in ipw_wx_set_power()
9533 wrqu->power.flags); in ipw_wx_set_power()
9559 union iwreq_data *wrqu, char *extra) in ipw_wx_get_power() argument
9564 wrqu->power.disabled = 1; in ipw_wx_get_power()
9566 wrqu->power.disabled = 0; in ipw_wx_get_power()
9576 union iwreq_data *wrqu, char *extra) in ipw_wx_set_powermode() argument
9602 union iwreq_data *wrqu, char *extra) in ipw_wx_get_powermode() argument
9627 wrqu->data.length = p - extra + 1; in ipw_wx_get_powermode()
9634 union iwreq_data *wrqu, char *extra) in ipw_wx_set_wireless_mode() argument
9699 union iwreq_data *wrqu, char *extra) in ipw_wx_get_wireless_mode() argument
9733 wrqu->data.length = strlen(extra) + 1; in ipw_wx_get_wireless_mode()
9741 union iwreq_data *wrqu, char *extra) in ipw_wx_set_preamble() argument
9774 union iwreq_data *wrqu, char *extra) in ipw_wx_get_preamble() argument
9779 snprintf(wrqu->name, IFNAMSIZ, "long (1)"); in ipw_wx_get_preamble()
9781 snprintf(wrqu->name, IFNAMSIZ, "auto (0)"); in ipw_wx_get_preamble()
9789 union iwreq_data *wrqu, char *extra) in ipw_wx_set_monitor() argument
9823 union iwreq_data *wrqu, char *extra) in ipw_wx_reset() argument
9833 union iwreq_data *wrqu, char *extra) in ipw_wx_sw_reset() argument