Home
last modified time | relevance | path

Searched refs:reg_rule (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dreg.c517 ath11k_reg_update_rule(struct ieee80211_reg_rule *reg_rule, u32 start_freq, in ath11k_reg_update_rule() argument
521 reg_rule->freq_range.start_freq_khz = MHZ_TO_KHZ(start_freq); in ath11k_reg_update_rule()
522 reg_rule->freq_range.end_freq_khz = MHZ_TO_KHZ(end_freq); in ath11k_reg_update_rule()
523 reg_rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw); in ath11k_reg_update_rule()
524 reg_rule->power_rule.max_antenna_gain = DBI_TO_MBI(ant_gain); in ath11k_reg_update_rule()
525 reg_rule->power_rule.max_eirp = DBM_TO_MBM(reg_pwr); in ath11k_reg_update_rule()
526 reg_rule->flags = reg_flags; in ath11k_reg_update_rule()
532 struct cur_reg_rule *reg_rule, in ath11k_reg_update_weather_radar_band() argument
546 bw = ath11k_reg_adjust_bw(reg_rule->start_freq, in ath11k_reg_update_weather_radar_band()
552 reg_rule->start_freq, in ath11k_reg_update_weather_radar_band()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/
Dregd.c136 const struct ieee80211_reg_rule *reg_rule; in _rtl_reg_apply_beaconing_flags() local
153 reg_rule = freq_reg_info(wiphy, in _rtl_reg_apply_beaconing_flags()
155 if (IS_ERR(reg_rule)) in _rtl_reg_apply_beaconing_flags()
166 if (!(reg_rule->flags & NL80211_RRF_NO_IBSS)) in _rtl_reg_apply_beaconing_flags()
168 if (!(reg_rule->flags & in _rtl_reg_apply_beaconing_flags()
188 const struct ieee80211_reg_rule *reg_rule; in _rtl_reg_apply_active_scan_flags() local
216 reg_rule = freq_reg_info(wiphy, ch->center_freq); in _rtl_reg_apply_active_scan_flags()
217 if (!IS_ERR(reg_rule)) { in _rtl_reg_apply_active_scan_flags()
218 if (!(reg_rule->flags & NL80211_RRF_PASSIVE_SCAN)) in _rtl_reg_apply_active_scan_flags()
224 reg_rule = freq_reg_info(wiphy, ch->center_freq); in _rtl_reg_apply_active_scan_flags()
[all …]
/linux-6.1.9/net/wireless/
Dreg.c1292 const struct ieee80211_reg_rule *reg_rule = NULL; in is_valid_rd() local
1302 reg_rule = &rd->reg_rules[i]; in is_valid_rd()
1303 if (!is_valid_reg_rule(reg_rule)) in is_valid_rd()
1674 const struct ieee80211_reg_rule *reg_rule = ERR_PTR(-ERANGE); in __freq_reg_info() local
1679 reg_rule = freq_reg_info_regd(center_freq, regd, bw); in __freq_reg_info()
1680 if (!IS_ERR(reg_rule)) in __freq_reg_info()
1681 return reg_rule; in __freq_reg_info()
1684 return reg_rule; in __freq_reg_info()
1715 const struct ieee80211_reg_rule *reg_rule, in reg_rule_to_chan_bw_flags() argument
1722 freq_range = &reg_rule->freq_range; in reg_rule_to_chan_bw_flags()
[all …]
Dnl80211.c8331 const struct ieee80211_reg_rule *reg_rule; in nl80211_put_regdom() local
8336 reg_rule = &regdom->reg_rules[i]; in nl80211_put_regdom()
8337 freq_range = &reg_rule->freq_range; in nl80211_put_regdom()
8338 power_rule = &reg_rule->power_rule; in nl80211_put_regdom()
8347 reg_rule); in nl80211_put_regdom()
8350 reg_rule->flags) || in nl80211_put_regdom()
8362 reg_rule->dfs_cac_ms)) in nl80211_put_regdom()
8541 struct ieee80211_reg_rule *reg_rule) in parse_reg_rule() argument
8543 struct ieee80211_freq_range *freq_range = &reg_rule->freq_range; in parse_reg_rule()
8544 struct ieee80211_power_rule *power_rule = &reg_rule->power_rule; in parse_reg_rule()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/
Dregd.c269 const struct ieee80211_reg_rule *reg_rule; in ath_force_clear_no_ir_chan() local
271 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq)); in ath_force_clear_no_ir_chan()
272 if (IS_ERR(reg_rule)) in ath_force_clear_no_ir_chan()
275 if (!(reg_rule->flags & NL80211_RRF_NO_IR)) in ath_force_clear_no_ir_chan()