Lines Matching refs:local
38 void ieee80211_configure_filter(struct ieee80211_local *local) in ieee80211_configure_filter() argument
44 if (atomic_read(&local->iff_promiscs)) in ieee80211_configure_filter()
47 if (atomic_read(&local->iff_allmultis)) in ieee80211_configure_filter()
50 if (local->monitors || test_bit(SCAN_SW_SCANNING, &local->scanning) || in ieee80211_configure_filter()
51 test_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning)) in ieee80211_configure_filter()
54 if (local->fif_probe_req || local->probe_req_reg) in ieee80211_configure_filter()
57 if (local->fif_fcsfail) in ieee80211_configure_filter()
60 if (local->fif_plcpfail) in ieee80211_configure_filter()
63 if (local->fif_control) in ieee80211_configure_filter()
66 if (local->fif_other_bss) in ieee80211_configure_filter()
69 if (local->fif_pspoll) in ieee80211_configure_filter()
72 spin_lock_bh(&local->filter_lock); in ieee80211_configure_filter()
73 changed_flags = local->filter_flags ^ new_flags; in ieee80211_configure_filter()
75 mc = drv_prepare_multicast(local, &local->mc_list); in ieee80211_configure_filter()
76 spin_unlock_bh(&local->filter_lock); in ieee80211_configure_filter()
81 drv_configure_filter(local, changed_flags, &new_flags, mc); in ieee80211_configure_filter()
85 local->filter_flags = new_flags & ~(1<<31); in ieee80211_configure_filter()
90 struct ieee80211_local *local = in ieee80211_reconfig_filter() local
93 ieee80211_configure_filter(local); in ieee80211_reconfig_filter()
96 static u32 ieee80211_hw_conf_chan(struct ieee80211_local *local) in ieee80211_hw_conf_chan() argument
104 offchannel_flag = local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
106 if (local->scan_chandef.chan) { in ieee80211_hw_conf_chan()
107 chandef = local->scan_chandef; in ieee80211_hw_conf_chan()
108 } else if (local->tmp_channel) { in ieee80211_hw_conf_chan()
109 chandef.chan = local->tmp_channel; in ieee80211_hw_conf_chan()
113 chandef = local->_oper_chandef; in ieee80211_hw_conf_chan()
120 if (!cfg80211_chandef_identical(&chandef, &local->_oper_chandef)) in ieee80211_hw_conf_chan()
121 local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
123 local->hw.conf.flags &= ~IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
125 offchannel_flag ^= local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
128 !cfg80211_chandef_identical(&local->hw.conf.chandef, in ieee80211_hw_conf_chan()
129 &local->_oper_chandef)) { in ieee80211_hw_conf_chan()
130 local->hw.conf.chandef = chandef; in ieee80211_hw_conf_chan()
134 if (!conf_is_ht(&local->hw.conf)) { in ieee80211_hw_conf_chan()
140 local->hw.conf.smps_mode = IEEE80211_SMPS_STATIC; in ieee80211_hw_conf_chan()
141 } else if (local->hw.conf.smps_mode != local->smps_mode) { in ieee80211_hw_conf_chan()
142 local->hw.conf.smps_mode = local->smps_mode; in ieee80211_hw_conf_chan()
149 list_for_each_entry_rcu(sdata, &local->interfaces, list) { in ieee80211_hw_conf_chan()
158 if (local->hw.conf.power_level != power) { in ieee80211_hw_conf_chan()
160 local->hw.conf.power_level = power; in ieee80211_hw_conf_chan()
166 int ieee80211_hw_config(struct ieee80211_local *local, u32 changed) in ieee80211_hw_config() argument
172 if (!local->use_chanctx) in ieee80211_hw_config()
173 changed |= ieee80211_hw_conf_chan(local); in ieee80211_hw_config()
178 if (changed && local->open_count) { in ieee80211_hw_config()
179 ret = drv_config(local, changed); in ieee80211_hw_config()
203 struct ieee80211_local *local = sdata->local; in ieee80211_bss_info_change_notify() local
208 drv_bss_info_changed(local, sdata, &sdata->vif.bss_conf, changed); in ieee80211_bss_info_change_notify()
223 struct ieee80211_local *local = (struct ieee80211_local *) data; in ieee80211_tasklet_handler() local
226 while ((skb = skb_dequeue(&local->skb_queue)) || in ieee80211_tasklet_handler()
227 (skb = skb_dequeue(&local->skb_queue_unreliable))) { in ieee80211_tasklet_handler()
233 ieee80211_rx(&local->hw, skb); in ieee80211_tasklet_handler()
237 ieee80211_tx_status(&local->hw, skb); in ieee80211_tasklet_handler()
250 struct ieee80211_local *local = in ieee80211_restart_work() local
255 flush_workqueue(local->workqueue); in ieee80211_restart_work()
257 WARN(test_bit(SCAN_HW_SCANNING, &local->scanning), in ieee80211_restart_work()
261 list_for_each_entry(sdata, &local->interfaces, list) in ieee80211_restart_work()
263 ieee80211_scan_cancel(local); in ieee80211_restart_work()
264 ieee80211_reconfig(local); in ieee80211_restart_work()
270 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_restart_hw() local
272 trace_api_restart_hw(local); in ieee80211_restart_hw()
286 local->in_reconfig = true; in ieee80211_restart_hw()
289 schedule_work(&local->restart_work); in ieee80211_restart_hw()
298 struct ieee80211_local *local = in ieee80211_ifa_changed() local
313 if (wdev->wiphy != local->hw.wiphy) in ieee80211_ifa_changed()
359 struct ieee80211_local *local = in ieee80211_ifa6_changed() local
365 if (!wdev || wdev->wiphy != local->hw.wiphy) in ieee80211_ifa6_changed()
377 drv_ipv6_addr_change(local, sdata, idev); in ieee80211_ifa6_changed()
488 struct ieee80211_local *local; in ieee80211_alloc_hw_nm() local
524 priv_size = ALIGN(sizeof(*local), NETDEV_ALIGN) + priv_data_len; in ieee80211_alloc_hw_nm()
561 local = wiphy_priv(wiphy); in ieee80211_alloc_hw_nm()
563 if (sta_info_init(local)) in ieee80211_alloc_hw_nm()
566 local->hw.wiphy = wiphy; in ieee80211_alloc_hw_nm()
568 local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN); in ieee80211_alloc_hw_nm()
570 local->ops = ops; in ieee80211_alloc_hw_nm()
571 local->use_chanctx = use_chanctx; in ieee80211_alloc_hw_nm()
574 local->hw.queues = 1; in ieee80211_alloc_hw_nm()
575 local->hw.max_rates = 1; in ieee80211_alloc_hw_nm()
576 local->hw.max_report_rates = 0; in ieee80211_alloc_hw_nm()
577 local->hw.max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF; in ieee80211_alloc_hw_nm()
578 local->hw.max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF; in ieee80211_alloc_hw_nm()
579 local->hw.offchannel_tx_hw_queue = IEEE80211_INVAL_HW_QUEUE; in ieee80211_alloc_hw_nm()
580 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long; in ieee80211_alloc_hw_nm()
581 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short; in ieee80211_alloc_hw_nm()
582 local->hw.radiotap_mcs_details = IEEE80211_RADIOTAP_MCS_HAVE_MCS | in ieee80211_alloc_hw_nm()
585 local->hw.radiotap_vht_details = IEEE80211_RADIOTAP_VHT_KNOWN_GI | in ieee80211_alloc_hw_nm()
587 local->hw.uapsd_queues = IEEE80211_DEFAULT_UAPSD_QUEUES; in ieee80211_alloc_hw_nm()
588 local->hw.uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN; in ieee80211_alloc_hw_nm()
589 local->user_power_level = IEEE80211_UNSET_POWER_LEVEL; in ieee80211_alloc_hw_nm()
593 local->ext_capa[7] = WLAN_EXT_CAPA8_OPMODE_NOTIF; in ieee80211_alloc_hw_nm()
595 wiphy->extended_capabilities = local->ext_capa; in ieee80211_alloc_hw_nm()
596 wiphy->extended_capabilities_mask = local->ext_capa; in ieee80211_alloc_hw_nm()
598 ARRAY_SIZE(local->ext_capa); in ieee80211_alloc_hw_nm()
600 INIT_LIST_HEAD(&local->interfaces); in ieee80211_alloc_hw_nm()
602 __hw_addr_init(&local->mc_list); in ieee80211_alloc_hw_nm()
604 mutex_init(&local->iflist_mtx); in ieee80211_alloc_hw_nm()
605 mutex_init(&local->mtx); in ieee80211_alloc_hw_nm()
607 mutex_init(&local->key_mtx); in ieee80211_alloc_hw_nm()
608 spin_lock_init(&local->filter_lock); in ieee80211_alloc_hw_nm()
609 spin_lock_init(&local->rx_path_lock); in ieee80211_alloc_hw_nm()
610 spin_lock_init(&local->queue_stop_reason_lock); in ieee80211_alloc_hw_nm()
612 INIT_LIST_HEAD(&local->chanctx_list); in ieee80211_alloc_hw_nm()
613 mutex_init(&local->chanctx_mtx); in ieee80211_alloc_hw_nm()
615 INIT_DELAYED_WORK(&local->scan_work, ieee80211_scan_work); in ieee80211_alloc_hw_nm()
617 INIT_WORK(&local->restart_work, ieee80211_restart_work); in ieee80211_alloc_hw_nm()
619 INIT_WORK(&local->radar_detected_work, in ieee80211_alloc_hw_nm()
622 INIT_WORK(&local->reconfig_filter, ieee80211_reconfig_filter); in ieee80211_alloc_hw_nm()
623 local->smps_mode = IEEE80211_SMPS_OFF; in ieee80211_alloc_hw_nm()
625 INIT_WORK(&local->dynamic_ps_enable_work, in ieee80211_alloc_hw_nm()
627 INIT_WORK(&local->dynamic_ps_disable_work, in ieee80211_alloc_hw_nm()
629 setup_timer(&local->dynamic_ps_timer, in ieee80211_alloc_hw_nm()
630 ieee80211_dynamic_ps_timer, (unsigned long) local); in ieee80211_alloc_hw_nm()
632 INIT_WORK(&local->sched_scan_stopped_work, in ieee80211_alloc_hw_nm()
635 spin_lock_init(&local->ack_status_lock); in ieee80211_alloc_hw_nm()
636 idr_init(&local->ack_status_frames); in ieee80211_alloc_hw_nm()
639 skb_queue_head_init(&local->pending[i]); in ieee80211_alloc_hw_nm()
640 atomic_set(&local->agg_queue_stop[i], 0); in ieee80211_alloc_hw_nm()
642 tasklet_init(&local->tx_pending_tasklet, ieee80211_tx_pending, in ieee80211_alloc_hw_nm()
643 (unsigned long)local); in ieee80211_alloc_hw_nm()
645 tasklet_init(&local->tasklet, in ieee80211_alloc_hw_nm()
647 (unsigned long) local); in ieee80211_alloc_hw_nm()
649 skb_queue_head_init(&local->skb_queue); in ieee80211_alloc_hw_nm()
650 skb_queue_head_init(&local->skb_queue_unreliable); in ieee80211_alloc_hw_nm()
652 ieee80211_led_names(local); in ieee80211_alloc_hw_nm()
654 ieee80211_roc_setup(local); in ieee80211_alloc_hw_nm()
656 return &local->hw; in ieee80211_alloc_hw_nm()
663 static int ieee80211_init_cipher_suites(struct ieee80211_local *local) in ieee80211_init_cipher_suites() argument
665 bool have_wep = !(IS_ERR(local->wep_tx_tfm) || in ieee80211_init_cipher_suites()
666 IS_ERR(local->wep_rx_tfm)); in ieee80211_init_cipher_suites()
667 bool have_mfp = local->hw.flags & IEEE80211_HW_MFP_CAPABLE; in ieee80211_init_cipher_suites()
687 if (local->hw.flags & IEEE80211_HW_SW_CRYPTO_CONTROL || in ieee80211_init_cipher_suites()
688 local->hw.wiphy->cipher_suites) { in ieee80211_init_cipher_suites()
696 if (!local->hw.wiphy->n_cipher_suites) in ieee80211_init_cipher_suites()
700 suites = kmemdup(local->hw.wiphy->cipher_suites, in ieee80211_init_cipher_suites()
701 sizeof(u32) * local->hw.wiphy->n_cipher_suites, in ieee80211_init_cipher_suites()
706 for (r = 0; r < local->hw.wiphy->n_cipher_suites; r++) { in ieee80211_init_cipher_suites()
707 u32 suite = local->hw.wiphy->cipher_suites[r]; in ieee80211_init_cipher_suites()
714 } else if (!local->hw.cipher_schemes) { in ieee80211_init_cipher_suites()
719 local->hw.wiphy->cipher_suites = cipher_suites; in ieee80211_init_cipher_suites()
720 local->hw.wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites); in ieee80211_init_cipher_suites()
723 local->hw.wiphy->n_cipher_suites -= 4; in ieee80211_init_cipher_suites()
726 local->hw.wiphy->cipher_suites += 2; in ieee80211_init_cipher_suites()
727 local->hw.wiphy->n_cipher_suites -= 2; in ieee80211_init_cipher_suites()
735 cs = local->hw.cipher_schemes; in ieee80211_init_cipher_suites()
743 n_suites = local->hw.n_cipher_schemes + 5; in ieee80211_init_cipher_suites()
777 for (r = 0; r < local->hw.n_cipher_schemes; r++) in ieee80211_init_cipher_suites()
781 local->hw.wiphy->cipher_suites = suites; in ieee80211_init_cipher_suites()
782 local->hw.wiphy->n_cipher_suites = w; in ieee80211_init_cipher_suites()
783 local->wiphy_ciphers_allocated = true; in ieee80211_init_cipher_suites()
790 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_register_hw() local
799 (local->hw.offchannel_tx_hw_queue == IEEE80211_INVAL_HW_QUEUE || in ieee80211_register_hw()
800 local->hw.offchannel_tx_hw_queue >= local->hw.queues)) in ieee80211_register_hw()
804 (!local->ops->tdls_channel_switch || in ieee80211_register_hw()
805 !local->ops->tdls_cancel_channel_switch || in ieee80211_register_hw()
806 !local->ops->tdls_recv_channel_switch)) in ieee80211_register_hw()
810 if (hw->wiphy->wowlan && (!local->ops->suspend || !local->ops->resume)) in ieee80211_register_hw()
814 if (!local->use_chanctx) { in ieee80211_register_hw()
815 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) { in ieee80211_register_hw()
818 comb = &local->hw.wiphy->iface_combinations[i]; in ieee80211_register_hw()
829 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_WDS)) in ieee80211_register_hw()
833 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) { in ieee80211_register_hw()
836 comb = &local->hw.wiphy->iface_combinations[i]; in ieee80211_register_hw()
853 local->rx_chains = 1; in ieee80211_register_hw()
867 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
876 if (!local->use_chanctx && !local->_oper_chandef.chan) { in ieee80211_register_hw()
877 local->hw.conf.chandef = dflt_chandef; in ieee80211_register_hw()
878 local->_oper_chandef = dflt_chandef; in ieee80211_register_hw()
880 local->monitor_chandef = dflt_chandef; in ieee80211_register_hw()
891 local->rx_chains = in ieee80211_register_hw()
893 local->rx_chains); in ieee80211_register_hw()
899 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) { in ieee80211_register_hw()
921 local->int_scan_req = kzalloc(sizeof(*local->int_scan_req) + in ieee80211_register_hw()
923 if (!local->int_scan_req) in ieee80211_register_hw()
927 if (!local->hw.wiphy->bands[band]) in ieee80211_register_hw()
929 local->int_scan_req->rates[band] = (u32) -1; in ieee80211_register_hw()
934 local->hw.wiphy->interface_modes &= ~BIT(NL80211_IFTYPE_MESH_POINT); in ieee80211_register_hw()
939 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_MESH_POINT)) in ieee80211_register_hw()
940 local->hw.wiphy->flags |= WIPHY_FLAG_MESH_AUTH; in ieee80211_register_hw()
943 local->hw.wiphy->flags |= WIPHY_FLAG_CONTROL_PORT_PROTOCOL; in ieee80211_register_hw()
945 if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM) { in ieee80211_register_hw()
946 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in ieee80211_register_hw()
947 } else if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC) { in ieee80211_register_hw()
948 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_UNSPEC; in ieee80211_register_hw()
961 local->scan_ies_len = 4 + max_bitrates /* (ext) supp rates */ + in ieee80211_register_hw()
964 local->scan_ies_len += 2 + sizeof(struct ieee80211_ht_cap); in ieee80211_register_hw()
967 local->scan_ies_len += in ieee80211_register_hw()
970 if (!local->ops->hw_scan) { in ieee80211_register_hw()
972 local->hw.wiphy->max_scan_ssids = 4; in ieee80211_register_hw()
973 local->hw.wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN; in ieee80211_register_hw()
983 if (local->hw.wiphy->max_scan_ie_len) in ieee80211_register_hw()
984 local->hw.wiphy->max_scan_ie_len -= local->scan_ies_len; in ieee80211_register_hw()
986 WARN_ON(!ieee80211_cs_list_valid(local->hw.cipher_schemes, in ieee80211_register_hw()
987 local->hw.n_cipher_schemes)); in ieee80211_register_hw()
989 result = ieee80211_init_cipher_suites(local); in ieee80211_register_hw()
993 if (!local->ops->remain_on_channel) in ieee80211_register_hw()
994 local->hw.wiphy->max_remain_on_channel_duration = 5000; in ieee80211_register_hw()
997 if (local->hw.wiphy->flags & WIPHY_FLAG_SUPPORTS_TDLS) in ieee80211_register_hw()
998 local->hw.wiphy->flags |= WIPHY_FLAG_TDLS_EXTERNAL_SETUP; in ieee80211_register_hw()
1001 if (local->hw.flags & IEEE80211_HW_CHANCTX_STA_CSA) in ieee80211_register_hw()
1002 local->ext_capa[0] |= WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING; in ieee80211_register_hw()
1004 local->hw.wiphy->max_num_csa_counters = IEEE80211_MAX_CSA_COUNTERS_NUM; in ieee80211_register_hw()
1006 result = wiphy_register(local->hw.wiphy); in ieee80211_register_hw()
1017 local->workqueue = in ieee80211_register_hw()
1018 alloc_ordered_workqueue("%s", 0, wiphy_name(local->hw.wiphy)); in ieee80211_register_hw()
1019 if (!local->workqueue) { in ieee80211_register_hw()
1029 local->tx_headroom = max_t(unsigned int , local->hw.extra_tx_headroom, in ieee80211_register_hw()
1032 debugfs_hw_add(local); in ieee80211_register_hw()
1038 if (local->hw.max_listen_interval == 0) in ieee80211_register_hw()
1039 local->hw.max_listen_interval = 5; in ieee80211_register_hw()
1041 local->hw.conf.listen_interval = local->hw.max_listen_interval; in ieee80211_register_hw()
1043 local->dynamic_ps_forced_timeout = -1; in ieee80211_register_hw()
1045 if (!local->hw.txq_ac_max_pending) in ieee80211_register_hw()
1046 local->hw.txq_ac_max_pending = 64; in ieee80211_register_hw()
1048 result = ieee80211_wep_init(local); in ieee80211_register_hw()
1050 wiphy_debug(local->hw.wiphy, "Failed to initialize wep: %d\n", in ieee80211_register_hw()
1053 local->hw.conf.flags = IEEE80211_CONF_IDLE; in ieee80211_register_hw()
1055 ieee80211_led_init(local); in ieee80211_register_hw()
1059 result = ieee80211_init_rate_ctrl_alg(local, in ieee80211_register_hw()
1062 wiphy_debug(local->hw.wiphy, in ieee80211_register_hw()
1068 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) && in ieee80211_register_hw()
1070 result = ieee80211_if_add(local, "wlan%d", NET_NAME_ENUM, NULL, in ieee80211_register_hw()
1073 wiphy_warn(local->hw.wiphy, in ieee80211_register_hw()
1079 local->network_latency_notifier.notifier_call = in ieee80211_register_hw()
1082 &local->network_latency_notifier); in ieee80211_register_hw()
1087 local->ifa_notifier.notifier_call = ieee80211_ifa_changed; in ieee80211_register_hw()
1088 result = register_inetaddr_notifier(&local->ifa_notifier); in ieee80211_register_hw()
1094 local->ifa6_notifier.notifier_call = ieee80211_ifa6_changed; in ieee80211_register_hw()
1095 result = register_inet6addr_notifier(&local->ifa6_notifier); in ieee80211_register_hw()
1105 unregister_inetaddr_notifier(&local->ifa_notifier); in ieee80211_register_hw()
1111 &local->network_latency_notifier); in ieee80211_register_hw()
1115 rate_control_deinitialize(local); in ieee80211_register_hw()
1116 ieee80211_remove_interfaces(local); in ieee80211_register_hw()
1119 ieee80211_led_exit(local); in ieee80211_register_hw()
1120 ieee80211_wep_free(local); in ieee80211_register_hw()
1121 destroy_workqueue(local->workqueue); in ieee80211_register_hw()
1123 wiphy_unregister(local->hw.wiphy); in ieee80211_register_hw()
1125 if (local->wiphy_ciphers_allocated) in ieee80211_register_hw()
1126 kfree(local->hw.wiphy->cipher_suites); in ieee80211_register_hw()
1127 kfree(local->int_scan_req); in ieee80211_register_hw()
1137 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_napi_add() local
1140 local->napi = napi; in ieee80211_napi_add()
1146 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_unregister_hw() local
1148 tasklet_kill(&local->tx_pending_tasklet); in ieee80211_unregister_hw()
1149 tasklet_kill(&local->tasklet); in ieee80211_unregister_hw()
1152 &local->network_latency_notifier); in ieee80211_unregister_hw()
1154 unregister_inetaddr_notifier(&local->ifa_notifier); in ieee80211_unregister_hw()
1157 unregister_inet6addr_notifier(&local->ifa6_notifier); in ieee80211_unregister_hw()
1167 ieee80211_remove_interfaces(local); in ieee80211_unregister_hw()
1171 cancel_work_sync(&local->restart_work); in ieee80211_unregister_hw()
1172 cancel_work_sync(&local->reconfig_filter); in ieee80211_unregister_hw()
1173 flush_work(&local->sched_scan_stopped_work); in ieee80211_unregister_hw()
1175 ieee80211_clear_tx_pending(local); in ieee80211_unregister_hw()
1176 rate_control_deinitialize(local); in ieee80211_unregister_hw()
1178 if (skb_queue_len(&local->skb_queue) || in ieee80211_unregister_hw()
1179 skb_queue_len(&local->skb_queue_unreliable)) in ieee80211_unregister_hw()
1180 wiphy_warn(local->hw.wiphy, "skb_queue not empty\n"); in ieee80211_unregister_hw()
1181 skb_queue_purge(&local->skb_queue); in ieee80211_unregister_hw()
1182 skb_queue_purge(&local->skb_queue_unreliable); in ieee80211_unregister_hw()
1184 destroy_workqueue(local->workqueue); in ieee80211_unregister_hw()
1185 wiphy_unregister(local->hw.wiphy); in ieee80211_unregister_hw()
1186 ieee80211_wep_free(local); in ieee80211_unregister_hw()
1187 ieee80211_led_exit(local); in ieee80211_unregister_hw()
1188 kfree(local->int_scan_req); in ieee80211_unregister_hw()
1201 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_free_hw() local
1203 mutex_destroy(&local->iflist_mtx); in ieee80211_free_hw()
1204 mutex_destroy(&local->mtx); in ieee80211_free_hw()
1206 if (local->wiphy_ciphers_allocated) in ieee80211_free_hw()
1207 kfree(local->hw.wiphy->cipher_suites); in ieee80211_free_hw()
1209 idr_for_each(&local->ack_status_frames, in ieee80211_free_hw()
1211 idr_destroy(&local->ack_status_frames); in ieee80211_free_hw()
1213 sta_info_stop(local); in ieee80211_free_hw()
1215 wiphy_free(local->hw.wiphy); in ieee80211_free_hw()