Lines Matching full:ieee
1453 return sprintf(buf, "%d\n", priv->ieee->scan_age); in scan_age_show()
1470 priv->ieee->scan_age = val; in scan_age_store()
1471 IPW_DEBUG_INFO("set scan_age = %u\n", priv->ieee->scan_age); in scan_age_store()
1718 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true); in rf_kill_active()
1721 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, false); in rf_kill_active()
1814 if (libipw_is_valid_channel(priv->ieee, channel)) in speed_scan_store()
1864 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in channels_show()
2008 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true); in ipw_irq_tasklet()
2043 if (priv->ieee->sec.encrypt) { in ipw_irq_tasklet()
2434 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in ipw_set_tx_power()
2460 if (priv->ieee->abg_true) { in ipw_set_tx_power()
2957 spin_lock_irqsave(&priv->ieee->lock, flags); in ipw_remove_current_network()
2958 list_for_each_safe(element, safe, &priv->ieee->network_list) { in ipw_remove_current_network()
2963 &priv->ieee->network_free_list); in ipw_remove_current_network()
2966 spin_unlock_irqrestore(&priv->ieee->lock, flags); in ipw_remove_current_network()
3440 switch (priv->ieee->iw_mode) { in ipw_load()
4132 if (priv->ieee->mode == IEEE_B) in ipw_get_max_rate()
4278 (priv->ieee->perfect_rssi - priv->ieee->worst_rssi) * in ipw_gather_stats()
4279 (priv->ieee->perfect_rssi - priv->ieee->worst_rssi) - in ipw_gather_stats()
4280 (priv->ieee->perfect_rssi - rssi) * in ipw_gather_stats()
4281 (15 * (priv->ieee->perfect_rssi - priv->ieee->worst_rssi) + in ipw_gather_stats()
4282 62 * (priv->ieee->perfect_rssi - rssi))) / in ipw_gather_stats()
4283 ((priv->ieee->perfect_rssi - priv->ieee->worst_rssi) * in ipw_gather_stats()
4284 (priv->ieee->perfect_rssi - priv->ieee->worst_rssi)); in ipw_gather_stats()
4445 switch (priv->ieee->iw_mode) { in ipw_rx_notification()
4447 memcpy(priv->ieee->bssid, in ipw_rx_notification()
4452 memcpy(priv->ieee->bssid, in ipw_rx_notification()
4493 ieee, in ipw_rx_notification()
4719 priv->ieee->scans++; in ipw_rx_notification()
4722 if (priv->ieee->iw_mode == IW_MODE_MONITOR) { in ipw_rx_notification()
5442 if ((priv->ieee->iw_mode == IW_MODE_ADHOC && in ipw_find_adhoc_network()
5490 if (priv->ieee->scan_age != 0 && in ipw_find_adhoc_network()
5491 time_after(jiffies, network->last_scanned + priv->ieee->scan_age)) { in ipw_find_adhoc_network()
5531 if (!libipw_is_valid_mode(priv->ieee, network->mode)) { in ipw_find_adhoc_network()
5556 * should occur within a generic IEEE 802.11 user space tool. */ in ipw_find_adhoc_network()
5577 (priv->ieee->iw_mode == IW_MODE_ADHOC)) { in ipw_merge_adhoc_network()
5582 spin_lock_irqsave(&priv->ieee->lock, flags); in ipw_merge_adhoc_network()
5583 list_for_each_entry(network, &priv->ieee->network_list, list) { in ipw_merge_adhoc_network()
5588 spin_unlock_irqrestore(&priv->ieee->lock, flags); in ipw_merge_adhoc_network()
5597 if (priv->ieee->iw_mode == IW_MODE_ADHOC) { in ipw_merge_adhoc_network()
5618 if ((priv->ieee->iw_mode == IW_MODE_INFRA && in ipw_best_network()
5620 (priv->ieee->iw_mode == IW_MODE_ADHOC && in ipw_best_network()
5677 if (priv->ieee->scan_age != 0 && in ipw_best_network()
5678 time_after(jiffies, network->last_scanned + priv->ieee->scan_age)) { in ipw_best_network()
5718 if (!libipw_is_valid_mode(priv->ieee, network->mode)) { in ipw_best_network()
5726 if (!libipw_is_valid_channel(priv->ieee, network->channel)) { in ipw_best_network()
5751 * should occur within a generic IEEE 802.11 user space tool. */ in ipw_best_network()
5766 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in ipw_adhoc_create()
5781 switch (libipw_is_valid_channel(priv->ieee, priv->channel)) { in ipw_adhoc_create()
5784 i = libipw_channel_to_index(priv->ieee, priv->channel); in ipw_adhoc_create()
5793 if (priv->ieee->mode & IEEE_G) in ipw_adhoc_create()
5797 i = libipw_channel_to_index(priv->ieee, priv->channel); in ipw_adhoc_create()
5807 if (priv->ieee->mode & IEEE_A) { in ipw_adhoc_create()
5810 } else if (priv->ieee->mode & IEEE_G) { in ipw_adhoc_create()
5853 if (!(priv->ieee->sec.flags & (1 << index))) in ipw_send_tgi_tx_key()
5857 memcpy(key.key, priv->ieee->sec.keys[index], SCM_TEMPORAL_KEY_LENGTH); in ipw_send_tgi_tx_key()
5880 if (!(priv->ieee->sec.flags & (1 << i))) { in ipw_send_wep_keys()
5885 key.key_size = priv->ieee->sec.key_sizes[i]; in ipw_send_wep_keys()
5886 memcpy(key.key, priv->ieee->sec.keys[i], key.key_size); in ipw_send_wep_keys()
5894 if (priv->ieee->host_encrypt) in ipw_set_hw_decrypt_unicast()
5900 priv->ieee->host_decrypt = 0; in ipw_set_hw_decrypt_unicast()
5904 priv->ieee->host_decrypt = 1; in ipw_set_hw_decrypt_unicast()
5908 priv->ieee->host_decrypt = 0; in ipw_set_hw_decrypt_unicast()
5920 if (priv->ieee->host_encrypt) in ipw_set_hw_decrypt_multicast()
5943 switch (priv->ieee->sec.level) { in ipw_set_hwcrypto_keys()
5945 if (priv->ieee->sec.flags & SEC_ACTIVE_KEY) in ipw_set_hwcrypto_keys()
5948 priv->ieee->sec.active_key); in ipw_set_hwcrypto_keys()
5950 if (!priv->ieee->host_mc_decrypt) in ipw_set_hwcrypto_keys()
5954 if (priv->ieee->sec.flags & SEC_ACTIVE_KEY) in ipw_set_hwcrypto_keys()
5957 priv->ieee->sec.active_key); in ipw_set_hwcrypto_keys()
5961 ipw_set_hw_decrypt_unicast(priv, priv->ieee->sec.level); in ipw_set_hwcrypto_keys()
5962 ipw_set_hw_decrypt_multicast(priv, priv->ieee->sec.level); in ipw_set_hwcrypto_keys()
6033 switch (priv->ieee->freq_band) { in ipw_set_fixed_rate()
6117 geo = libipw_get_geo(priv->ieee); in ipw_add_scan_channels()
6119 if (priv->ieee->freq_band & LIBIPW_52GHZ_BAND) { in ipw_add_scan_channels()
6141 if (priv->ieee->freq_band & LIBIPW_24GHZ_BAND) { in ipw_add_scan_channels()
6177 libipw_channel_to_index(priv->ieee, channel); in ipw_add_scan_channels()
6263 scan.full_scan_index = cpu_to_le32(libipw_get_scans(priv->ieee)); in ipw_request_scan_helper()
6290 if (priv->ieee->iw_mode == IW_MODE_MONITOR) { in ipw_request_scan_helper()
6294 switch (libipw_is_valid_channel(priv->ieee, priv->channel)) { in ipw_request_scan_helper()
6414 priv->ieee->wpa_enabled = value; in ipw_wpa_enable()
6420 struct libipw_device *ieee = priv->ieee; in ipw_wpa_set_auth_algs() local
6428 ieee->open_wep = 0; in ipw_wpa_set_auth_algs()
6431 ieee->open_wep = 1; in ipw_wpa_set_auth_algs()
6434 ieee->open_wep = 1; in ipw_wpa_set_auth_algs()
6438 if (ieee->set_security) in ipw_wpa_set_auth_algs()
6439 ieee->set_security(ieee->dev, &sec); in ipw_wpa_set_auth_algs()
6472 struct libipw_device *ieee = priv->ieee; in ipw_wx_set_genie() local
6487 kfree(ieee->wpa_ie); in ipw_wx_set_genie()
6488 ieee->wpa_ie = buf; in ipw_wx_set_genie()
6489 ieee->wpa_ie_len = wrqu->data.length; in ipw_wx_set_genie()
6491 kfree(ieee->wpa_ie); in ipw_wx_set_genie()
6492 ieee->wpa_ie = NULL; in ipw_wx_set_genie()
6493 ieee->wpa_ie_len = 0; in ipw_wx_set_genie()
6496 ipw_wpa_assoc_frame(priv, ieee->wpa_ie, ieee->wpa_ie_len); in ipw_wx_set_genie()
6507 struct libipw_device *ieee = priv->ieee; in ipw_wx_get_genie() local
6510 if (ieee->wpa_ie_len == 0 || ieee->wpa_ie == NULL) { 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()
6521 memcpy(extra, ieee->wpa_ie, ieee->wpa_ie_len); in ipw_wx_get_genie()
6550 struct libipw_device *ieee = priv->ieee; in ipw_wx_set_auth() local
6574 crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; in ipw_wx_set_auth()
6605 priv->ieee->drop_unencrypted = param->value; in ipw_wx_set_auth()
6616 if (priv->ieee->set_security) in ipw_wx_set_auth()
6617 priv->ieee->set_security(priv->ieee->dev, &sec); in ipw_wx_set_auth()
6631 ieee->ieee802_1x = param->value; in ipw_wx_set_auth()
6635 ieee->privacy_invoked = param->value; in ipw_wx_set_auth()
6650 struct libipw_device *ieee = priv->ieee; in ipw_wx_get_auth() local
6665 crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx]; in ipw_wx_get_auth()
6675 param->value = ieee->drop_unencrypted; in ipw_wx_get_auth()
6679 param->value = ieee->sec.auth_mode; in ipw_wx_get_auth()
6683 param->value = ieee->wpa_enabled; in ipw_wx_get_auth()
6687 param->value = ieee->ieee802_1x; in ipw_wx_get_auth()
6692 param->value = ieee->privacy_invoked; in ipw_wx_get_auth()
6714 priv->ieee->host_mc_decrypt = 1; in ipw_wx_set_encodeext()
6716 priv->ieee->host_encrypt = 0; in ipw_wx_set_encodeext()
6717 priv->ieee->host_encrypt_msdu = 1; in ipw_wx_set_encodeext()
6718 priv->ieee->host_decrypt = 1; in ipw_wx_set_encodeext()
6721 priv->ieee->host_encrypt = 0; in ipw_wx_set_encodeext()
6722 priv->ieee->host_encrypt_msdu = 0; in ipw_wx_set_encodeext()
6723 priv->ieee->host_decrypt = 0; in ipw_wx_set_encodeext()
6724 priv->ieee->host_mc_decrypt = 0; in ipw_wx_set_encodeext()
6728 return libipw_wx_set_encodeext(priv->ieee, info, wrqu, extra); in ipw_wx_set_encodeext()
6737 return libipw_wx_get_encodeext(priv->ieee, info, wrqu, extra); in ipw_wx_get_encodeext()
6777 spin_lock_irqsave(&priv->ieee->lock, flags); in ipw_qos_current_mode()
6779 spin_unlock_irqrestore(&priv->ieee->lock, flags); in ipw_qos_current_mode()
6781 mode = priv->ieee->mode; in ipw_qos_current_mode()
6815 if ((priv->ieee->mode == IEEE_B) || (network->mode == IEEE_B)) in ipw_qos_handle_probe_response()
6831 (priv->ieee->iw_mode == IW_MODE_ADHOC) && (active_network == 0)) { in ipw_qos_handle_probe_response()
6880 } else if (priv->ieee->iw_mode == IW_MODE_ADHOC) { in ipw_qos_activate()
6899 spin_lock_irqsave(&priv->ieee->lock, flags); in ipw_qos_activate()
6905 spin_unlock_irqrestore(&priv->ieee->lock, flags); in ipw_qos_activate()
6964 switch (priv->ieee->iw_mode) { in ipw_qos_association()
7014 if ((priv->ieee->iw_mode != IW_MODE_INFRA)) in ipw_qos_association_resp()
7017 spin_lock_irqsave(&priv->ieee->lock, flags); in ipw_qos_association_resp()
7030 if ((network->mode == IEEE_B) || (priv->ieee->mode == IEEE_B)) in ipw_qos_association_resp()
7041 spin_unlock_irqrestore(&priv->ieee->lock, flags); in ipw_qos_association_resp()
7054 if (!(priv->ieee->modulation & LIBIPW_OFDM_MODULATION)) in ipw_qos_get_burst_duration()
7117 if (priv->ieee->iw_mode == IW_MODE_ADHOC) { in ipw_is_qos_active()
7243 (priv->ieee->sec.auth_mode == WLAN_AUTH_SHARED_KEY)) { in ipw_associate_network()
7245 priv->assoc_request.auth_key = priv->ieee->sec.active_key; in ipw_associate_network()
7247 if (priv->ieee->sec.level == SEC_LEVEL_1) in ipw_associate_network()
7251 (priv->ieee->sec.auth_mode == WLAN_AUTH_LEAP)) in ipw_associate_network()
7256 if (priv->ieee->wpa_ie_len) { in ipw_associate_network()
7258 ipw_set_rsn_capa(priv, priv->ieee->wpa_ie, in ipw_associate_network()
7259 priv->ieee->wpa_ie_len); in ipw_associate_network()
7263 * It is valid for our ieee device to support multiple modes, but in ipw_associate_network()
7267 if (network->mode & priv->ieee->mode & IEEE_A) in ipw_associate_network()
7269 else if (network->mode & priv->ieee->mode & IEEE_G) in ipw_associate_network()
7271 else if (network->mode & priv->ieee->mode & IEEE_B) in ipw_associate_network()
7287 if (priv->ieee->iw_mode == IW_MODE_ADHOC) in ipw_associate_network()
7307 '1' + priv->ieee->sec.active_key : '.', in ipw_associate_network()
7311 if ((priv->ieee->iw_mode == IW_MODE_ADHOC) && in ipw_associate_network()
7327 if (priv->ieee->iw_mode == IW_MODE_ADHOC) { in ipw_associate_network()
7352 if (priv->ieee->iw_mode == IW_MODE_ADHOC) in ipw_associate_network()
7435 spin_lock_irqsave(&priv->ieee->lock, flags); in ipw_roam()
7436 list_for_each_entry(network, &priv->ieee->network_list, list) { in ipw_roam()
7440 spin_unlock_irqrestore(&priv->ieee->lock, flags); in ipw_roam()
7484 if (priv->ieee->iw_mode == IW_MODE_MONITOR) { in ipw_associate()
7514 spin_lock_irqsave(&priv->ieee->lock, flags); in ipw_associate()
7515 list_for_each_entry(network, &priv->ieee->network_list, list) in ipw_associate()
7522 priv->ieee->iw_mode == IW_MODE_ADHOC && in ipw_associate()
7527 if (list_empty(&priv->ieee->network_free_list)) { in ipw_associate()
7531 list_for_each_entry(target, &priv->ieee->network_list, list) { in ipw_associate()
7544 &priv->ieee->network_free_list); in ipw_associate()
7547 element = priv->ieee->network_free_list.next; in ipw_associate()
7552 list_add_tail(&network->list, &priv->ieee->network_list); in ipw_associate()
7554 spin_unlock_irqrestore(&priv->ieee->lock, flags); in ipw_associate()
7599 switch (priv->ieee->sec.level) { in ipw_rebuild_decrypted_skb()
7620 priv->ieee->sec.level); in ipw_rebuild_decrypted_skb()
7661 if (priv->ieee->iw_mode != IW_MODE_MONITOR && in ipw_handle_data_packet()
7663 !priv->ieee->host_mc_decrypt : !priv->ieee->host_decrypt)) in ipw_handle_data_packet()
7666 if (!libipw_rx(priv->ieee, rxb->skb, stats)) in ipw_handle_data_packet()
7823 if (!libipw_rx(priv->ieee, rxb->skb, stats)) in ipw_handle_data_packet_monitor()
8029 if (!libipw_rx(priv->prom_priv->ieee, skb, stats)) { in ipw_handle_promiscuous_rx()
8041 switch (priv->ieee->iw_mode) { in is_network_packet()
8083 switch (priv->ieee->iw_mode) { in is_duplicate_packet()
8156 libipw_rx_mgt(priv->ieee, header, stats); in ipw_handle_mgmt_packet()
8158 if (priv->ieee->iw_mode == IW_MODE_ADHOC && in ipw_handle_mgmt_packet()
8181 skb->dev = priv->ieee->dev; in ipw_handle_mgmt_packet()
8270 if (priv->ieee->iw_mode == IW_MODE_MONITOR) { in ipw_rx()
8412 int old_mode = priv->ieee->iw_mode; in ipw_sw_reset()
8454 priv->ieee->iw_mode = IW_MODE_ADHOC; in ipw_sw_reset()
8460 priv->ieee->iw_mode = IW_MODE_MONITOR; in ipw_sw_reset()
8471 priv->ieee->iw_mode = IW_MODE_INFRA; in ipw_sw_reset()
8476 priv->ieee->host_encrypt = 0; in ipw_sw_reset()
8477 priv->ieee->host_encrypt_msdu = 0; in ipw_sw_reset()
8478 priv->ieee->host_decrypt = 0; in ipw_sw_reset()
8479 priv->ieee->host_mc_decrypt = 0; in ipw_sw_reset()
8484 priv->ieee->host_open_frag = 0; in ipw_sw_reset()
8492 priv->ieee->abg_true = 1; in ipw_sw_reset()
8497 priv->ieee->mode = IEEE_A | IEEE_G | IEEE_B; in ipw_sw_reset()
8504 priv->ieee->abg_true = 0; in ipw_sw_reset()
8509 priv->ieee->mode = IEEE_G | IEEE_B; in ipw_sw_reset()
8512 priv->ieee->freq_band = band; in ipw_sw_reset()
8513 priv->ieee->modulation = modulation; in ipw_sw_reset()
8528 return old_mode == priv->ieee->iw_mode; in ipw_sw_reset()
8564 if (priv->ieee->iw_mode == IW_MODE_MONITOR) { in ipw_set_channel()
8598 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in ipw_wx_set_freq()
8613 channel = libipw_freq_to_channel(priv->ieee, fwrq->m); in ipw_wx_set_freq()
8619 if (!(band = libipw_is_valid_channel(priv->ieee, channel))) in ipw_wx_set_freq()
8622 if (priv->ieee->iw_mode == IW_MODE_ADHOC) { in ipw_wx_set_freq()
8623 i = libipw_channel_to_index(priv->ieee, channel); in ipw_wx_set_freq()
8657 i = libipw_channel_to_index(priv->ieee, priv->channel); in ipw_wx_get_freq()
8661 switch (libipw_is_valid_channel(priv->ieee, priv->channel)) { 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()
8703 if (wrqu->mode == priv->ieee->iw_mode) in ipw_wx_set_mode()
8711 if (priv->ieee->iw_mode == IW_MODE_MONITOR) in ipw_wx_set_mode()
8726 priv->ieee->iw_mode = wrqu->mode; in ipw_wx_set_mode()
8739 wrqu->mode = priv->ieee->iw_mode; in ipw_wx_get_mode()
8768 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in ipw_wx_get_range()
8809 if (priv->ieee->mode & (IEEE_B | IEEE_G)) { in ipw_wx_get_range()
8811 if ((priv->ieee->iw_mode == IW_MODE_ADHOC) && in ipw_wx_get_range()
8822 if (priv->ieee->mode & IEEE_A) { in ipw_wx_get_range()
8824 if ((priv->ieee->iw_mode == IW_MODE_ADHOC) && in ipw_wx_get_range()
9160 ipw_set_fixed_rate(priv, priv->ieee->mode); in ipw_wx_set_rate()
9290 priv->ieee->fts = DEFAULT_FTS; in ipw_wx_set_frag()
9298 priv->ieee->fts = wrqu->frag.value & ~0x1; in ipw_wx_set_frag()
9313 wrqu->frag.value = priv->ieee->fts; in ipw_wx_get_frag()
9427 return libipw_wx_get_scan(priv->ieee, info, wrqu, extra); in ipw_wx_get_scan()
9439 ret = libipw_wx_set_encode(priv->ieee, info, wrqu, key); in ipw_wx_set_encode()
9444 priv->ieee->iw_mode == IW_MODE_ADHOC && in ipw_wx_set_encode()
9457 return libipw_wx_get_encode(priv->ieee, info, wrqu, key); in ipw_wx_get_encode()
9600 priv->ieee->abg_true = 1; in ipw_wx_set_wireless_mode()
9605 priv->ieee->abg_true = 0; in ipw_wx_set_wireless_mode()
9614 priv->ieee->abg_true = 0; in ipw_wx_set_wireless_mode()
9621 priv->ieee->abg_true = 0; in ipw_wx_set_wireless_mode()
9627 priv->ieee->abg_true = 0; in ipw_wx_set_wireless_mode()
9629 priv->ieee->mode = mode; in ipw_wx_set_wireless_mode()
9630 priv->ieee->freq_band = band; in ipw_wx_set_wireless_mode()
9631 priv->ieee->modulation = modulation; in ipw_wx_set_wireless_mode()
9657 switch (priv->ieee->mode) { in ipw_wx_get_wireless_mode()
9750 if (priv->ieee->iw_mode != IW_MODE_MONITOR) { in ipw_wx_set_monitor()
9761 if (priv->ieee->iw_mode != IW_MODE_MONITOR) { in ipw_wx_set_monitor()
9811 libipw_wx_set_encode(priv->ieee, info, &wrqu_sec, NULL); in ipw_wx_sw_reset()
9985 wstats->discard.code = priv->ieee->ieee_stats.rx_discards_undecryptable; in ipw_get_wireless_stats()
10060 switch (priv->ieee->iw_mode) { in ipw_tx_skb()
10109 if (txb->encrypted && !priv->ieee->host_encrypt) { in ipw_tx_skb()
10110 switch (priv->ieee->sec.level) { in ipw_tx_skb()
10136 tfd->u.data.key_index = priv->ieee->crypt_info.tx_keyidx; in ipw_tx_skb()
10137 if (priv->ieee->sec.key_sizes[priv->ieee->crypt_info.tx_keyidx] <= in ipw_tx_skb()
10147 priv->ieee->sec.level); in ipw_tx_skb()
10311 else if (priv->ieee->mode == IEEE_B) /* 802.11b */ in ipw_handle_promiscuous_tx()
10324 if (!libipw_rx(priv->prom_priv->ieee, dst, &dummystats)) in ipw_handle_promiscuous_tx()
10634 priv->ieee->sec.encode_alg[i] = sec->encode_alg[i]; in shim__set_security()
10635 priv->ieee->sec.key_sizes[i] = sec->key_sizes[i]; in shim__set_security()
10637 priv->ieee->sec.flags &= ~(1 << i); in shim__set_security()
10639 memcpy(priv->ieee->sec.keys[i], sec->keys[i], in shim__set_security()
10641 priv->ieee->sec.flags |= (1 << i); in shim__set_security()
10645 priv->ieee->sec.flags &= ~(1 << i); in shim__set_security()
10649 priv->ieee->sec.active_key = sec->active_key; in shim__set_security()
10650 priv->ieee->sec.flags |= SEC_ACTIVE_KEY; in shim__set_security()
10653 priv->ieee->sec.flags &= ~SEC_ACTIVE_KEY; in shim__set_security()
10656 (priv->ieee->sec.auth_mode != sec->auth_mode)) { in shim__set_security()
10657 priv->ieee->sec.auth_mode = sec->auth_mode; in shim__set_security()
10658 priv->ieee->sec.flags |= SEC_AUTH_MODE; in shim__set_security()
10666 if (sec->flags & SEC_ENABLED && priv->ieee->sec.enabled != sec->enabled) { in shim__set_security()
10667 priv->ieee->sec.flags |= SEC_ENABLED; in shim__set_security()
10668 priv->ieee->sec.enabled = sec->enabled; in shim__set_security()
10677 priv->ieee->sec.encrypt = sec->encrypt; in shim__set_security()
10679 if (sec->flags & SEC_LEVEL && priv->ieee->sec.level != sec->level) { in shim__set_security()
10680 priv->ieee->sec.level = sec->level; in shim__set_security()
10681 priv->ieee->sec.flags |= SEC_LEVEL; in shim__set_security()
10685 if (!priv->ieee->host_encrypt && (sec->flags & SEC_ENCRYPT)) in shim__set_security()
10711 switch (priv->ieee->freq_band) { in init_supported_rates()
10724 if (priv->ieee->modulation & LIBIPW_OFDM_MODULATION) { in init_supported_rates()
10771 if (priv->ieee->iw_mode == IW_MODE_ADHOC) in ipw_config()
10808 (priv->ieee->sec.level == SEC_LEVEL_1) && in ipw_config()
10809 !(priv->ieee->host_encrypt || priv->ieee->host_decrypt)) in ipw_config()
11096 libipw_set_geo(priv->ieee, &ipw_geos[j]); in ipw_set_geo()
11106 libipw_networks_age(priv->ieee, priv->suspend_time); in ipw_up()
11263 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in ipw_wdev_init()
11264 struct wireless_dev *wdev = &priv->ieee->wdev; in ipw_wdev_init()
11268 /* fill-out priv->ieee->bg_band */ in ipw_wdev_init()
11270 struct ieee80211_supported_band *bg_band = &priv->ieee->bg_band; in ipw_wdev_init()
11307 /* fill-out priv->ieee->a_band */ in ipw_wdev_init()
11309 struct ieee80211_supported_band *a_band = &priv->ieee->a_band; in ipw_wdev_init()
11358 kfree(priv->ieee->a_band.channels); in ipw_wdev_init()
11359 kfree(priv->ieee->bg_band.channels); in ipw_wdev_init()
11436 if (priv->ieee->iw_mode != IW_MODE_MONITOR) { in ipw_prom_open()
11455 if (priv->ieee->iw_mode != IW_MODE_MONITOR) { in ipw_prom_stop()
11495 priv->prom_priv->ieee = netdev_priv(priv->prom_net_dev); in ipw_prom_alloc()
11507 priv->prom_priv->ieee->iw_mode = IW_MODE_MONITOR; in ipw_prom_alloc()
11559 priv->ieee = netdev_priv(net_dev); in ipw_pci_probe()
11624 priv->ieee->hard_start_xmit = ipw_net_hard_start_xmit; in ipw_pci_probe()
11625 priv->ieee->set_security = shim__set_security; in ipw_pci_probe()
11626 priv->ieee->is_queue_full = ipw_net_is_queue_full; in ipw_pci_probe()
11629 priv->ieee->is_qos_active = ipw_is_qos_active; in ipw_pci_probe()
11630 priv->ieee->handle_probe_response = ipw_handle_beacon; in ipw_pci_probe()
11631 priv->ieee->handle_beacon = ipw_handle_probe_response; in ipw_pci_probe()
11632 priv->ieee->handle_assoc_response = ipw_handle_assoc_response; in ipw_pci_probe()
11635 priv->ieee->perfect_rssi = -20; in ipw_pci_probe()
11636 priv->ieee->worst_rssi = -85; in ipw_pci_probe()
11639 priv->wireless_data.spy_data = &priv->ieee->spy_data; in ipw_pci_probe()
11688 priv->ieee->geo.name, priv->ieee->geo.bg_channels, in ipw_pci_probe()
11689 priv->ieee->geo.a_channels); in ipw_pci_probe()
11694 wiphy_unregister(priv->ieee->wdev.wiphy); in ipw_pci_probe()
11695 kfree(priv->ieee->a_band.channels); in ipw_pci_probe()
11696 kfree(priv->ieee->bg_band.channels); in ipw_pci_probe()
11788 wiphy_unregister(priv->ieee->wdev.wiphy); in ipw_pci_remove()
11789 kfree(priv->ieee->a_band.channels); in ipw_pci_remove()
11790 kfree(priv->ieee->bg_band.channels); in ipw_pci_remove()