Lines Matching full:local
37 void ieee80211_configure_filter(struct ieee80211_local *local) in ieee80211_configure_filter() argument
43 if (atomic_read(&local->iff_allmultis)) in ieee80211_configure_filter()
46 if (local->monitors || test_bit(SCAN_SW_SCANNING, &local->scanning) || in ieee80211_configure_filter()
47 test_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning)) in ieee80211_configure_filter()
50 if (local->fif_probe_req || local->probe_req_reg) in ieee80211_configure_filter()
53 if (local->fif_fcsfail) in ieee80211_configure_filter()
56 if (local->fif_plcpfail) in ieee80211_configure_filter()
59 if (local->fif_control) in ieee80211_configure_filter()
62 if (local->fif_other_bss) in ieee80211_configure_filter()
65 if (local->fif_pspoll) in ieee80211_configure_filter()
68 spin_lock_bh(&local->filter_lock); in ieee80211_configure_filter()
69 changed_flags = local->filter_flags ^ new_flags; in ieee80211_configure_filter()
71 mc = drv_prepare_multicast(local, &local->mc_list); in ieee80211_configure_filter()
72 spin_unlock_bh(&local->filter_lock); in ieee80211_configure_filter()
77 drv_configure_filter(local, changed_flags, &new_flags, mc); in ieee80211_configure_filter()
81 local->filter_flags = new_flags & ~(1<<31); in ieee80211_configure_filter()
86 struct ieee80211_local *local = in ieee80211_reconfig_filter() local
89 ieee80211_configure_filter(local); in ieee80211_reconfig_filter()
92 static u32 ieee80211_hw_conf_chan(struct ieee80211_local *local) in ieee80211_hw_conf_chan() argument
100 offchannel_flag = local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
102 if (local->scan_chandef.chan) { in ieee80211_hw_conf_chan()
103 chandef = local->scan_chandef; in ieee80211_hw_conf_chan()
104 } else if (local->tmp_channel) { in ieee80211_hw_conf_chan()
105 chandef.chan = local->tmp_channel; in ieee80211_hw_conf_chan()
109 chandef = local->_oper_chandef; in ieee80211_hw_conf_chan()
116 if (!cfg80211_chandef_identical(&chandef, &local->_oper_chandef)) in ieee80211_hw_conf_chan()
117 local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
119 local->hw.conf.flags &= ~IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
121 offchannel_flag ^= local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
124 !cfg80211_chandef_identical(&local->hw.conf.chandef, in ieee80211_hw_conf_chan()
125 &local->_oper_chandef)) { in ieee80211_hw_conf_chan()
126 local->hw.conf.chandef = chandef; in ieee80211_hw_conf_chan()
130 if (!conf_is_ht(&local->hw.conf)) { in ieee80211_hw_conf_chan()
136 local->hw.conf.smps_mode = IEEE80211_SMPS_STATIC; in ieee80211_hw_conf_chan()
137 } else if (local->hw.conf.smps_mode != local->smps_mode) { in ieee80211_hw_conf_chan()
138 local->hw.conf.smps_mode = local->smps_mode; in ieee80211_hw_conf_chan()
145 list_for_each_entry_rcu(sdata, &local->interfaces, list) { in ieee80211_hw_conf_chan()
154 if (local->hw.conf.power_level != power) { in ieee80211_hw_conf_chan()
156 local->hw.conf.power_level = power; in ieee80211_hw_conf_chan()
162 int ieee80211_hw_config(struct ieee80211_local *local, u32 changed) in ieee80211_hw_config() argument
168 if (!local->use_chanctx) in ieee80211_hw_config()
169 changed |= ieee80211_hw_conf_chan(local); in ieee80211_hw_config()
174 if (changed && local->open_count) { in ieee80211_hw_config()
175 ret = drv_config(local, changed); in ieee80211_hw_config()
199 struct ieee80211_local *local = sdata->local; in ieee80211_bss_info_change_notify() local
204 drv_bss_info_changed(local, sdata, &sdata->vif.bss_conf, changed); in ieee80211_bss_info_change_notify()
219 struct ieee80211_local *local = (struct ieee80211_local *) data; in ieee80211_tasklet_handler() local
222 while ((skb = skb_dequeue(&local->skb_queue)) || in ieee80211_tasklet_handler()
223 (skb = skb_dequeue(&local->skb_queue_unreliable))) { in ieee80211_tasklet_handler()
229 ieee80211_rx(&local->hw, skb); in ieee80211_tasklet_handler()
233 ieee80211_tx_status(&local->hw, skb); in ieee80211_tasklet_handler()
246 struct ieee80211_local *local = in ieee80211_restart_work() local
251 flush_workqueue(local->workqueue); in ieee80211_restart_work()
252 flush_work(&local->sched_scan_stopped_work); in ieee80211_restart_work()
254 WARN(test_bit(SCAN_HW_SCANNING, &local->scanning), in ieee80211_restart_work()
257 flush_work(&local->radar_detected_work); in ieee80211_restart_work()
259 list_for_each_entry(sdata, &local->interfaces, list) { in ieee80211_restart_work()
280 ieee80211_scan_cancel(local); in ieee80211_restart_work()
282 /* make sure any new ROC will consider local->in_reconfig */ in ieee80211_restart_work()
283 flush_delayed_work(&local->roc_work); in ieee80211_restart_work()
284 flush_work(&local->hw_roc_done); in ieee80211_restart_work()
289 ieee80211_reconfig(local); in ieee80211_restart_work()
295 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_restart_hw() local
297 trace_api_restart_hw(local); in ieee80211_restart_hw()
311 local->in_reconfig = true; in ieee80211_restart_hw()
314 queue_work(system_freezable_wq, &local->restart_work); in ieee80211_restart_hw()
323 struct ieee80211_local *local = in ieee80211_ifa_changed() local
338 if (wdev->wiphy != local->hw.wiphy) in ieee80211_ifa_changed()
384 struct ieee80211_local *local = in ieee80211_ifa6_changed() local
390 if (!wdev || wdev->wiphy != local->hw.wiphy) in ieee80211_ifa6_changed()
402 drv_ipv6_addr_change(local, sdata, idev); in ieee80211_ifa6_changed()
510 struct ieee80211_local *local; in ieee80211_alloc_hw_nm() local
546 priv_size = ALIGN(sizeof(*local), NETDEV_ALIGN) + priv_data_len; in ieee80211_alloc_hw_nm()
601 local = wiphy_priv(wiphy); in ieee80211_alloc_hw_nm()
603 if (sta_info_init(local)) in ieee80211_alloc_hw_nm()
606 local->hw.wiphy = wiphy; in ieee80211_alloc_hw_nm()
608 local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN); in ieee80211_alloc_hw_nm()
610 local->ops = ops; in ieee80211_alloc_hw_nm()
611 local->use_chanctx = use_chanctx; in ieee80211_alloc_hw_nm()
614 local->hw.queues = 1; in ieee80211_alloc_hw_nm()
615 local->hw.max_rates = 1; in ieee80211_alloc_hw_nm()
616 local->hw.max_report_rates = 0; in ieee80211_alloc_hw_nm()
617 local->hw.max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HT; in ieee80211_alloc_hw_nm()
618 local->hw.max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HT; in ieee80211_alloc_hw_nm()
619 local->hw.offchannel_tx_hw_queue = IEEE80211_INVAL_HW_QUEUE; in ieee80211_alloc_hw_nm()
620 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long; in ieee80211_alloc_hw_nm()
621 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short; in ieee80211_alloc_hw_nm()
622 local->hw.radiotap_mcs_details = IEEE80211_RADIOTAP_MCS_HAVE_MCS | in ieee80211_alloc_hw_nm()
625 local->hw.radiotap_vht_details = IEEE80211_RADIOTAP_VHT_KNOWN_GI | in ieee80211_alloc_hw_nm()
627 local->hw.uapsd_queues = IEEE80211_DEFAULT_UAPSD_QUEUES; in ieee80211_alloc_hw_nm()
628 local->hw.uapsd_max_sp_len = IEEE80211_DEFAULT_MAX_SP_LEN; in ieee80211_alloc_hw_nm()
629 local->user_power_level = IEEE80211_UNSET_POWER_LEVEL; in ieee80211_alloc_hw_nm()
633 local->ext_capa[7] = WLAN_EXT_CAPA8_OPMODE_NOTIF; in ieee80211_alloc_hw_nm()
635 wiphy->extended_capabilities = local->ext_capa; in ieee80211_alloc_hw_nm()
636 wiphy->extended_capabilities_mask = local->ext_capa; in ieee80211_alloc_hw_nm()
638 ARRAY_SIZE(local->ext_capa); in ieee80211_alloc_hw_nm()
640 INIT_LIST_HEAD(&local->interfaces); in ieee80211_alloc_hw_nm()
641 INIT_LIST_HEAD(&local->mon_list); in ieee80211_alloc_hw_nm()
643 __hw_addr_init(&local->mc_list); in ieee80211_alloc_hw_nm()
645 mutex_init(&local->iflist_mtx); in ieee80211_alloc_hw_nm()
646 mutex_init(&local->mtx); in ieee80211_alloc_hw_nm()
648 mutex_init(&local->key_mtx); in ieee80211_alloc_hw_nm()
649 spin_lock_init(&local->filter_lock); in ieee80211_alloc_hw_nm()
650 spin_lock_init(&local->rx_path_lock); in ieee80211_alloc_hw_nm()
651 spin_lock_init(&local->queue_stop_reason_lock); in ieee80211_alloc_hw_nm()
653 INIT_LIST_HEAD(&local->chanctx_list); in ieee80211_alloc_hw_nm()
654 mutex_init(&local->chanctx_mtx); in ieee80211_alloc_hw_nm()
656 INIT_DELAYED_WORK(&local->scan_work, ieee80211_scan_work); in ieee80211_alloc_hw_nm()
658 INIT_WORK(&local->restart_work, ieee80211_restart_work); in ieee80211_alloc_hw_nm()
660 INIT_WORK(&local->radar_detected_work, in ieee80211_alloc_hw_nm()
663 INIT_WORK(&local->reconfig_filter, ieee80211_reconfig_filter); in ieee80211_alloc_hw_nm()
664 local->smps_mode = IEEE80211_SMPS_OFF; in ieee80211_alloc_hw_nm()
666 INIT_WORK(&local->dynamic_ps_enable_work, in ieee80211_alloc_hw_nm()
668 INIT_WORK(&local->dynamic_ps_disable_work, in ieee80211_alloc_hw_nm()
670 timer_setup(&local->dynamic_ps_timer, ieee80211_dynamic_ps_timer, 0); in ieee80211_alloc_hw_nm()
672 INIT_WORK(&local->sched_scan_stopped_work, in ieee80211_alloc_hw_nm()
675 INIT_WORK(&local->tdls_chsw_work, ieee80211_tdls_chsw_work); in ieee80211_alloc_hw_nm()
677 spin_lock_init(&local->ack_status_lock); in ieee80211_alloc_hw_nm()
678 idr_init(&local->ack_status_frames); in ieee80211_alloc_hw_nm()
681 skb_queue_head_init(&local->pending[i]); in ieee80211_alloc_hw_nm()
682 atomic_set(&local->agg_queue_stop[i], 0); in ieee80211_alloc_hw_nm()
684 tasklet_init(&local->tx_pending_tasklet, ieee80211_tx_pending, in ieee80211_alloc_hw_nm()
685 (unsigned long)local); in ieee80211_alloc_hw_nm()
687 tasklet_init(&local->tasklet, in ieee80211_alloc_hw_nm()
689 (unsigned long) local); in ieee80211_alloc_hw_nm()
691 skb_queue_head_init(&local->skb_queue); in ieee80211_alloc_hw_nm()
692 skb_queue_head_init(&local->skb_queue_unreliable); in ieee80211_alloc_hw_nm()
693 skb_queue_head_init(&local->skb_queue_tdls_chsw); in ieee80211_alloc_hw_nm()
695 ieee80211_alloc_led_names(local); in ieee80211_alloc_hw_nm()
697 ieee80211_roc_setup(local); in ieee80211_alloc_hw_nm()
699 local->hw.radiotap_timestamp.units_pos = -1; in ieee80211_alloc_hw_nm()
700 local->hw.radiotap_timestamp.accuracy = -1; in ieee80211_alloc_hw_nm()
702 return &local->hw; in ieee80211_alloc_hw_nm()
709 static int ieee80211_init_cipher_suites(struct ieee80211_local *local) in ieee80211_init_cipher_suites() argument
711 bool have_wep = !(IS_ERR(local->wep_tx_tfm) || in ieee80211_init_cipher_suites()
712 IS_ERR(local->wep_rx_tfm)); in ieee80211_init_cipher_suites()
713 bool have_mfp = ieee80211_hw_check(&local->hw, MFP_CAPABLE); in ieee80211_init_cipher_suites()
733 if (ieee80211_hw_check(&local->hw, SW_CRYPTO_CONTROL) || in ieee80211_init_cipher_suites()
734 local->hw.wiphy->cipher_suites) { in ieee80211_init_cipher_suites()
742 if (!local->hw.wiphy->n_cipher_suites) in ieee80211_init_cipher_suites()
746 suites = kmemdup(local->hw.wiphy->cipher_suites, in ieee80211_init_cipher_suites()
747 sizeof(u32) * local->hw.wiphy->n_cipher_suites, in ieee80211_init_cipher_suites()
752 for (r = 0; r < local->hw.wiphy->n_cipher_suites; r++) { in ieee80211_init_cipher_suites()
753 u32 suite = local->hw.wiphy->cipher_suites[r]; in ieee80211_init_cipher_suites()
760 } else if (!local->hw.cipher_schemes) { in ieee80211_init_cipher_suites()
765 local->hw.wiphy->cipher_suites = cipher_suites; in ieee80211_init_cipher_suites()
766 local->hw.wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites); in ieee80211_init_cipher_suites()
769 local->hw.wiphy->n_cipher_suites -= 4; in ieee80211_init_cipher_suites()
772 local->hw.wiphy->cipher_suites += 2; in ieee80211_init_cipher_suites()
773 local->hw.wiphy->n_cipher_suites -= 2; in ieee80211_init_cipher_suites()
781 cs = local->hw.cipher_schemes; in ieee80211_init_cipher_suites()
789 n_suites = local->hw.n_cipher_schemes + 5; in ieee80211_init_cipher_suites()
823 for (r = 0; r < local->hw.n_cipher_schemes; r++) { in ieee80211_init_cipher_suites()
832 local->hw.wiphy->cipher_suites = suites; in ieee80211_init_cipher_suites()
833 local->hw.wiphy->n_cipher_suites = w; in ieee80211_init_cipher_suites()
834 local->wiphy_ciphers_allocated = true; in ieee80211_init_cipher_suites()
841 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_register_hw() local
850 (local->hw.offchannel_tx_hw_queue == IEEE80211_INVAL_HW_QUEUE || in ieee80211_register_hw()
851 local->hw.offchannel_tx_hw_queue >= local->hw.queues)) in ieee80211_register_hw()
855 (!local->ops->tdls_channel_switch || in ieee80211_register_hw()
856 !local->ops->tdls_cancel_channel_switch || in ieee80211_register_hw()
857 !local->ops->tdls_recv_channel_switch)) in ieee80211_register_hw()
861 !local->ops->set_frag_threshold)) in ieee80211_register_hw()
864 if (WARN_ON(local->hw.wiphy->interface_modes & in ieee80211_register_hw()
866 (!local->ops->start_nan || !local->ops->stop_nan))) in ieee80211_register_hw()
870 if (hw->wiphy->wowlan && (!local->ops->suspend || !local->ops->resume)) in ieee80211_register_hw()
874 if (!local->use_chanctx) { in ieee80211_register_hw()
875 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) { in ieee80211_register_hw()
878 comb = &local->hw.wiphy->iface_combinations[i]; in ieee80211_register_hw()
889 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_WDS)) in ieee80211_register_hw()
893 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) { in ieee80211_register_hw()
896 comb = &local->hw.wiphy->iface_combinations[i]; in ieee80211_register_hw()
914 local->rx_chains = 1; in ieee80211_register_hw()
929 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
938 if (!local->use_chanctx && !local->_oper_chandef.chan) { in ieee80211_register_hw()
939 local->hw.conf.chandef = dflt_chandef; in ieee80211_register_hw()
940 local->_oper_chandef = dflt_chandef; in ieee80211_register_hw()
942 local->monitor_chandef = dflt_chandef; in ieee80211_register_hw()
959 local->rx_chains = in ieee80211_register_hw()
961 local->rx_chains); in ieee80211_register_hw()
972 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP) && in ieee80211_register_hw()
973 !ieee80211_hw_check(&local->hw, SW_CRYPTO_CONTROL)) { in ieee80211_register_hw()
995 local->int_scan_req = kzalloc(sizeof(*local->int_scan_req) + in ieee80211_register_hw()
997 if (!local->int_scan_req) in ieee80211_register_hw()
1001 if (!local->hw.wiphy->bands[band]) in ieee80211_register_hw()
1003 local->int_scan_req->rates[band] = (u32) -1; in ieee80211_register_hw()
1008 local->hw.wiphy->interface_modes &= ~BIT(NL80211_IFTYPE_MESH_POINT); in ieee80211_register_hw()
1013 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_MESH_POINT)) in ieee80211_register_hw()
1014 local->hw.wiphy->flags |= WIPHY_FLAG_MESH_AUTH; in ieee80211_register_hw()
1017 local->hw.wiphy->flags |= WIPHY_FLAG_CONTROL_PORT_PROTOCOL; in ieee80211_register_hw()
1019 if (ieee80211_hw_check(&local->hw, SIGNAL_DBM)) { in ieee80211_register_hw()
1020 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in ieee80211_register_hw()
1021 } else if (ieee80211_hw_check(&local->hw, SIGNAL_UNSPEC)) { in ieee80211_register_hw()
1022 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_UNSPEC; in ieee80211_register_hw()
1035 local->scan_ies_len = 4 + max_bitrates /* (ext) supp rates */ + in ieee80211_register_hw()
1038 local->scan_ies_len += 2 + sizeof(struct ieee80211_ht_cap); in ieee80211_register_hw()
1041 local->scan_ies_len += in ieee80211_register_hw()
1051 local->scan_ies_len += in ieee80211_register_hw()
1056 if (!local->ops->hw_scan) { in ieee80211_register_hw()
1058 local->hw.wiphy->max_scan_ssids = 4; in ieee80211_register_hw()
1059 local->hw.wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN; in ieee80211_register_hw()
1069 if (local->hw.wiphy->max_scan_ie_len) in ieee80211_register_hw()
1070 local->hw.wiphy->max_scan_ie_len -= local->scan_ies_len; in ieee80211_register_hw()
1072 WARN_ON(!ieee80211_cs_list_valid(local->hw.cipher_schemes, in ieee80211_register_hw()
1073 local->hw.n_cipher_schemes)); in ieee80211_register_hw()
1075 result = ieee80211_init_cipher_suites(local); in ieee80211_register_hw()
1079 if (!local->ops->remain_on_channel) in ieee80211_register_hw()
1080 local->hw.wiphy->max_remain_on_channel_duration = 5000; in ieee80211_register_hw()
1083 if (local->hw.wiphy->flags & WIPHY_FLAG_SUPPORTS_TDLS) in ieee80211_register_hw()
1084 local->hw.wiphy->flags |= WIPHY_FLAG_TDLS_EXTERNAL_SETUP; in ieee80211_register_hw()
1087 if (ieee80211_hw_check(&local->hw, CHANCTX_STA_CSA)) in ieee80211_register_hw()
1088 local->ext_capa[0] |= WLAN_EXT_CAPA1_EXT_CHANNEL_SWITCHING; in ieee80211_register_hw()
1090 local->hw.wiphy->max_num_csa_counters = IEEE80211_MAX_CSA_COUNTERS_NUM; in ieee80211_register_hw()
1092 result = wiphy_register(local->hw.wiphy); in ieee80211_register_hw()
1103 local->workqueue = in ieee80211_register_hw()
1104 alloc_ordered_workqueue("%s", 0, wiphy_name(local->hw.wiphy)); in ieee80211_register_hw()
1105 if (!local->workqueue) { in ieee80211_register_hw()
1115 local->tx_headroom = max_t(unsigned int , local->hw.extra_tx_headroom, in ieee80211_register_hw()
1118 debugfs_hw_add(local); in ieee80211_register_hw()
1124 if (local->hw.max_listen_interval == 0) in ieee80211_register_hw()
1125 local->hw.max_listen_interval = 5; in ieee80211_register_hw()
1127 local->hw.conf.listen_interval = local->hw.max_listen_interval; in ieee80211_register_hw()
1129 local->dynamic_ps_forced_timeout = -1; in ieee80211_register_hw()
1131 if (!local->hw.max_nan_de_entries) in ieee80211_register_hw()
1132 local->hw.max_nan_de_entries = IEEE80211_MAX_NAN_INSTANCE_ID; in ieee80211_register_hw()
1134 result = ieee80211_wep_init(local); in ieee80211_register_hw()
1136 wiphy_debug(local->hw.wiphy, "Failed to initialize wep: %d\n", in ieee80211_register_hw()
1139 local->hw.conf.flags = IEEE80211_CONF_IDLE; in ieee80211_register_hw()
1141 ieee80211_led_init(local); in ieee80211_register_hw()
1143 result = ieee80211_txq_setup_flows(local); in ieee80211_register_hw()
1149 result = ieee80211_init_rate_ctrl_alg(local, in ieee80211_register_hw()
1152 wiphy_debug(local->hw.wiphy, in ieee80211_register_hw()
1158 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) && in ieee80211_register_hw()
1160 result = ieee80211_if_add(local, "wlan%d", NET_NAME_ENUM, NULL, in ieee80211_register_hw()
1163 wiphy_warn(local->hw.wiphy, in ieee80211_register_hw()
1170 local->ifa_notifier.notifier_call = ieee80211_ifa_changed; in ieee80211_register_hw()
1171 result = register_inetaddr_notifier(&local->ifa_notifier); in ieee80211_register_hw()
1177 local->ifa6_notifier.notifier_call = ieee80211_ifa6_changed; in ieee80211_register_hw()
1178 result = register_inet6addr_notifier(&local->ifa6_notifier); in ieee80211_register_hw()
1188 unregister_inetaddr_notifier(&local->ifa_notifier); in ieee80211_register_hw()
1195 rate_control_deinitialize(local); in ieee80211_register_hw()
1196 ieee80211_remove_interfaces(local); in ieee80211_register_hw()
1199 ieee80211_led_exit(local); in ieee80211_register_hw()
1200 ieee80211_wep_free(local); in ieee80211_register_hw()
1202 destroy_workqueue(local->workqueue); in ieee80211_register_hw()
1204 wiphy_unregister(local->hw.wiphy); in ieee80211_register_hw()
1206 if (local->wiphy_ciphers_allocated) in ieee80211_register_hw()
1207 kfree(local->hw.wiphy->cipher_suites); in ieee80211_register_hw()
1208 kfree(local->int_scan_req); in ieee80211_register_hw()
1215 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_unregister_hw() local
1217 tasklet_kill(&local->tx_pending_tasklet); in ieee80211_unregister_hw()
1218 tasklet_kill(&local->tasklet); in ieee80211_unregister_hw()
1221 unregister_inetaddr_notifier(&local->ifa_notifier); in ieee80211_unregister_hw()
1224 unregister_inet6addr_notifier(&local->ifa6_notifier); in ieee80211_unregister_hw()
1234 ieee80211_remove_interfaces(local); in ieee80211_unregister_hw()
1238 cancel_delayed_work_sync(&local->roc_work); in ieee80211_unregister_hw()
1239 cancel_work_sync(&local->restart_work); in ieee80211_unregister_hw()
1240 cancel_work_sync(&local->reconfig_filter); in ieee80211_unregister_hw()
1241 cancel_work_sync(&local->tdls_chsw_work); in ieee80211_unregister_hw()
1242 flush_work(&local->sched_scan_stopped_work); in ieee80211_unregister_hw()
1243 flush_work(&local->radar_detected_work); in ieee80211_unregister_hw()
1245 ieee80211_clear_tx_pending(local); in ieee80211_unregister_hw()
1246 rate_control_deinitialize(local); in ieee80211_unregister_hw()
1248 if (skb_queue_len(&local->skb_queue) || in ieee80211_unregister_hw()
1249 skb_queue_len(&local->skb_queue_unreliable)) in ieee80211_unregister_hw()
1250 wiphy_warn(local->hw.wiphy, "skb_queue not empty\n"); in ieee80211_unregister_hw()
1251 skb_queue_purge(&local->skb_queue); in ieee80211_unregister_hw()
1252 skb_queue_purge(&local->skb_queue_unreliable); in ieee80211_unregister_hw()
1253 skb_queue_purge(&local->skb_queue_tdls_chsw); in ieee80211_unregister_hw()
1255 destroy_workqueue(local->workqueue); in ieee80211_unregister_hw()
1256 wiphy_unregister(local->hw.wiphy); in ieee80211_unregister_hw()
1257 ieee80211_wep_free(local); in ieee80211_unregister_hw()
1258 ieee80211_led_exit(local); in ieee80211_unregister_hw()
1259 kfree(local->int_scan_req); in ieee80211_unregister_hw()
1272 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_free_hw() local
1274 mutex_destroy(&local->iflist_mtx); in ieee80211_free_hw()
1275 mutex_destroy(&local->mtx); in ieee80211_free_hw()
1277 if (local->wiphy_ciphers_allocated) in ieee80211_free_hw()
1278 kfree(local->hw.wiphy->cipher_suites); in ieee80211_free_hw()
1280 idr_for_each(&local->ack_status_frames, in ieee80211_free_hw()
1282 idr_destroy(&local->ack_status_frames); in ieee80211_free_hw()
1284 sta_info_stop(local); in ieee80211_free_hw()
1286 ieee80211_free_led_names(local); in ieee80211_free_hw()
1288 wiphy_free(local->hw.wiphy); in ieee80211_free_hw()