Lines Matching refs:wiphy

448 static void cfg80211_set_chans_dfs_state(struct wiphy *wiphy, u32 center_freq,  in cfg80211_set_chans_dfs_state()  argument
458 c = ieee80211_get_channel(wiphy, freq); in cfg80211_set_chans_dfs_state()
467 void cfg80211_set_dfs_state(struct wiphy *wiphy, in cfg80211_set_dfs_state() argument
480 cfg80211_set_chans_dfs_state(wiphy, chandef->center_freq1, in cfg80211_set_dfs_state()
485 cfg80211_set_chans_dfs_state(wiphy, chandef->center_freq2, in cfg80211_set_dfs_state()
517 static int cfg80211_get_chans_dfs_required(struct wiphy *wiphy, in cfg80211_get_chans_dfs_required() argument
528 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_chans_dfs_required()
539 int cfg80211_chandef_dfs_required(struct wiphy *wiphy, in cfg80211_chandef_dfs_required() argument
558 ret = cfg80211_get_chans_dfs_required(wiphy, in cfg80211_chandef_dfs_required()
569 ret = cfg80211_get_chans_dfs_required(wiphy, in cfg80211_chandef_dfs_required()
596 static int cfg80211_get_chans_dfs_usable(struct wiphy *wiphy, in cfg80211_get_chans_dfs_usable() argument
614 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_chans_dfs_usable()
633 bool cfg80211_chandef_dfs_usable(struct wiphy *wiphy, in cfg80211_chandef_dfs_usable() argument
646 r1 = cfg80211_get_chans_dfs_usable(wiphy, in cfg80211_chandef_dfs_usable()
656 r2 = cfg80211_get_chans_dfs_usable(wiphy, in cfg80211_chandef_dfs_usable()
780 static bool cfg80211_is_wiphy_oper_chan(struct wiphy *wiphy, in cfg80211_is_wiphy_oper_chan() argument
785 list_for_each_entry(wdev, &wiphy->wdev_list, list) { in cfg80211_is_wiphy_oper_chan()
816 bool cfg80211_any_wiphy_oper_chan(struct wiphy *wiphy, in cfg80211_any_wiphy_oper_chan() argument
827 if (!reg_dfs_domain_same(wiphy, &rdev->wiphy)) in cfg80211_any_wiphy_oper_chan()
830 if (cfg80211_is_wiphy_oper_chan(&rdev->wiphy, chan)) in cfg80211_any_wiphy_oper_chan()
840 static bool cfg80211_get_chans_dfs_available(struct wiphy *wiphy, in cfg80211_get_chans_dfs_available() argument
848 dfs_offload = wiphy_ext_feature_isset(wiphy, in cfg80211_get_chans_dfs_available()
860 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_chans_dfs_available()
876 static bool cfg80211_chandef_dfs_available(struct wiphy *wiphy, in cfg80211_chandef_dfs_available() argument
889 r = cfg80211_get_chans_dfs_available(wiphy, in cfg80211_chandef_dfs_available()
900 r = cfg80211_get_chans_dfs_available(wiphy, in cfg80211_chandef_dfs_available()
912 static unsigned int cfg80211_get_chans_dfs_cac_time(struct wiphy *wiphy, in cfg80211_get_chans_dfs_cac_time() argument
924 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_chans_dfs_cac_time()
942 cfg80211_chandef_dfs_cac_time(struct wiphy *wiphy, in cfg80211_chandef_dfs_cac_time() argument
955 t1 = cfg80211_get_chans_dfs_cac_time(wiphy, in cfg80211_chandef_dfs_cac_time()
962 t2 = cfg80211_get_chans_dfs_cac_time(wiphy, in cfg80211_chandef_dfs_cac_time()
969 static bool cfg80211_secondary_chans_ok(struct wiphy *wiphy, in cfg80211_secondary_chans_ok() argument
980 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_secondary_chans_ok()
989 static bool cfg80211_edmg_usable(struct wiphy *wiphy, u8 edmg_channels, in cfg80211_edmg_usable() argument
1020 chan = ieee80211_get_channel(wiphy, freq); in cfg80211_edmg_usable()
1041 bool cfg80211_chandef_usable(struct wiphy *wiphy, in cfg80211_chandef_usable() argument
1057 ht_cap = &wiphy->bands[chandef->chan->band]->ht_cap; in cfg80211_chandef_usable()
1058 vht_cap = &wiphy->bands[chandef->chan->band]->vht_cap; in cfg80211_chandef_usable()
1059 edmg_cap = &wiphy->bands[chandef->chan->band]->edmg_cap; in cfg80211_chandef_usable()
1064 !cfg80211_edmg_usable(wiphy, in cfg80211_chandef_usable()
1161 sband = wiphy->bands[NL80211_BAND_6GHZ]; in cfg80211_chandef_usable()
1204 if (!cfg80211_secondary_chans_ok(wiphy, in cfg80211_chandef_usable()
1211 return cfg80211_secondary_chans_ok(wiphy, in cfg80211_chandef_usable()
1288 static bool cfg80211_ir_permissive_chan(struct wiphy *wiphy, in cfg80211_ir_permissive_chan() argument
1293 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_ir_permissive_chan()
1295 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_ir_permissive_chan()
1298 !(wiphy->regulatory_flags & REGULATORY_ENABLE_RELAX_NO_IR)) in cfg80211_ir_permissive_chan()
1321 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_ir_permissive_chan()
1335 static bool _cfg80211_reg_can_beacon(struct wiphy *wiphy, in _cfg80211_reg_can_beacon() argument
1344 trace_cfg80211_reg_can_beacon(wiphy, chandef, iftype, check_no_ir); in _cfg80211_reg_can_beacon()
1349 if (cfg80211_chandef_dfs_required(wiphy, chandef, iftype) > 0 && in _cfg80211_reg_can_beacon()
1350 cfg80211_chandef_dfs_available(wiphy, chandef)) { in _cfg80211_reg_can_beacon()
1355 res = cfg80211_chandef_usable(wiphy, chandef, prohibited_flags); in _cfg80211_reg_can_beacon()
1361 bool cfg80211_reg_can_beacon(struct wiphy *wiphy, in cfg80211_reg_can_beacon() argument
1365 return _cfg80211_reg_can_beacon(wiphy, chandef, iftype, true); in cfg80211_reg_can_beacon()
1369 bool cfg80211_reg_can_beacon_relax(struct wiphy *wiphy, in cfg80211_reg_can_beacon_relax() argument
1373 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_reg_can_beacon_relax()
1376 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_reg_can_beacon_relax()
1384 check_no_ir = !cfg80211_ir_permissive_chan(wiphy, iftype, in cfg80211_reg_can_beacon_relax()
1387 return _cfg80211_reg_can_beacon(wiphy, chandef, iftype, check_no_ir); in cfg80211_reg_can_beacon_relax()
1402 bool cfg80211_any_usable_channels(struct wiphy *wiphy, in cfg80211_any_usable_channels() argument
1411 struct ieee80211_supported_band *sband = wiphy->bands[idx]; in cfg80211_any_usable_channels()