Lines Matching refs:wiphy

28 	struct wiphy *wiphy = wdev->wiphy;  in cfg80211_rx_assoc_resp()  local
29 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_rx_assoc_resp()
87 cfg80211_put_bss(wiphy, bss); in cfg80211_rx_assoc_resp()
101 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_auth()
111 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_deauth()
130 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_disassoc()
171 struct wiphy *wiphy = wdev->wiphy; in cfg80211_auth_timeout() local
172 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_auth_timeout()
185 struct wiphy *wiphy = wdev->wiphy; in cfg80211_assoc_failure() local
186 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_assoc_failure()
206 cfg80211_put_bss(wiphy, bss); in cfg80211_assoc_failure()
235 struct wiphy *wiphy = dev->ieee80211_ptr->wiphy; in cfg80211_michael_mic_failure() local
236 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_michael_mic_failure()
271 !(wdev->wiphy->flags & WIPHY_FLAG_SUPPORTS_MLO)) in cfg80211_mlme_auth()
346 rdev->wiphy.ht_capa_mod_mask); in cfg80211_mlme_assoc()
348 rdev->wiphy.vht_capa_mod_mask); in cfg80211_mlme_assoc()
355 cfg80211_ref_bss(&rdev->wiphy, req->bss); in cfg80211_mlme_assoc()
362 cfg80211_ref_bss(&rdev->wiphy, req->links[link_id].bss); in cfg80211_mlme_assoc()
466 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mgmt_registrations_update()
471 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_mgmt_registrations_update()
480 list_for_each_entry_rcu(tmp, &rdev->wiphy.wdev_list, list) { in cfg80211_mgmt_registrations_update()
513 wiphy_lock(&rdev->wiphy); in cfg80211_mgmt_registrations_update_wk()
514 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) in cfg80211_mgmt_registrations_update_wk()
516 wiphy_unlock(&rdev->wiphy); in cfg80211_mgmt_registrations_update_wk()
524 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mlme_register_mgmt()
530 if (!wdev->wiphy->mgmt_stypes) in cfg80211_mlme_register_mgmt()
544 if (!(wdev->wiphy->mgmt_stypes[wdev->iftype].rx & BIT(mgmt_type))) { in cfg80211_mlme_register_mgmt()
620 struct wiphy *wiphy = wdev->wiphy; in cfg80211_mlme_unregister_socket() local
621 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_mlme_unregister_socket()
650 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mlme_purge_registrations()
683 if (!wdev->wiphy->mgmt_stypes) in cfg80211_mlme_mgmt_tx()
698 if (!(wdev->wiphy->mgmt_stypes[wdev->iftype].tx & BIT(stype >> 4))) in cfg80211_mlme_mgmt_tx()
787 &rdev->wiphy, in cfg80211_mlme_mgmt_tx()
792 &rdev->wiphy, in cfg80211_mlme_mgmt_tx()
804 struct wiphy *wiphy = wdev->wiphy; in cfg80211_rx_mgmt_ext() local
805 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_rx_mgmt_ext()
808 &wiphy->mgmt_stypes[wdev->iftype]; in cfg80211_rx_mgmt_ext()
871 struct wiphy *wiphy; in cfg80211_dfs_channels_update_work() local
880 wiphy = &rdev->wiphy; in cfg80211_dfs_channels_update_work()
884 sband = wiphy->bands[bandid]; in cfg80211_dfs_channels_update_work()
902 if (regulatory_pre_cac_allowed(wiphy) || in cfg80211_dfs_channels_update_work()
903 cfg80211_any_wiphy_oper_chan(wiphy, c)) in cfg80211_dfs_channels_update_work()
924 regulatory_propagate_dfs_state(wiphy, &chandef, in cfg80211_dfs_channels_update_work()
946 void __cfg80211_radar_event(struct wiphy *wiphy, in __cfg80211_radar_event() argument
950 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in __cfg80211_radar_event()
952 trace_cfg80211_radar_event(wiphy, chandef, offchan); in __cfg80211_radar_event()
958 cfg80211_set_dfs_state(wiphy, chandef, NL80211_DFS_UNAVAILABLE); in __cfg80211_radar_event()
977 struct wiphy *wiphy = wdev->wiphy; in cfg80211_cac_event() local
978 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_cac_event()
995 cfg80211_set_dfs_state(wiphy, chandef, NL80211_DFS_AVAILABLE); in cfg80211_cac_event()
1022 struct wiphy *wiphy = &rdev->wiphy; in __cfg80211_background_cac_event() local
1025 lockdep_assert_wiphy(&rdev->wiphy); in __cfg80211_background_cac_event()
1035 cfg80211_set_dfs_state(wiphy, chandef, NL80211_DFS_AVAILABLE); in __cfg80211_background_cac_event()
1061 wiphy_lock(&rdev->wiphy); in cfg80211_background_cac_event()
1064 wiphy_unlock(&rdev->wiphy); in cfg80211_background_cac_event()
1088 void cfg80211_background_cac_abort(struct wiphy *wiphy) in cfg80211_background_cac_abort() argument
1090 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_background_cac_abort()
1104 lockdep_assert_wiphy(&rdev->wiphy); in cfg80211_start_background_radar_detection()
1106 if (!wiphy_ext_feature_isset(&rdev->wiphy, in cfg80211_start_background_radar_detection()
1123 cac_time_ms = cfg80211_chandef_dfs_cac_time(&rdev->wiphy, chandef); in cfg80211_start_background_radar_detection()
1140 struct wiphy *wiphy = wdev->wiphy; in cfg80211_stop_background_radar_detection() local
1141 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_stop_background_radar_detection()
1143 lockdep_assert_wiphy(wiphy); in cfg80211_stop_background_radar_detection()