/freebsd/sys/compat/linuxkpi/common/include/net/ |
H A D | cfg80211.h | 403 struct wiphy *wiphy; member 1156 int (*doit)(struct wiphy *, struct wireless_dev *, const void *, int); 1207 typedef void (*wiphy_work_fn)(struct wiphy *, struct wiphy_work *); 1214 struct wiphy *wiphy; member 1218 struct wiphy { struct 1238 void(*reg_notifier)(struct wiphy *, struct regulatory_request *); argument 1269 #define lockdep_assert_wiphy(wiphy) \ argument 1270 lockdep_assert_held(&(wiphy)->mtx) 1277 struct wiphy *wiphy; member 1282 …struct wireless_dev *(*add_virtual_intf)(struct wiphy *, const char *, unsigned char, enum nl80211… [all …]
|
/freebsd/sys/contrib/dev/athk/ |
H A D | regd.c | 266 static void ath_force_clear_no_ir_chan(struct wiphy *wiphy, in ath_force_clear_no_ir_chan() argument 271 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq)); in ath_force_clear_no_ir_chan() 280 static void ath_force_clear_no_ir_freq(struct wiphy *wiphy, u16 center_freq) in ath_force_clear_no_ir_freq() argument 284 ch = ieee80211_get_channel(wiphy, center_freq); in ath_force_clear_no_ir_freq() 288 ath_force_clear_no_ir_chan(wiphy, ch); in ath_force_clear_no_ir_freq() 296 static void ath_force_no_ir_freq(struct wiphy *wiphy, u16 center_freq) in ath_force_no_ir_freq() argument 300 ch = ieee80211_get_channel(wiphy, center_freq); in ath_force_no_ir_freq() 308 __ath_reg_apply_beaconing_flags(struct wiphy *wiphy, in __ath_reg_apply_beaconing_flags() argument 319 ath_force_clear_no_ir_chan(wiphy, ch); in __ath_reg_apply_beaconing_flags() 323 ath_force_clear_no_ir_chan(wiphy, ch); in __ath_reg_apply_beaconing_flags() [all …]
|
H A D | trace.h | 35 TP_PROTO(struct wiphy *wiphy, 38 TP_ARGS(wiphy, vaf), 41 __string(device, wiphy_name(wiphy)) 47 __assign_str(device, wiphy_name(wiphy));
|
H A D | regd.h | 264 int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy, 265 void (*reg_notifier)(struct wiphy *wiphy, 269 void ath_reg_notifier_apply(struct wiphy *wiphy,
|
H A D | main.c | 87 if (common && common->hw && common->hw->wiphy) { in ath_printk() 89 level, wiphy_name(common->hw->wiphy), &vaf); in ath_printk() 90 trace_ath_log(common->hw->wiphy, &vaf); in ath_printk()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | init.c | 51 struct wiphy *wiphy = mt76_hw(dev)->wiphy; in mt7615_thermal_init() local 58 name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7615_%s", in mt7615_thermal_init() 59 wiphy_name(wiphy)); in mt7615_thermal_init() 60 hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev, name, dev, in mt7615_thermal_init() 193 struct wiphy *wiphy = hw->wiphy; in mt7615_check_offload_capability() local 199 wiphy->flags &= ~WIPHY_FLAG_4ADDR_STATION; in mt7615_check_offload_capability() 200 wiphy->max_remain_on_channel_duration = 5000; in mt7615_check_offload_capability() 201 wiphy->features |= NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR | in mt7615_check_offload_capability() 215 wiphy->max_sched_scan_plan_interval = 0; in mt7615_check_offload_capability() 216 wiphy->max_sched_scan_ie_len = 0; in mt7615_check_offload_capability() [all …]
|
/freebsd/sys/contrib/dev/rtw88/ |
H A D | regd.c | 278 static void rtw_regd_apply_hw_cap_flags(struct wiphy *wiphy) in rtw_regd_apply_hw_cap_flags() argument 280 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in rtw_regd_apply_hw_cap_flags() 290 sband = wiphy->bands[NL80211_BAND_2GHZ]; in rtw_regd_apply_hw_cap_flags() 300 sband = wiphy->bands[NL80211_BAND_5GHZ]; in rtw_regd_apply_hw_cap_flags() 333 void rtw_regd_notifier(struct wiphy *wiphy, struct regulatory_request *request); 338 struct wiphy *wiphy = rtwdev->hw->wiphy; in rtw_regd_init() local 371 struct wiphy *wiphy = rtwdev->hw->wiphy; rtw_regd_hint() local 398 struct wiphy *wiphy = rtwdev->hw->wiphy; rtw_regd_mgmt_worldwide() local 428 struct wiphy *wiphy = rtwdev->hw->wiphy; rtw_regd_mgmt_setting() local 460 rtw_regd_notifier(struct wiphy * wiphy,struct regulatory_request * request) rtw_regd_notifier() argument [all...] |
H A D | main.c | 1685 hw->wiphy->bands[NL80211_BAND_2GHZ] = sband; in rtw_set_supported_band() 1704 hw->wiphy->bands[NL80211_BAND_5GHZ] = sband; in rtw_set_supported_band() 1716 kfree(hw->wiphy->bands[NL80211_BAND_2GHZ]); in rtw_unset_supported_band() 1717 kfree(hw->wiphy->bands[NL80211_BAND_5GHZ]); in rtw_unset_supported_band() 2284 hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); in rtw_register_hw() 2286 hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in rtw_register_hw() 2289 hw->wiphy->available_antennas_tx = hal->antenna_tx; in rtw_register_hw() 2290 hw->wiphy->available_antennas_rx = hal->antenna_rx; in rtw_register_hw() 2292 hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS | in rtw_register_hw() 2295 hw->wiphy->features |= NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR; in rtw_register_hw() [all …]
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | regd.c | 342 struct wiphy *wiphy) in rtw89_regd_setup_6ghz() 354 sband = wiphy->bands[NL80211_BAND_5GHZ]; in rtw89_regd_setup_6ghz() 516 static void rtw89_regd_setup_6ghz(struct rtw89_dev *rtwdev, struct wiphy *wiphy) in rtw89_reg_6ghz_power_recalc() 562 sband = wiphy->bands[NL80211_BAND_6GHZ]; 566 wiphy->bands[NL80211_BAND_6GHZ] = NULL; 573 struct wiphy *wiphy = rtwdev->hw->wiphy; 288 rtw89_regd_setup_unii4(struct rtw89_dev * rtwdev,struct wiphy * wiphy) rtw89_regd_setup_unii4() argument 334 rtw89_regd_setup_6ghz(struct rtw89_dev * rtwdev,struct wiphy * wiphy) rtw89_regd_setup_6ghz() argument 385 struct wiphy *wiphy = rtwdev->hw->wiphy; rtw89_regd_setup() local 398 rtw89_regd_init(struct rtw89_dev * rtwdev,void (* reg_notifier)(struct wiphy * wiphy,struct regulatory_request * request)) rtw89_regd_init() argument 403 struct wiphy *wiphy = rtwdev->hw->wiphy; rtw89_regd_init() local 438 rtw89_regd_notifier_apply(struct rtw89_dev * rtwdev,struct wiphy * wiphy,struct regulatory_request * request) rtw89_regd_notifier_apply() argument 453 rtw89_regd_notifier(struct wiphy * wiphy,struct regulatory_request * request) rtw89_regd_notifier() argument [all...] |
H A D | core.c | 4032 hw->wiphy->bands[NL80211_BAND_2GHZ] = sband_2ghz; in rtw89_core_set_supported_band() 4051 hw->wiphy->bands[NL80211_BAND_5GHZ] = sband_5ghz; in rtw89_core_set_supported_band() 4059 hw->wiphy->bands[NL80211_BAND_6GHZ] = sband_6ghz; in rtw89_core_set_supported_band() 4065 hw->wiphy->bands[NL80211_BAND_2GHZ] = NULL; in rtw89_core_set_supported_band() 4066 hw->wiphy->bands[NL80211_BAND_5GHZ] = NULL; in rtw89_core_set_supported_band() 4067 hw->wiphy->bands[NL80211_BAND_6GHZ] = NULL; in rtw89_core_set_supported_band() 4084 if (hw->wiphy->bands[NL80211_BAND_2GHZ]) in rtw89_core_clr_supported_band() 4085 kfree((__force void *)hw->wiphy->bands[NL80211_BAND_2GHZ]->iftype_data); in rtw89_core_clr_supported_band() 4086 if (hw->wiphy->bands[NL80211_BAND_5GHZ]) in rtw89_core_clr_supported_band() 4087 kfree((__force void *)hw->wiphy->bands[NL80211_BAND_5GHZ]->iftype_data); in rtw89_core_clr_supported_band() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt792x_core.c | 517 struct wiphy *wiphy = hw->wiphy; in mt792x_init_wiphy() local 538 wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; in mt792x_init_wiphy() 539 wiphy->iface_combinations = if_comb_chanctx; in mt792x_init_wiphy() 540 wiphy->n_iface_combinations = ARRAY_SIZE(if_comb_chanctx); in mt792x_init_wiphy() 542 wiphy->flags &= ~WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; in mt792x_init_wiphy() 543 wiphy->iface_combinations = if_comb; in mt792x_init_wiphy() 544 wiphy->n_iface_combinations = ARRAY_SIZE(if_comb); in mt792x_init_wiphy() 546 wiphy->flags &= ~(WIPHY_FLAG_IBSS_RSN | WIPHY_FLAG_4ADDR_AP | in mt792x_init_wiphy() 548 wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | in mt792x_init_wiphy() 552 wiphy->max_remain_on_channel_duration = 5000; in mt792x_init_wiphy() [all …]
|
H A D | mt76x02_util.c | 143 struct wiphy *wiphy = hw->wiphy; in mt76x02_init_device() local 156 wiphy->iface_combinations = mt76x02u_if_comb; in mt76x02_init_device() 157 wiphy->n_iface_combinations = ARRAY_SIZE(mt76x02u_if_comb); in mt76x02_init_device() 163 wiphy->reg_notifier = mt76x02_regd_notifier; in mt76x02_init_device() 164 wiphy->iface_combinations = mt76x02_if_comb; in mt76x02_init_device() 165 wiphy->n_iface_combinations = ARRAY_SIZE(mt76x02_if_comb); in mt76x02_init_device() 175 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_VHT_IBSS); in mt76x02_init_device() 680 struct wiphy *wiphy = hw->wiphy; in mt76x02_config_mac_addr_list() local 694 wiphy->addresses = dev->macaddr_list; in mt76x02_config_mac_addr_list() 695 wiphy->n_addresses = ARRAY_SIZE(dev->macaddr_list); in mt76x02_config_mac_addr_list()
|
H A D | mac80211.c | 215 wiphy_name(hw->wiphy)); in mt76_led_init() 367 phy->hw->wiphy->bands[NL80211_BAND_2GHZ] = &phy->sband_2g.sband; in mt76_init_sband_2g() 378 phy->hw->wiphy->bands[NL80211_BAND_5GHZ] = &phy->sband_5g.sband; in mt76_init_sband_5g() 389 phy->hw->wiphy->bands[NL80211_BAND_6GHZ] = &phy->sband_6g.sband; in mt76_init_sband_6g() 422 phy->hw->wiphy->bands[band] = NULL; in mt76_check_sband() 429 struct wiphy *wiphy = hw->wiphy; in mt76_phy_init() local 434 wiphy->features |= NL80211_FEATURE_ACTIVE_MONITOR | in mt76_phy_init() 436 wiphy->flags |= WIPHY_FLAG_HAS_CHANNEL_SWITCH | in mt76_phy_init() 440 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST); in mt76_phy_init() 441 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_AIRTIME_FAIRNESS); in mt76_phy_init() [all …]
|
H A D | mt76x02_txrx.c | 80 struct wiphy *wiphy = dev->mt76.hw->wiphy; in mt76x02_tx_get_max_txpwr_adj() local 83 r = &wiphy->bands[band]->bitrates[rate->idx]; in mt76x02_tx_get_max_txpwr_adj()
|
H A D | mt76x02_dfs.h | 129 void mt76x02_regd_notifier(struct wiphy *wiphy,
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | init.c | 47 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7921_thermal_init() local 54 name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7921_%s", in mt7921_thermal_init() 55 wiphy_name(wiphy)); in mt7921_thermal_init() 57 hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev, name, phy, in mt7921_thermal_init() 67 mt7921_regd_notifier(struct wiphy *wiphy, in mt7921_regd_notifier() argument 70 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in mt7921_regd_notifier() 249 hw->wiphy->reg_notifier = mt7921_regd_notifier; in mt7921_register_device() 267 dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; in mt7921_register_device() 268 dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; in mt7921_register_device()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | init.c | 183 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7915_unregister_thermal() local 188 sysfs_remove_link(&wiphy->dev.kobj, "cooling_device"); in mt7915_unregister_thermal() 196 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7915_thermal_init() local 201 name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7915_%s", in mt7915_thermal_init() 202 wiphy_name(wiphy)); in mt7915_thermal_init() 206 if (sysfs_create_link(&wiphy->dev.kobj, &cdev->device.kobj, in mt7915_thermal_init() 220 hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev, name, phy, in mt7915_thermal_init() 327 mt7915_regd_notifier(struct wiphy *wiphy, in mt7915_regd_notifier() argument 330 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in mt7915_regd_notifier() 357 struct wiphy *wiphy = hw->wiphy; in mt7915_init_wiphy() local [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | init.c | 132 mt7996_regd_notifier(struct wiphy *wiphy, in mt7996_regd_notifier() argument 135 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in mt7996_regd_notifier() 160 struct wiphy *wiphy = hw->wiphy; in mt7996_init_wiphy() local 177 wiphy->iface_combinations = if_comb; in mt7996_init_wiphy() 178 wiphy->n_iface_combinations = ARRAY_SIZE(if_comb); in mt7996_init_wiphy() 179 wiphy->reg_notifier = mt7996_regd_notifier; in mt7996_init_wiphy() 180 wiphy->flags |= WIPHY_FLAG_HAS_CHANNEL_SWITCH; in mt7996_init_wiphy() 182 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BSS_COLOR); in mt7996_init_wiphy() 183 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_VHT_IBSS); in mt7996_init_wiphy() 184 wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_LEGACY); in mt7996_init_wiphy() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | mac80211.c | 124 struct ieee80211_regdomain *iwl_mvm_get_regdomain(struct wiphy *wiphy, in iwl_mvm_get_regdomain() 130 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in iwl_mvm_get_regdomain() 205 regulatory_set_wiphy_regd(mvm->hw->wiphy, regd); in iwl_mvm_init_fw_regd() 214 return iwl_mvm_get_regdomain(mvm->hw->wiphy, "ZZ", in iwl_mvm_init_fw_regd() 227 wiphy_dereference(mvm->hw->wiphy, mvm->hw->wiphy->regd); in iwl_mvm_init_fw_regd() 242 regd = iwl_mvm_get_regdomain(mvm->hw->wiphy, r->alpha2, used_src, 251 ret = regulatory_set_wiphy_regd_sync(mvm->hw->wiphy, regd); 383 hw->wiphy in iwl_mvm_mac_setup_register() 111 iwl_mvm_get_regdomain(struct wiphy * wiphy,const char * alpha2,enum iwl_mcc_source src_id,bool * changed) iwl_mvm_get_regdomain() argument 3416 iwl_mvm_check_he_obss_narrow_bw_ru_iter(struct wiphy * wiphy,struct cfg80211_bss * bss,void * _data) iwl_mvm_check_he_obss_narrow_bw_ru_iter() argument [all...] |
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_80211.c | 297 wiphy_lock(hw->wiphy); in lkpi_80211_dump_stas() 360 wiphy_unlock(hw->wiphy); in lkpi_80211_dump_stas() 574 wiphy_lock(lsta->hw->wiphy); in lkpi_lsta_remove() 578 wiphy_unlock(lsta->hw->wiphy); in lkpi_lsta_remove() 653 supband = hw->wiphy->bands[band]; in lkpi_lsta_alloc() 1007 if (hw->wiphy->bands[band] == NULL) in lkpi_find_lkpi80211_chan() 1010 nchans = hw->wiphy->bands[band]->n_channels; in lkpi_find_lkpi80211_chan() 1014 channels = hw->wiphy->bands[band]->channels; in lkpi_find_lkpi80211_chan() 1051 linuxkpi_ieee80211_get_channel(struct wiphy *wiphy, uint32_t freq) in linuxkpi_ieee80211_get_channel() argument 1060 supband = wiphy->bands[band]; in linuxkpi_ieee80211_get_channel() [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | reg.c | 35 regd = rcu_dereference_rtnl(ar->hw->wiphy->regd); in ath12k_regdom_changes() 47 ath12k_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request) in ath12k_reg_notifier() argument 49 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in ath12k_reg_notifier() 55 "Regulatory Notification received for %s\n", wiphy_name(wiphy)); in ath12k_reg_notifier() 104 bands = hw->wiphy->bands; in ath12k_reg_update_chan_list() 262 wiphy_lock(ar->hw->wiphy); 263 ret = regulatory_set_wiphy_regd_sync(ar->hw->wiphy, regd_copy); 264 wiphy_unlock(ar->hw->wiphy); 733 ar->hw->wiphy->regulatory_flags = REGULATORY_WIPHY_SELF_MANAGED; 734 ar->hw->wiphy->reg_notifier = ath12k_reg_notifier;
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | init.c | 417 mt7603_regd_notifier(struct wiphy *wiphy, in mt7603_regd_notifier() argument 420 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in mt7603_regd_notifier() 489 struct wiphy *wiphy = hw->wiphy; in mt7603_register_device() local 527 wiphy->iface_combinations = if_comb; in mt7603_register_device() 528 wiphy->n_iface_combinations = ARRAY_SIZE(if_comb); in mt7603_register_device() 540 wiphy->reg_notifier = mt7603_regd_notifier; in mt7603_register_device()
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | reg.c | 35 regd = rcu_dereference_rtnl(ar->hw->wiphy->regd); in ath11k_regdom_changes() 47 ath11k_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request) in ath11k_reg_notifier() argument 49 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in ath11k_reg_notifier() 56 "Regulatory Notification received for %s\n", wiphy_name(wiphy)); in ath11k_reg_notifier() 145 bands = hw->wiphy->bands; in ath11k_reg_update_chan_list() 303 ret = regulatory_set_wiphy_regd(ar->hw->wiphy, regd_copy); in ath11k_regd_update() 781 ar->hw->wiphy->regulatory_flags = REGULATORY_WIPHY_SELF_MANAGED; in ath11k_reg_init() 782 ar->hw->wiphy->reg_notifier = ath11k_reg_notifier; in ath11k_reg_init()
|
H A D | thermal.c | 183 ret = sysfs_create_link(&ar->hw->wiphy->dev.kobj, &cdev->device.kobj, in ath11k_thermal_register() 193 hwmon_dev = devm_hwmon_device_register_with_groups(&ar->hw->wiphy->dev, in ath11k_thermal_register() 223 sysfs_remove_link(&ar->hw->wiphy->dev.kobj, "cooling_device"); in ath11k_thermal_unregister()
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | mac.c | 2203 bss = cfg80211_get_bss(ar->hw->wiphy, def.chan, info->bssid, in ath10k_peer_assoc_h_crypto() 2220 cfg80211_put_bss(ar->hw->wiphy, bss); in ath10k_peer_assoc_h_crypto() 2262 sband = ar->hw->wiphy->bands[band]; in ath10k_peer_assoc_h_rates() 3382 bands = hw->wiphy->bands; in ath10k_update_channel_list() 3539 static void ath10k_reg_notifier(struct wiphy *wiphy, in ath10k_reg_notifier() argument 3542 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in ath10k_reg_notifier() 3546 ath_reg_notifier_apply(wiphy, request, &ar->ath_common.regulatory); in ath10k_reg_notifier() 3565 ar->hw->wiphy->bands[NL80211_BAND_5GHZ]); in ath10k_reg_notifier() 5832 ret = ath10k_mac_set_rts(arvif, ar->hw->wiphy->rts_threshold); in ath10k_add_interface() 6073 sband = ar->hw->wiphy->bands[def->chan->band]; in ath10k_recalculate_mgmt_rate() [all …]
|