• Home
  • Raw
  • Download

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()
559 static bool cfg80211_dfs_permissive_chan(struct wiphy *wiphy, in cfg80211_dfs_permissive_chan() argument
564 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_dfs_permissive_chan()
566 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_dfs_permissive_chan()
568 if (!wiphy_ext_feature_isset(&rdev->wiphy, in cfg80211_dfs_permissive_chan()
580 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_dfs_permissive_chan()
590 static int cfg80211_get_chans_dfs_required(struct wiphy *wiphy, in cfg80211_get_chans_dfs_required() argument
602 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_chans_dfs_required()
607 !cfg80211_dfs_permissive_chan(wiphy, iftype, c)) in cfg80211_get_chans_dfs_required()
615 int cfg80211_chandef_dfs_required(struct wiphy *wiphy, in cfg80211_chandef_dfs_required() argument
634 ret = cfg80211_get_chans_dfs_required(wiphy, in cfg80211_chandef_dfs_required()
645 ret = cfg80211_get_chans_dfs_required(wiphy, in cfg80211_chandef_dfs_required()
672 static int cfg80211_get_chans_dfs_usable(struct wiphy *wiphy, in cfg80211_get_chans_dfs_usable() argument
690 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_chans_dfs_usable()
709 bool cfg80211_chandef_dfs_usable(struct wiphy *wiphy, in cfg80211_chandef_dfs_usable() argument
722 r1 = cfg80211_get_chans_dfs_usable(wiphy, in cfg80211_chandef_dfs_usable()
732 r2 = cfg80211_get_chans_dfs_usable(wiphy, in cfg80211_chandef_dfs_usable()
856 static bool cfg80211_is_wiphy_oper_chan(struct wiphy *wiphy, in cfg80211_is_wiphy_oper_chan() argument
861 list_for_each_entry(wdev, &wiphy->wdev_list, list) { in cfg80211_is_wiphy_oper_chan()
892 bool cfg80211_any_wiphy_oper_chan(struct wiphy *wiphy, in cfg80211_any_wiphy_oper_chan() argument
903 if (!reg_dfs_domain_same(wiphy, &rdev->wiphy)) in cfg80211_any_wiphy_oper_chan()
906 if (cfg80211_is_wiphy_oper_chan(&rdev->wiphy, chan)) in cfg80211_any_wiphy_oper_chan()
916 static bool cfg80211_get_chans_dfs_available(struct wiphy *wiphy, in cfg80211_get_chans_dfs_available() argument
924 dfs_offload = wiphy_ext_feature_isset(wiphy, in cfg80211_get_chans_dfs_available()
936 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_chans_dfs_available()
952 static bool cfg80211_chandef_dfs_available(struct wiphy *wiphy, in cfg80211_chandef_dfs_available() argument
965 r = cfg80211_get_chans_dfs_available(wiphy, in cfg80211_chandef_dfs_available()
976 r = cfg80211_get_chans_dfs_available(wiphy, in cfg80211_chandef_dfs_available()
988 static unsigned int cfg80211_get_chans_dfs_cac_time(struct wiphy *wiphy, in cfg80211_get_chans_dfs_cac_time() argument
1000 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_get_chans_dfs_cac_time()
1018 cfg80211_chandef_dfs_cac_time(struct wiphy *wiphy, in cfg80211_chandef_dfs_cac_time() argument
1031 t1 = cfg80211_get_chans_dfs_cac_time(wiphy, in cfg80211_chandef_dfs_cac_time()
1038 t2 = cfg80211_get_chans_dfs_cac_time(wiphy, in cfg80211_chandef_dfs_cac_time()
1045 static bool cfg80211_secondary_chans_ok(struct wiphy *wiphy, in cfg80211_secondary_chans_ok() argument
1056 c = ieee80211_get_channel_khz(wiphy, freq); in cfg80211_secondary_chans_ok()
1065 static bool cfg80211_edmg_usable(struct wiphy *wiphy, u8 edmg_channels, in cfg80211_edmg_usable() argument
1096 chan = ieee80211_get_channel(wiphy, freq); in cfg80211_edmg_usable()
1117 bool cfg80211_chandef_usable(struct wiphy *wiphy, in cfg80211_chandef_usable() argument
1133 ht_cap = &wiphy->bands[chandef->chan->band]->ht_cap; in cfg80211_chandef_usable()
1134 vht_cap = &wiphy->bands[chandef->chan->band]->vht_cap; in cfg80211_chandef_usable()
1135 edmg_cap = &wiphy->bands[chandef->chan->band]->edmg_cap; in cfg80211_chandef_usable()
1140 !cfg80211_edmg_usable(wiphy, in cfg80211_chandef_usable()
1237 sband = wiphy->bands[NL80211_BAND_6GHZ]; in cfg80211_chandef_usable()
1280 if (!cfg80211_secondary_chans_ok(wiphy, in cfg80211_chandef_usable()
1287 return cfg80211_secondary_chans_ok(wiphy, in cfg80211_chandef_usable()
1364 static bool cfg80211_ir_permissive_chan(struct wiphy *wiphy, in cfg80211_ir_permissive_chan() argument
1369 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_ir_permissive_chan()
1371 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_ir_permissive_chan()
1374 !(wiphy->regulatory_flags & REGULATORY_ENABLE_RELAX_NO_IR)) in cfg80211_ir_permissive_chan()
1397 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_ir_permissive_chan()
1411 static bool _cfg80211_reg_can_beacon(struct wiphy *wiphy, in _cfg80211_reg_can_beacon() argument
1420 trace_cfg80211_reg_can_beacon(wiphy, chandef, iftype, check_no_ir); in _cfg80211_reg_can_beacon()
1425 dfs_required = cfg80211_chandef_dfs_required(wiphy, chandef, iftype); in _cfg80211_reg_can_beacon()
1430 cfg80211_chandef_dfs_available(wiphy, chandef)) { in _cfg80211_reg_can_beacon()
1435 res = cfg80211_chandef_usable(wiphy, chandef, prohibited_flags); in _cfg80211_reg_can_beacon()
1441 bool cfg80211_reg_can_beacon(struct wiphy *wiphy, in cfg80211_reg_can_beacon() argument
1445 return _cfg80211_reg_can_beacon(wiphy, chandef, iftype, true); in cfg80211_reg_can_beacon()
1449 bool cfg80211_reg_can_beacon_relax(struct wiphy *wiphy, in cfg80211_reg_can_beacon_relax() argument
1453 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_reg_can_beacon_relax()
1456 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_reg_can_beacon_relax()
1464 check_no_ir = !cfg80211_ir_permissive_chan(wiphy, iftype, in cfg80211_reg_can_beacon_relax()
1467 return _cfg80211_reg_can_beacon(wiphy, chandef, iftype, check_no_ir); in cfg80211_reg_can_beacon_relax()
1482 bool cfg80211_any_usable_channels(struct wiphy *wiphy, in cfg80211_any_usable_channels() argument
1491 struct ieee80211_supported_band *sband = wiphy->bands[idx]; in cfg80211_any_usable_channels()