Lines Matching refs:wiphy

342 	wiphy_lock(local->hw.wiphy);
364 wiphy_work_cancel(local->hw.wiphy,
379 wiphy_delayed_work_flush(local->hw.wiphy, &local->roc_work);
380 wiphy_work_flush(local->hw.wiphy, &local->hw_roc_done);
386 wiphy_unlock(local->hw.wiphy);
389 cfg80211_shutdown_all_interfaces(local->hw.wiphy);
400 wiphy_info(hw->wiphy,
439 if (wdev->wiphy != local->hw.wiphy)
490 if (!wdev || wdev->wiphy != local->hw.wiphy)
627 struct wiphy *wiphy;
651 * We use the wiphy priv data for both our ieee80211_local and for
657 * | struct wiphy |
667 wiphy = wiphy_new_nm(&mac80211_config_ops, priv_size, requested_name);
669 if (!wiphy)
672 wiphy->mgmt_stypes = ieee80211_default_mgmt_stypes;
674 wiphy->privid = mac80211_wiphy_privid;
676 wiphy->flags |= WIPHY_FLAG_NETNS_OK |
683 wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
685 wiphy->features |= NL80211_FEATURE_SK_TX_STATUS |
692 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_FILS_STA);
693 wiphy_ext_feature_set(wiphy,
695 wiphy_ext_feature_set(wiphy,
697 wiphy_ext_feature_set(wiphy,
699 wiphy_ext_feature_set(wiphy,
701 wiphy_ext_feature_set(wiphy,
705 wiphy->features |= NL80211_FEATURE_LOW_PRIORITY_SCAN |
712 wiphy_ext_feature_set(wiphy,
714 wiphy_ext_feature_set(wiphy,
719 wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
721 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_TXQS);
722 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_RRM);
724 wiphy->bss_priv_size = sizeof(struct ieee80211_bss);
726 local = wiphy_priv(wiphy);
731 local->hw.wiphy = wiphy;
757 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long;
758 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short;
768 wiphy->ht_capa_mod_mask = &mac80211_ht_capa_mod_mask;
769 wiphy->vht_capa_mod_mask = &mac80211_vht_capa_mod_mask;
773 wiphy->extended_capabilities = local->ext_capa;
774 wiphy->extended_capabilities_mask = local->ext_capa;
775 wiphy->extended_capabilities_len =
851 wiphy_free(wiphy);
880 local->hw.wiphy->cipher_suites) {
888 if (!local->hw.wiphy->n_cipher_suites)
892 suites = kmemdup(local->hw.wiphy->cipher_suites,
893 sizeof(u32) * local->hw.wiphy->n_cipher_suites,
898 for (r = 0; r < local->hw.wiphy->n_cipher_suites; r++) {
899 u32 suite = local->hw.wiphy->cipher_suites[r];
910 local->hw.wiphy->cipher_suites = cipher_suites;
911 local->hw.wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);
914 local->hw.wiphy->n_cipher_suites -= 4;
917 local->hw.wiphy->cipher_suites += 2;
918 local->hw.wiphy->n_cipher_suites -= 2;
925 local->hw.wiphy->cipher_suites = suites;
926 local->hw.wiphy->n_cipher_suites = w;
946 if ((hw->wiphy->features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH) &&
956 if (WARN_ON(local->hw.wiphy->interface_modes &
961 if (hw->wiphy->flags & WIPHY_FLAG_SUPPORTS_MLO) {
1008 if (hw->wiphy->wowlan && (!local->ops->suspend || !local->ops->resume))
1013 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) {
1016 comb = &local->hw.wiphy->iface_combinations[i];
1023 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) {
1026 comb = &local->hw.wiphy->iface_combinations[i];
1057 sband = local->hw.wiphy->bands[band];
1093 hw->wiphy->flags & WIPHY_FLAG_SUPPORTS_MLO))
1136 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP) &&
1138 hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN);
1139 hw->wiphy->software_iftypes |= BIT(NL80211_IFTYPE_AP_VLAN);
1143 hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR);
1144 hw->wiphy->software_iftypes |= BIT(NL80211_IFTYPE_MONITOR);
1147 for (i = 0; i < hw->wiphy->n_iface_combinations; i++) {
1151 c = &hw->wiphy->iface_combinations[i];
1167 if (!local->hw.wiphy->bands[band])
1174 local->hw.wiphy->interface_modes &= ~BIT(NL80211_IFTYPE_MESH_POINT);
1179 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_MESH_POINT))
1180 local->hw.wiphy->flags |= WIPHY_FLAG_MESH_AUTH;
1183 local->hw.wiphy->flags |= WIPHY_FLAG_CONTROL_PORT_PROTOCOL;
1186 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
1188 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_UNSPEC;
1199 wiphy_ext_feature_set(local->hw.wiphy,
1201 wiphy_ext_feature_set(local->hw.wiphy,
1205 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_ADHOC))
1206 wiphy_ext_feature_set(local->hw.wiphy,
1241 local->hw.wiphy->max_scan_ssids = 4;
1242 local->hw.wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
1252 if (local->hw.wiphy->max_scan_ie_len)
1253 local->hw.wiphy->max_scan_ie_len -= local->scan_ies_len;
1260 local->hw.wiphy->max_remain_on_channel_duration = 5000;
1263 if (local->hw.wiphy->flags & WIPHY_FLAG_SUPPORTS_TDLS)
1264 local->hw.wiphy->flags |= WIPHY_FLAG_TDLS_EXTERNAL_SETUP;
1272 local->hw.wiphy->support_mbssid = true;
1275 local->hw.wiphy->support_only_he_mbssid = true;
1281 local->hw.wiphy->max_num_csa_counters = IEEE80211_MAX_CNTDWN_COUNTERS_NUM;
1291 alloc_ordered_workqueue("%s", 0, wiphy_name(local->hw.wiphy));
1337 wiphy_debug(local->hw.wiphy,
1363 sband = local->hw.wiphy->bands[band];
1379 wiphy_dbg(hw->wiphy, "copying sband (band %d) due to VHT EXT NSS BW flag\n",
1385 local->hw.wiphy->bands[band] = sband;
1389 result = wiphy_register(local->hw.wiphy);
1397 wiphy_lock(hw->wiphy);
1400 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) &&
1407 wiphy_warn(local->hw.wiphy,
1411 wiphy_unlock(hw->wiphy);
1439 wiphy_unregister(local->hw.wiphy);
1451 kfree(local->hw.wiphy->cipher_suites);
1482 wiphy_lock(local->hw.wiphy);
1483 wiphy_delayed_work_cancel(local->hw.wiphy, &local->roc_work);
1484 wiphy_work_cancel(local->hw.wiphy, &local->sched_scan_stopped_work);
1485 wiphy_work_cancel(local->hw.wiphy, &local->radar_detected_work);
1486 wiphy_unlock(local->hw.wiphy);
1497 wiphy_warn(local->hw.wiphy, "skb_queue not empty\n");
1501 wiphy_unregister(local->hw.wiphy);
1524 kfree(local->hw.wiphy->cipher_suites);
1539 kfree(local->hw.wiphy->bands[band]);
1542 wiphy_free(local->hw.wiphy);