Home
last modified time | relevance | path

Searched refs:rule1 (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dreg.c356 ath11k_reg_can_intersect(struct ieee80211_reg_rule *rule1, in ath11k_reg_can_intersect() argument
362 start_freq1 = rule1->freq_range.start_freq_khz; in ath11k_reg_can_intersect()
365 end_freq1 = rule1->freq_range.end_freq_khz; in ath11k_reg_can_intersect()
383 static void ath11k_reg_intersect_rules(struct ieee80211_reg_rule *rule1, in ath11k_reg_intersect_rules() argument
391 start_freq1 = rule1->freq_range.start_freq_khz; in ath11k_reg_intersect_rules()
394 end_freq1 = rule1->freq_range.end_freq_khz; in ath11k_reg_intersect_rules()
403 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath11k_reg_intersect_rules()
408 min_t(u32, rule1->power_rule.max_antenna_gain, in ath11k_reg_intersect_rules()
411 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath11k_reg_intersect_rules()
415 new_rule->flags = rule1->flags | rule2->flags; in ath11k_reg_intersect_rules()
[all …]
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Dreg.c318 ath12k_reg_can_intersect(struct ieee80211_reg_rule *rule1, in ath12k_reg_can_intersect() argument
324 start_freq1 = rule1->freq_range.start_freq_khz; in ath12k_reg_can_intersect()
327 end_freq1 = rule1->freq_range.end_freq_khz; in ath12k_reg_can_intersect()
345 static void ath12k_reg_intersect_rules(struct ieee80211_reg_rule *rule1, in ath12k_reg_intersect_rules() argument
353 start_freq1 = rule1->freq_range.start_freq_khz; in ath12k_reg_intersect_rules()
356 end_freq1 = rule1->freq_range.end_freq_khz; in ath12k_reg_intersect_rules()
365 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath12k_reg_intersect_rules()
370 min_t(u32, rule1->power_rule.max_antenna_gain, in ath12k_reg_intersect_rules()
373 new_rule->power_rule.max_eirp = min_t(u32, rule1->power_rule.max_eirp, in ath12k_reg_intersect_rules()
377 new_rule->flags = rule1->flags | rule2->flags; in ath12k_reg_intersect_rules()
[all …]
/linux-6.6.21/net/wireless/
Dreg.c1336 const struct ieee80211_reg_rule *rule1, in reg_rules_intersect() argument
1348 freq_range1 = &rule1->freq_range; in reg_rules_intersect()
1352 power_rule1 = &rule1->power_rule; in reg_rules_intersect()
1356 wmm_rule1 = &rule1->wmm_rule; in reg_rules_intersect()
1368 if (rule1->flags & NL80211_RRF_AUTO_BW) in reg_rules_intersect()
1369 max_bandwidth1 = reg_get_max_bandwidth(rd1, rule1); in reg_rules_intersect()
1375 intersected_rule->flags = rule1->flags | rule2->flags; in reg_rules_intersect()
1385 if ((rule1->flags & NL80211_RRF_AUTO_BW) && in reg_rules_intersect()
1400 intersected_rule->dfs_cac_ms = max(rule1->dfs_cac_ms, in reg_rules_intersect()
1403 if (rule1->has_wmm && rule2->has_wmm) { in reg_rules_intersect()
[all …]