Lines Matching refs:wiphy

344 	wiphy_lock(local->hw.wiphy);  in ieee80211_restart_work()
387 wiphy_unlock(local->hw.wiphy); in ieee80211_restart_work()
390 cfg80211_shutdown_all_interfaces(local->hw.wiphy); in ieee80211_restart_work()
401 wiphy_info(hw->wiphy, in ieee80211_restart_hw()
440 if (wdev->wiphy != local->hw.wiphy) in ieee80211_ifa_changed()
491 if (!wdev || wdev->wiphy != local->hw.wiphy) in ieee80211_ifa6_changed()
628 struct wiphy *wiphy; in ieee80211_alloc_hw_nm() local
668 wiphy = wiphy_new_nm(&mac80211_config_ops, priv_size, requested_name); in ieee80211_alloc_hw_nm()
670 if (!wiphy) in ieee80211_alloc_hw_nm()
673 wiphy->mgmt_stypes = ieee80211_default_mgmt_stypes; in ieee80211_alloc_hw_nm()
675 wiphy->privid = mac80211_wiphy_privid; in ieee80211_alloc_hw_nm()
677 wiphy->flags |= WIPHY_FLAG_NETNS_OK | in ieee80211_alloc_hw_nm()
684 wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; in ieee80211_alloc_hw_nm()
686 wiphy->features |= NL80211_FEATURE_SK_TX_STATUS | in ieee80211_alloc_hw_nm()
693 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_FILS_STA); in ieee80211_alloc_hw_nm()
694 wiphy_ext_feature_set(wiphy, in ieee80211_alloc_hw_nm()
696 wiphy_ext_feature_set(wiphy, in ieee80211_alloc_hw_nm()
698 wiphy_ext_feature_set(wiphy, in ieee80211_alloc_hw_nm()
700 wiphy_ext_feature_set(wiphy, in ieee80211_alloc_hw_nm()
702 wiphy_ext_feature_set(wiphy, in ieee80211_alloc_hw_nm()
706 wiphy->features |= NL80211_FEATURE_LOW_PRIORITY_SCAN | in ieee80211_alloc_hw_nm()
713 wiphy_ext_feature_set(wiphy, in ieee80211_alloc_hw_nm()
715 wiphy_ext_feature_set(wiphy, in ieee80211_alloc_hw_nm()
720 wiphy->flags |= WIPHY_FLAG_IBSS_RSN; in ieee80211_alloc_hw_nm()
722 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_TXQS); in ieee80211_alloc_hw_nm()
723 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_RRM); in ieee80211_alloc_hw_nm()
725 wiphy->bss_priv_size = sizeof(struct ieee80211_bss); in ieee80211_alloc_hw_nm()
727 local = wiphy_priv(wiphy); in ieee80211_alloc_hw_nm()
732 local->hw.wiphy = wiphy; in ieee80211_alloc_hw_nm()
758 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long; in ieee80211_alloc_hw_nm()
759 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short; in ieee80211_alloc_hw_nm()
769 wiphy->ht_capa_mod_mask = &mac80211_ht_capa_mod_mask; in ieee80211_alloc_hw_nm()
770 wiphy->vht_capa_mod_mask = &mac80211_vht_capa_mod_mask; in ieee80211_alloc_hw_nm()
774 wiphy->extended_capabilities = local->ext_capa; in ieee80211_alloc_hw_nm()
775 wiphy->extended_capabilities_mask = local->ext_capa; in ieee80211_alloc_hw_nm()
776 wiphy->extended_capabilities_len = in ieee80211_alloc_hw_nm()
850 wiphy_free(wiphy); in ieee80211_alloc_hw_nm()
879 local->hw.wiphy->cipher_suites) { in ieee80211_init_cipher_suites()
887 if (!local->hw.wiphy->n_cipher_suites) in ieee80211_init_cipher_suites()
891 suites = kmemdup(local->hw.wiphy->cipher_suites, in ieee80211_init_cipher_suites()
892 sizeof(u32) * local->hw.wiphy->n_cipher_suites, in ieee80211_init_cipher_suites()
897 for (r = 0; r < local->hw.wiphy->n_cipher_suites; r++) { in ieee80211_init_cipher_suites()
898 u32 suite = local->hw.wiphy->cipher_suites[r]; in ieee80211_init_cipher_suites()
909 local->hw.wiphy->cipher_suites = cipher_suites; in ieee80211_init_cipher_suites()
910 local->hw.wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites); in ieee80211_init_cipher_suites()
913 local->hw.wiphy->n_cipher_suites -= 4; in ieee80211_init_cipher_suites()
916 local->hw.wiphy->cipher_suites += 2; in ieee80211_init_cipher_suites()
917 local->hw.wiphy->n_cipher_suites -= 2; in ieee80211_init_cipher_suites()
924 local->hw.wiphy->cipher_suites = suites; in ieee80211_init_cipher_suites()
925 local->hw.wiphy->n_cipher_suites = w; in ieee80211_init_cipher_suites()
945 if ((hw->wiphy->features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH) && in ieee80211_register_hw()
955 if (WARN_ON(local->hw.wiphy->interface_modes & in ieee80211_register_hw()
960 if (hw->wiphy->flags & WIPHY_FLAG_SUPPORTS_MLO) { in ieee80211_register_hw()
1007 if (hw->wiphy->wowlan && (!local->ops->suspend || !local->ops->resume)) in ieee80211_register_hw()
1012 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) { in ieee80211_register_hw()
1015 comb = &local->hw.wiphy->iface_combinations[i]; in ieee80211_register_hw()
1022 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) { in ieee80211_register_hw()
1025 comb = &local->hw.wiphy->iface_combinations[i]; in ieee80211_register_hw()
1056 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
1092 hw->wiphy->flags & WIPHY_FLAG_SUPPORTS_MLO)) in ieee80211_register_hw()
1135 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP) && in ieee80211_register_hw()
1137 hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN); in ieee80211_register_hw()
1138 hw->wiphy->software_iftypes |= BIT(NL80211_IFTYPE_AP_VLAN); in ieee80211_register_hw()
1142 hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR); in ieee80211_register_hw()
1143 hw->wiphy->software_iftypes |= BIT(NL80211_IFTYPE_MONITOR); in ieee80211_register_hw()
1146 for (i = 0; i < hw->wiphy->n_iface_combinations; i++) { in ieee80211_register_hw()
1150 c = &hw->wiphy->iface_combinations[i]; in ieee80211_register_hw()
1166 if (!local->hw.wiphy->bands[band]) in ieee80211_register_hw()
1173 local->hw.wiphy->interface_modes &= ~BIT(NL80211_IFTYPE_MESH_POINT); in ieee80211_register_hw()
1178 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_MESH_POINT)) in ieee80211_register_hw()
1179 local->hw.wiphy->flags |= WIPHY_FLAG_MESH_AUTH; in ieee80211_register_hw()
1182 local->hw.wiphy->flags |= WIPHY_FLAG_CONTROL_PORT_PROTOCOL; in ieee80211_register_hw()
1185 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM; in ieee80211_register_hw()
1187 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_UNSPEC; in ieee80211_register_hw()
1198 wiphy_ext_feature_set(local->hw.wiphy, in ieee80211_register_hw()
1200 wiphy_ext_feature_set(local->hw.wiphy, in ieee80211_register_hw()
1204 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_ADHOC)) in ieee80211_register_hw()
1205 wiphy_ext_feature_set(local->hw.wiphy, in ieee80211_register_hw()
1240 local->hw.wiphy->max_scan_ssids = 4; in ieee80211_register_hw()
1241 local->hw.wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN; in ieee80211_register_hw()
1251 if (local->hw.wiphy->max_scan_ie_len) in ieee80211_register_hw()
1252 local->hw.wiphy->max_scan_ie_len -= local->scan_ies_len; in ieee80211_register_hw()
1259 local->hw.wiphy->max_remain_on_channel_duration = 5000; in ieee80211_register_hw()
1262 if (local->hw.wiphy->flags & WIPHY_FLAG_SUPPORTS_TDLS) in ieee80211_register_hw()
1263 local->hw.wiphy->flags |= WIPHY_FLAG_TDLS_EXTERNAL_SETUP; in ieee80211_register_hw()
1271 local->hw.wiphy->support_mbssid = true; in ieee80211_register_hw()
1274 local->hw.wiphy->support_only_he_mbssid = true; in ieee80211_register_hw()
1280 local->hw.wiphy->max_num_csa_counters = IEEE80211_MAX_CNTDWN_COUNTERS_NUM; in ieee80211_register_hw()
1290 alloc_ordered_workqueue("%s", 0, wiphy_name(local->hw.wiphy)); in ieee80211_register_hw()
1336 wiphy_debug(local->hw.wiphy, in ieee80211_register_hw()
1362 sband = local->hw.wiphy->bands[band]; in ieee80211_register_hw()
1378 wiphy_dbg(hw->wiphy, "copying sband (band %d) due to VHT EXT NSS BW flag\n", in ieee80211_register_hw()
1384 local->hw.wiphy->bands[band] = sband; in ieee80211_register_hw()
1388 result = wiphy_register(local->hw.wiphy); in ieee80211_register_hw()
1396 wiphy_lock(hw->wiphy); in ieee80211_register_hw()
1399 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) && in ieee80211_register_hw()
1406 wiphy_warn(local->hw.wiphy, in ieee80211_register_hw()
1410 wiphy_unlock(hw->wiphy); in ieee80211_register_hw()
1438 wiphy_unregister(local->hw.wiphy); in ieee80211_register_hw()
1450 kfree(local->hw.wiphy->cipher_suites); in ieee80211_register_hw()
1494 wiphy_warn(local->hw.wiphy, "skb_queue not empty\n"); in ieee80211_unregister_hw()
1498 wiphy_unregister(local->hw.wiphy); in ieee80211_unregister_hw()
1521 kfree(local->hw.wiphy->cipher_suites); in ieee80211_free_hw()
1536 kfree(local->hw.wiphy->bands[band]); in ieee80211_free_hw()
1539 wiphy_free(local->hw.wiphy); in ieee80211_free_hw()