Lines Matching defs:wiphy
305 wiphy_info(hw->wiphy,
344 if (wdev->wiphy != local->hw.wiphy)
396 if (!wdev || wdev->wiphy != local->hw.wiphy)
533 struct wiphy *wiphy;
553 * We use the wiphy priv data for both our ieee80211_local and for
559 * | struct wiphy |
569 wiphy = wiphy_new_nm(&mac80211_config_ops, priv_size, requested_name);
571 if (!wiphy)
574 wiphy->mgmt_stypes = ieee80211_default_mgmt_stypes;
576 wiphy->privid = mac80211_wiphy_privid;
578 wiphy->flags |= WIPHY_FLAG_NETNS_OK |
585 wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
587 wiphy->features |= NL80211_FEATURE_SK_TX_STATUS |
594 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_FILS_STA);
595 wiphy_ext_feature_set(wiphy,
597 wiphy_ext_feature_set(wiphy,
599 wiphy_ext_feature_set(wiphy,
601 wiphy_ext_feature_set(wiphy,
605 wiphy->features |= NL80211_FEATURE_LOW_PRIORITY_SCAN |
612 wiphy_ext_feature_set(wiphy,
614 wiphy_ext_feature_set(wiphy,
619 wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
622 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_TXQS);
624 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_RRM);
626 wiphy->bss_priv_size = sizeof(struct ieee80211_bss);
628 local = wiphy_priv(wiphy);
633 local->hw.wiphy = wiphy;
659 local->hw.conf.long_frame_max_tx_count = wiphy->retry_long;
660 local->hw.conf.short_frame_max_tx_count = wiphy->retry_short;
670 wiphy->ht_capa_mod_mask = &mac80211_ht_capa_mod_mask;
671 wiphy->vht_capa_mod_mask = &mac80211_vht_capa_mod_mask;
675 wiphy->extended_capabilities = local->ext_capa;
676 wiphy->extended_capabilities_mask = local->ext_capa;
677 wiphy->extended_capabilities_len =
760 wiphy_free(wiphy);
789 local->hw.wiphy->cipher_suites) {
797 if (!local->hw.wiphy->n_cipher_suites)
801 suites = kmemdup(local->hw.wiphy->cipher_suites,
802 sizeof(u32) * local->hw.wiphy->n_cipher_suites,
807 for (r = 0; r < local->hw.wiphy->n_cipher_suites; r++) {
808 u32 suite = local->hw.wiphy->cipher_suites[r];
820 local->hw.wiphy->cipher_suites = cipher_suites;
821 local->hw.wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);
824 local->hw.wiphy->n_cipher_suites -= 4;
827 local->hw.wiphy->cipher_suites += 2;
828 local->hw.wiphy->n_cipher_suites -= 2;
887 local->hw.wiphy->cipher_suites = suites;
888 local->hw.wiphy->n_cipher_suites = w;
908 if ((hw->wiphy->features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH) &&
918 if (WARN_ON(local->hw.wiphy->interface_modes &
924 if (hw->wiphy->wowlan && (!local->ops->suspend || !local->ops->resume))
929 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) {
932 comb = &local->hw.wiphy->iface_combinations[i];
943 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_WDS))
947 for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) {
950 comb = &local->hw.wiphy->iface_combinations[i];
980 sband = local->hw.wiphy->bands[band];
1039 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP) &&
1041 hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN);
1042 hw->wiphy->software_iftypes |= BIT(NL80211_IFTYPE_AP_VLAN);
1046 hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_MONITOR);
1047 hw->wiphy->software_iftypes |= BIT(NL80211_IFTYPE_MONITOR);
1050 for (i = 0; i < hw->wiphy->n_iface_combinations; i++) {
1054 c = &hw->wiphy->iface_combinations[i];
1068 if (!local->hw.wiphy->bands[band])
1075 local->hw.wiphy->interface_modes &= ~BIT(NL80211_IFTYPE_MESH_POINT);
1080 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_MESH_POINT))
1081 local->hw.wiphy->flags |= WIPHY_FLAG_MESH_AUTH;
1084 local->hw.wiphy->flags |= WIPHY_FLAG_CONTROL_PORT_PROTOCOL;
1087 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
1089 local->hw.wiphy->signal_type = CFG80211_SIGNAL_TYPE_UNSPEC;
1100 wiphy_ext_feature_set(local->hw.wiphy,
1102 wiphy_ext_feature_set(local->hw.wiphy,
1106 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_ADHOC))
1107 wiphy_ext_feature_set(local->hw.wiphy,
1139 local->hw.wiphy->max_scan_ssids = 4;
1140 local->hw.wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
1150 if (local->hw.wiphy->max_scan_ie_len)
1151 local->hw.wiphy->max_scan_ie_len -= local->scan_ies_len;
1164 local->hw.wiphy->max_remain_on_channel_duration = 5000;
1167 if (local->hw.wiphy->flags & WIPHY_FLAG_SUPPORTS_TDLS)
1168 local->hw.wiphy->flags |= WIPHY_FLAG_TDLS_EXTERNAL_SETUP;
1176 local->hw.wiphy->support_mbssid = true;
1179 local->hw.wiphy->support_only_he_mbssid = true;
1185 local->hw.wiphy->max_num_csa_counters = IEEE80211_MAX_CNTDWN_COUNTERS_NUM;
1195 alloc_ordered_workqueue("%s", 0, wiphy_name(local->hw.wiphy));
1241 wiphy_debug(local->hw.wiphy,
1267 sband = local->hw.wiphy->bands[band];
1283 wiphy_dbg(hw->wiphy, "copying sband (band %d) due to VHT EXT NSS BW flag\n",
1289 local->hw.wiphy->bands[band] = sband;
1293 result = wiphy_register(local->hw.wiphy);
1303 if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION) &&
1310 wiphy_warn(local->hw.wiphy,
1341 wiphy_unregister(local->hw.wiphy);
1353 kfree(local->hw.wiphy->cipher_suites);
1398 wiphy_warn(local->hw.wiphy, "skb_queue not empty\n");
1403 wiphy_unregister(local->hw.wiphy);
1426 kfree(local->hw.wiphy->cipher_suites);
1441 kfree(local->hw.wiphy->bands[band]);
1444 wiphy_free(local->hw.wiphy);