Lines Matching refs:freq_range
402 const struct ieee80211_freq_range *freq_range = &rule->freq_range;
405 if (freq_range->start_freq_khz <= 0 || freq_range->end_freq_khz <= 0)
408 if (freq_range->start_freq_khz > freq_range->end_freq_khz)
411 freq_diff = freq_range->end_freq_khz - freq_range->start_freq_khz;
413 if (freq_range->end_freq_khz <= freq_range->start_freq_khz ||
414 freq_range->max_bandwidth_khz > freq_diff)
440 static bool reg_does_bw_fit(const struct ieee80211_freq_range *freq_range,
449 if (start_freq_khz >= freq_range->start_freq_khz &&
450 end_freq_khz <= freq_range->end_freq_khz)
458 * @freq_range: frequency rule we want to query
469 static bool freq_in_rule_band(const struct ieee80211_freq_range *freq_range,
473 if (abs(freq_khz - freq_range->start_freq_khz) <= (2 * ONE_GHZ_IN_KHZ))
475 if (abs(freq_khz - freq_range->end_freq_khz) <= (2 * ONE_GHZ_IN_KHZ))
491 struct ieee80211_freq_range *freq_range;
496 freq_range1 = &rule1->freq_range;
497 freq_range2 = &rule2->freq_range;
498 freq_range = &intersected_rule->freq_range;
504 freq_range->start_freq_khz = max(freq_range1->start_freq_khz,
506 freq_range->end_freq_khz = min(freq_range1->end_freq_khz,
508 freq_range->max_bandwidth_khz = min(freq_range1->max_bandwidth_khz,
511 freq_diff = freq_range->end_freq_khz - freq_range->start_freq_khz;
512 if (freq_range->max_bandwidth_khz > freq_diff)
513 freq_range->max_bandwidth_khz = freq_diff;
672 fr = &rr->freq_range;
732 const struct ieee80211_freq_range *freq_range = NULL;
756 freq_range = ®_rule->freq_range;
758 if (freq_range->max_bandwidth_khz < MHZ_TO_KHZ(40))
1056 const struct ieee80211_freq_range *freq_range = NULL;
1078 freq_range = ®_rule->freq_range;
1080 if (freq_range->max_bandwidth_khz < MHZ_TO_KHZ(40))
1720 const struct ieee80211_freq_range *freq_range = NULL;
1728 freq_range = ®_rule->freq_range;
1738 freq_range->start_freq_khz,
1739 freq_range->end_freq_khz,
1740 freq_range->max_bandwidth_khz,
1746 freq_range->start_freq_khz,
1747 freq_range->end_freq_khz,
1748 freq_range->max_bandwidth_khz,