Lines Matching refs:wiphy
240 static void cfg80211_set_chans_dfs_state(struct wiphy *wiphy, u32 center_freq, in cfg80211_set_chans_dfs_state() argument
250 c = ieee80211_get_channel(wiphy, freq); in cfg80211_set_chans_dfs_state()
259 void cfg80211_set_dfs_state(struct wiphy *wiphy, in cfg80211_set_dfs_state() argument
272 cfg80211_set_chans_dfs_state(wiphy, chandef->center_freq1, in cfg80211_set_dfs_state()
277 cfg80211_set_chans_dfs_state(wiphy, chandef->center_freq2, in cfg80211_set_dfs_state()
307 static int cfg80211_get_chans_dfs_required(struct wiphy *wiphy, in cfg80211_get_chans_dfs_required() argument
318 c = ieee80211_get_channel(wiphy, freq); in cfg80211_get_chans_dfs_required()
329 int cfg80211_chandef_dfs_required(struct wiphy *wiphy, in cfg80211_chandef_dfs_required() argument
348 ret = cfg80211_get_chans_dfs_required(wiphy, in cfg80211_chandef_dfs_required()
359 ret = cfg80211_get_chans_dfs_required(wiphy, in cfg80211_chandef_dfs_required()
385 static int cfg80211_get_chans_dfs_usable(struct wiphy *wiphy, in cfg80211_get_chans_dfs_usable() argument
403 c = ieee80211_get_channel(wiphy, freq); in cfg80211_get_chans_dfs_usable()
422 bool cfg80211_chandef_dfs_usable(struct wiphy *wiphy, in cfg80211_chandef_dfs_usable() argument
435 r1 = cfg80211_get_chans_dfs_usable(wiphy, chandef->center_freq1, in cfg80211_chandef_dfs_usable()
444 r2 = cfg80211_get_chans_dfs_usable(wiphy, in cfg80211_chandef_dfs_usable()
459 static bool cfg80211_get_chans_dfs_available(struct wiphy *wiphy, in cfg80211_get_chans_dfs_available() argument
475 c = ieee80211_get_channel(wiphy, freq); in cfg80211_get_chans_dfs_available()
490 static bool cfg80211_chandef_dfs_available(struct wiphy *wiphy, in cfg80211_chandef_dfs_available() argument
503 r = cfg80211_get_chans_dfs_available(wiphy, chandef->center_freq1, in cfg80211_chandef_dfs_available()
513 r = cfg80211_get_chans_dfs_available(wiphy, in cfg80211_chandef_dfs_available()
524 static unsigned int cfg80211_get_chans_dfs_cac_time(struct wiphy *wiphy, in cfg80211_get_chans_dfs_cac_time() argument
536 c = ieee80211_get_channel(wiphy, freq); in cfg80211_get_chans_dfs_cac_time()
554 cfg80211_chandef_dfs_cac_time(struct wiphy *wiphy, in cfg80211_chandef_dfs_cac_time() argument
567 t1 = cfg80211_get_chans_dfs_cac_time(wiphy, in cfg80211_chandef_dfs_cac_time()
574 t2 = cfg80211_get_chans_dfs_cac_time(wiphy, in cfg80211_chandef_dfs_cac_time()
581 static bool cfg80211_secondary_chans_ok(struct wiphy *wiphy, in cfg80211_secondary_chans_ok() argument
592 c = ieee80211_get_channel(wiphy, freq); in cfg80211_secondary_chans_ok()
600 bool cfg80211_chandef_usable(struct wiphy *wiphy, in cfg80211_chandef_usable() argument
611 ht_cap = &wiphy->bands[chandef->chan->band]->ht_cap; in cfg80211_chandef_usable()
612 vht_cap = &wiphy->bands[chandef->chan->band]->vht_cap; in cfg80211_chandef_usable()
689 if (!cfg80211_secondary_chans_ok(wiphy, chandef->center_freq1, in cfg80211_chandef_usable()
695 return cfg80211_secondary_chans_ok(wiphy, chandef->center_freq2, in cfg80211_chandef_usable()
713 struct wiphy *wiphy = wiphy_idx_to_wiphy(rdev->wiphy_idx); in cfg80211_go_permissive_chan() local
718 !(wiphy->regulatory_flags & REGULATORY_ENABLE_RELAX_NO_IR)) in cfg80211_go_permissive_chan()
783 bool cfg80211_reg_can_beacon(struct wiphy *wiphy, in cfg80211_reg_can_beacon() argument
787 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_reg_can_beacon()
792 trace_cfg80211_reg_can_beacon(wiphy, chandef, iftype); in cfg80211_reg_can_beacon()
804 if (cfg80211_chandef_dfs_required(wiphy, chandef, iftype) > 0 && in cfg80211_reg_can_beacon()
805 cfg80211_chandef_dfs_available(wiphy, chandef)) { in cfg80211_reg_can_beacon()
810 res = cfg80211_chandef_usable(wiphy, chandef, prohibited_flags); in cfg80211_reg_can_beacon()
878 ret = cfg80211_chandef_dfs_required(wdev->wiphy, in cfg80211_get_chan_state()
891 ret = cfg80211_chandef_dfs_required(wdev->wiphy, in cfg80211_get_chan_state()