Lines Matching refs:wrqu

1907 	union iwreq_data wrqu;  in notify_wx_assoc_event()  local
1908 wrqu.ap_addr.sa_family = ARPHRD_ETHER; in notify_wx_assoc_event()
1910 memcpy(wrqu.ap_addr.sa_data, priv->bssid, ETH_ALEN); in notify_wx_assoc_event()
1912 eth_zero_addr(wrqu.ap_addr.sa_data); in notify_wx_assoc_event()
1913 wireless_send_event(priv->net_dev, SIOCGIWAP, &wrqu, NULL); in notify_wx_assoc_event()
4400 union iwreq_data wrqu; in ipw_scan_event() local
4405 wrqu.data.length = 0; in ipw_scan_event()
4406 wrqu.data.flags = 0; in ipw_scan_event()
4407 wireless_send_event(priv->net_dev, SIOCGIWSCAN, &wrqu, NULL); in ipw_scan_event()
6469 union iwreq_data *wrqu, char *extra) in ipw_wx_set_genie() argument
6476 if (wrqu->data.length > MAX_WPA_IE_LEN || in ipw_wx_set_genie()
6477 (wrqu->data.length && extra == NULL)) in ipw_wx_set_genie()
6480 if (wrqu->data.length) { in ipw_wx_set_genie()
6481 buf = kmemdup(extra, wrqu->data.length, GFP_KERNEL); in ipw_wx_set_genie()
6489 ieee->wpa_ie_len = wrqu->data.length; in ipw_wx_set_genie()
6504 union iwreq_data *wrqu, char *extra) in ipw_wx_get_genie() argument
6511 wrqu->data.length = 0; in ipw_wx_get_genie()
6515 if (wrqu->data.length < ieee->wpa_ie_len) { in ipw_wx_get_genie()
6520 wrqu->data.length = ieee->wpa_ie_len; in ipw_wx_get_genie()
6547 union iwreq_data *wrqu, char *extra) in ipw_wx_set_auth() argument
6551 struct iw_param *param = &wrqu->param; in ipw_wx_set_auth()
6647 union iwreq_data *wrqu, char *extra) in ipw_wx_get_auth() argument
6652 struct iw_param *param = &wrqu->param; in ipw_wx_get_auth()
6704 union iwreq_data *wrqu, char *extra) in ipw_wx_set_encodeext() argument
6728 return libipw_wx_set_encodeext(priv->ieee, info, wrqu, extra); in ipw_wx_set_encodeext()
6734 union iwreq_data *wrqu, char *extra) in ipw_wx_get_encodeext() argument
6737 return libipw_wx_get_encodeext(priv->ieee, info, wrqu, extra); in ipw_wx_get_encodeext()
6743 union iwreq_data *wrqu, char *extra) in ipw_wx_set_mlme() argument
8595 union iwreq_data *wrqu, char *extra) in ipw_wx_set_freq() argument
8599 struct iw_freq *fwrq = &wrqu->freq; in ipw_wx_set_freq()
8644 union iwreq_data *wrqu, char *extra) in ipw_wx_get_freq() argument
8648 wrqu->freq.e = 0; in ipw_wx_get_freq()
8659 wrqu->freq.e = 1; in ipw_wx_get_freq()
8663 wrqu->freq.m = priv->ieee->geo.a[i].freq * 100000; in ipw_wx_get_freq()
8667 wrqu->freq.m = priv->ieee->geo.bg[i].freq * 100000; in ipw_wx_get_freq()
8674 wrqu->freq.m = 0; in ipw_wx_get_freq()
8683 union iwreq_data *wrqu, char *extra) in ipw_wx_set_mode() argument
8688 IPW_DEBUG_WX("Set MODE: %d\n", wrqu->mode); in ipw_wx_set_mode()
8690 switch (wrqu->mode) { in ipw_wx_set_mode()
8698 wrqu->mode = IW_MODE_INFRA; in ipw_wx_set_mode()
8703 if (wrqu->mode == priv->ieee->iw_mode) in ipw_wx_set_mode()
8714 if (wrqu->mode == IW_MODE_MONITOR) in ipw_wx_set_mode()
8726 priv->ieee->iw_mode = wrqu->mode; in ipw_wx_set_mode()
8735 union iwreq_data *wrqu, char *extra) in ipw_wx_get_mode() argument
8739 wrqu->mode = priv->ieee->iw_mode; in ipw_wx_get_mode()
8740 IPW_DEBUG_WX("Get MODE -> %d\n", wrqu->mode); in ipw_wx_get_mode()
8764 union iwreq_data *wrqu, char *extra) in ipw_wx_get_range() argument
8771 wrqu->data.length = sizeof(*range); in ipw_wx_get_range()
8858 union iwreq_data *wrqu, char *extra) in ipw_wx_set_wap() argument
8862 if (wrqu->ap_addr.sa_family != ARPHRD_ETHER) in ipw_wx_set_wap()
8865 if (is_broadcast_ether_addr(wrqu->ap_addr.sa_data) || in ipw_wx_set_wap()
8866 is_zero_ether_addr(wrqu->ap_addr.sa_data)) { in ipw_wx_set_wap()
8878 if (ether_addr_equal(priv->bssid, wrqu->ap_addr.sa_data)) { in ipw_wx_set_wap()
8885 wrqu->ap_addr.sa_data); in ipw_wx_set_wap()
8887 memcpy(priv->bssid, wrqu->ap_addr.sa_data, ETH_ALEN); in ipw_wx_set_wap()
8900 union iwreq_data *wrqu, char *extra) in ipw_wx_get_wap() argument
8909 wrqu->ap_addr.sa_family = ARPHRD_ETHER; in ipw_wx_get_wap()
8910 memcpy(wrqu->ap_addr.sa_data, priv->bssid, ETH_ALEN); in ipw_wx_get_wap()
8912 eth_zero_addr(wrqu->ap_addr.sa_data); in ipw_wx_get_wap()
8915 wrqu->ap_addr.sa_data); in ipw_wx_get_wap()
8922 union iwreq_data *wrqu, char *extra) in ipw_wx_set_essid() argument
8929 if (!wrqu->essid.flags) in ipw_wx_set_essid()
8939 length = min((int)wrqu->essid.length, IW_ESSID_MAX_SIZE); in ipw_wx_set_essid()
8966 union iwreq_data *wrqu, char *extra) in ipw_wx_get_essid() argument
8978 wrqu->essid.length = priv->essid_len; in ipw_wx_get_essid()
8979 wrqu->essid.flags = 1; /* active */ in ipw_wx_get_essid()
8982 wrqu->essid.length = 0; in ipw_wx_get_essid()
8983 wrqu->essid.flags = 0; /* active */ in ipw_wx_get_essid()
8991 union iwreq_data *wrqu, char *extra) in ipw_wx_set_nick() argument
8996 if (wrqu->data.length > IW_ESSID_MAX_SIZE) in ipw_wx_set_nick()
8999 wrqu->data.length = min_t(size_t, wrqu->data.length, sizeof(priv->nick)); in ipw_wx_set_nick()
9001 memcpy(priv->nick, extra, wrqu->data.length); in ipw_wx_set_nick()
9010 union iwreq_data *wrqu, char *extra) in ipw_wx_get_nick() argument
9015 wrqu->data.length = strlen(priv->nick); in ipw_wx_get_nick()
9016 memcpy(extra, priv->nick, wrqu->data.length); in ipw_wx_get_nick()
9017 wrqu->data.flags = 1; /* active */ in ipw_wx_get_nick()
9024 union iwreq_data *wrqu, char *extra) in ipw_wx_set_sens() argument
9029 IPW_DEBUG_WX("Setting roaming threshold to %d\n", wrqu->sens.value); in ipw_wx_set_sens()
9030 IPW_DEBUG_WX("Setting disassociate threshold to %d\n", 3*wrqu->sens.value); in ipw_wx_set_sens()
9033 if (wrqu->sens.fixed == 0) in ipw_wx_set_sens()
9039 if ((wrqu->sens.value > IPW_MB_ROAMING_THRESHOLD_MAX) || in ipw_wx_set_sens()
9040 (wrqu->sens.value < IPW_MB_ROAMING_THRESHOLD_MIN)) { in ipw_wx_set_sens()
9045 priv->roaming_threshold = wrqu->sens.value; in ipw_wx_set_sens()
9046 priv->disassociate_threshold = 3*wrqu->sens.value; in ipw_wx_set_sens()
9054 union iwreq_data *wrqu, char *extra) in ipw_wx_get_sens() argument
9058 wrqu->sens.fixed = 1; in ipw_wx_get_sens()
9059 wrqu->sens.value = priv->roaming_threshold; in ipw_wx_get_sens()
9063 wrqu->power.disabled ? "OFF" : "ON", wrqu->power.value); in ipw_wx_get_sens()
9070 union iwreq_data *wrqu, char *extra) in ipw_wx_set_rate() argument
9074 u32 target_rate = wrqu->bitrate.value; in ipw_wx_set_rate()
9089 fixed = wrqu->bitrate.fixed; in ipw_wx_set_rate()
9183 union iwreq_data *wrqu, char *extra) in ipw_wx_get_rate() argument
9187 wrqu->bitrate.value = priv->last_rate; in ipw_wx_get_rate()
9188 wrqu->bitrate.fixed = (priv->config & CFG_FIXED_RATE) ? 1 : 0; in ipw_wx_get_rate()
9190 IPW_DEBUG_WX("GET Rate -> %d\n", wrqu->bitrate.value); in ipw_wx_get_rate()
9196 union iwreq_data *wrqu, char *extra) in ipw_wx_set_rts() argument
9200 if (wrqu->rts.disabled || !wrqu->rts.fixed) in ipw_wx_set_rts()
9203 if (wrqu->rts.value < MIN_RTS_THRESHOLD || in ipw_wx_set_rts()
9204 wrqu->rts.value > MAX_RTS_THRESHOLD) { in ipw_wx_set_rts()
9208 priv->rts_threshold = wrqu->rts.value; in ipw_wx_set_rts()
9219 union iwreq_data *wrqu, char *extra) in ipw_wx_get_rts() argument
9223 wrqu->rts.value = priv->rts_threshold; in ipw_wx_get_rts()
9224 wrqu->rts.fixed = 0; /* no auto select */ in ipw_wx_get_rts()
9225 wrqu->rts.disabled = (wrqu->rts.value == DEFAULT_RTS_THRESHOLD); in ipw_wx_get_rts()
9227 IPW_DEBUG_WX("GET RTS Threshold -> %d\n", wrqu->rts.value); in ipw_wx_get_rts()
9233 union iwreq_data *wrqu, char *extra) in ipw_wx_set_txpow() argument
9239 if (ipw_radio_kill_sw(priv, wrqu->power.disabled)) { in ipw_wx_set_txpow()
9244 if (!wrqu->power.fixed) in ipw_wx_set_txpow()
9245 wrqu->power.value = IPW_TX_POWER_DEFAULT; in ipw_wx_set_txpow()
9247 if (wrqu->power.flags != IW_TXPOW_DBM) { in ipw_wx_set_txpow()
9252 if ((wrqu->power.value > IPW_TX_POWER_MAX) || in ipw_wx_set_txpow()
9253 (wrqu->power.value < IPW_TX_POWER_MIN)) { in ipw_wx_set_txpow()
9258 priv->tx_power = wrqu->power.value; in ipw_wx_set_txpow()
9267 union iwreq_data *wrqu, char *extra) in ipw_wx_get_txpow() argument
9271 wrqu->power.value = priv->tx_power; in ipw_wx_get_txpow()
9272 wrqu->power.fixed = 1; in ipw_wx_get_txpow()
9273 wrqu->power.flags = IW_TXPOW_DBM; in ipw_wx_get_txpow()
9274 wrqu->power.disabled = (priv->status & STATUS_RF_KILL_MASK) ? 1 : 0; in ipw_wx_get_txpow()
9278 wrqu->power.disabled ? "OFF" : "ON", wrqu->power.value); in ipw_wx_get_txpow()
9285 union iwreq_data *wrqu, char *extra) in ipw_wx_set_frag() argument
9289 if (wrqu->frag.disabled || !wrqu->frag.fixed) in ipw_wx_set_frag()
9292 if (wrqu->frag.value < MIN_FRAG_THRESHOLD || in ipw_wx_set_frag()
9293 wrqu->frag.value > MAX_FRAG_THRESHOLD) { in ipw_wx_set_frag()
9298 priv->ieee->fts = wrqu->frag.value & ~0x1; in ipw_wx_set_frag()
9301 ipw_send_frag_threshold(priv, wrqu->frag.value); in ipw_wx_set_frag()
9303 IPW_DEBUG_WX("SET Frag Threshold -> %d\n", wrqu->frag.value); in ipw_wx_set_frag()
9309 union iwreq_data *wrqu, char *extra) in ipw_wx_get_frag() argument
9313 wrqu->frag.value = priv->ieee->fts; in ipw_wx_get_frag()
9314 wrqu->frag.fixed = 0; /* no auto select */ in ipw_wx_get_frag()
9315 wrqu->frag.disabled = (wrqu->frag.value == DEFAULT_FTS); in ipw_wx_get_frag()
9317 IPW_DEBUG_WX("GET Frag Threshold -> %d\n", wrqu->frag.value); in ipw_wx_get_frag()
9324 union iwreq_data *wrqu, char *extra) in ipw_wx_set_retry() argument
9328 if (wrqu->retry.flags & IW_RETRY_LIFETIME || wrqu->retry.disabled) in ipw_wx_set_retry()
9331 if (!(wrqu->retry.flags & IW_RETRY_LIMIT)) in ipw_wx_set_retry()
9334 if (wrqu->retry.value < 0 || wrqu->retry.value >= 255) in ipw_wx_set_retry()
9338 if (wrqu->retry.flags & IW_RETRY_SHORT) in ipw_wx_set_retry()
9339 priv->short_retry_limit = (u8) wrqu->retry.value; in ipw_wx_set_retry()
9340 else if (wrqu->retry.flags & IW_RETRY_LONG) in ipw_wx_set_retry()
9341 priv->long_retry_limit = (u8) wrqu->retry.value; in ipw_wx_set_retry()
9343 priv->short_retry_limit = (u8) wrqu->retry.value; in ipw_wx_set_retry()
9344 priv->long_retry_limit = (u8) wrqu->retry.value; in ipw_wx_set_retry()
9357 union iwreq_data *wrqu, char *extra) in ipw_wx_get_retry() argument
9362 wrqu->retry.disabled = 0; in ipw_wx_get_retry()
9364 if ((wrqu->retry.flags & IW_RETRY_TYPE) == IW_RETRY_LIFETIME) { in ipw_wx_get_retry()
9369 if (wrqu->retry.flags & IW_RETRY_LONG) { in ipw_wx_get_retry()
9370 wrqu->retry.flags = IW_RETRY_LIMIT | IW_RETRY_LONG; in ipw_wx_get_retry()
9371 wrqu->retry.value = priv->long_retry_limit; in ipw_wx_get_retry()
9372 } else if (wrqu->retry.flags & IW_RETRY_SHORT) { in ipw_wx_get_retry()
9373 wrqu->retry.flags = IW_RETRY_LIMIT | IW_RETRY_SHORT; in ipw_wx_get_retry()
9374 wrqu->retry.value = priv->short_retry_limit; in ipw_wx_get_retry()
9376 wrqu->retry.flags = IW_RETRY_LIMIT; in ipw_wx_get_retry()
9377 wrqu->retry.value = priv->short_retry_limit; in ipw_wx_get_retry()
9381 IPW_DEBUG_WX("GET retry -> %d\n", wrqu->retry.value); in ipw_wx_get_retry()
9388 union iwreq_data *wrqu, char *extra) in ipw_wx_set_scan() argument
9398 if (wrqu->data.length == sizeof(struct iw_scan_req)) { in ipw_wx_set_scan()
9399 if (wrqu->data.flags & IW_SCAN_THIS_ESSID) { in ipw_wx_set_scan()
9424 union iwreq_data *wrqu, char *extra) in ipw_wx_get_scan() argument
9427 return libipw_wx_get_scan(priv->ieee, info, wrqu, extra); in ipw_wx_get_scan()
9432 union iwreq_data *wrqu, char *key) in ipw_wx_set_encode() argument
9439 ret = libipw_wx_set_encode(priv->ieee, info, wrqu, key); in ipw_wx_set_encode()
9454 union iwreq_data *wrqu, char *key) in ipw_wx_get_encode() argument
9457 return libipw_wx_get_encode(priv->ieee, info, wrqu, key); in ipw_wx_get_encode()
9462 union iwreq_data *wrqu, char *extra) in ipw_wx_set_power() argument
9467 if (wrqu->power.disabled) { in ipw_wx_set_power()
9480 switch (wrqu->power.flags & IW_POWER_MODE) { in ipw_wx_set_power()
9487 wrqu->power.flags); in ipw_wx_set_power()
9513 union iwreq_data *wrqu, char *extra) in ipw_wx_get_power() argument
9518 wrqu->power.disabled = 1; in ipw_wx_get_power()
9520 wrqu->power.disabled = 0; in ipw_wx_get_power()
9530 union iwreq_data *wrqu, char *extra) in ipw_wx_set_powermode() argument
9556 union iwreq_data *wrqu, char *extra) in ipw_wx_get_powermode() argument
9581 wrqu->data.length = p - extra + 1; in ipw_wx_get_powermode()
9588 union iwreq_data *wrqu, char *extra) in ipw_wx_set_wireless_mode() argument
9653 union iwreq_data *wrqu, char *extra) in ipw_wx_get_wireless_mode() argument
9687 wrqu->data.length = strlen(extra) + 1; in ipw_wx_get_wireless_mode()
9695 union iwreq_data *wrqu, char *extra) in ipw_wx_set_preamble() argument
9728 union iwreq_data *wrqu, char *extra) in ipw_wx_get_preamble() argument
9733 snprintf(wrqu->name, IFNAMSIZ, "long (1)"); in ipw_wx_get_preamble()
9735 snprintf(wrqu->name, IFNAMSIZ, "auto (0)"); in ipw_wx_get_preamble()
9743 union iwreq_data *wrqu, char *extra) in ipw_wx_set_monitor() argument
9777 union iwreq_data *wrqu, char *extra) in ipw_wx_reset() argument
9787 union iwreq_data *wrqu, char *extra) in ipw_wx_sw_reset() argument