Lines Matching refs:reg_rule
517 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()
554 reg_rule->ant_gain, reg_rule->reg_power, in ath11k_reg_update_weather_radar_band()
559 i + 1, reg_rule->start_freq, in ath11k_reg_update_weather_radar_band()
560 ETSI_WEATHER_RADAR_BAND_LOW, bw, reg_rule->ant_gain, in ath11k_reg_update_weather_radar_band()
561 reg_rule->reg_power, regd->reg_rules[i].dfs_cac_ms, in ath11k_reg_update_weather_radar_band()
566 start_freq = max_t(u32, reg_rule->start_freq, in ath11k_reg_update_weather_radar_band()
568 end_freq = min_t(u32, reg_rule->end_freq, ETSI_WEATHER_RADAR_BAND_HIGH); in ath11k_reg_update_weather_radar_band()
575 end_freq, bw, reg_rule->ant_gain, in ath11k_reg_update_weather_radar_band()
576 reg_rule->reg_power, flags); in ath11k_reg_update_weather_radar_band()
583 reg_rule->ant_gain, reg_rule->reg_power, in ath11k_reg_update_weather_radar_band()
589 reg_rule->end_freq, max_bw); in ath11k_reg_update_weather_radar_band()
595 reg_rule->end_freq, bw, in ath11k_reg_update_weather_radar_band()
596 reg_rule->ant_gain, reg_rule->reg_power, in ath11k_reg_update_weather_radar_band()
602 reg_rule->end_freq, bw, reg_rule->ant_gain, in ath11k_reg_update_weather_radar_band()
603 reg_rule->reg_power, regd->reg_rules[i].dfs_cac_ms, in ath11k_reg_update_weather_radar_band()
615 struct cur_reg_rule *reg_rule; in ath11k_reg_build_regd() local
652 reg_rule = reg_info->reg_rules_2g_ptr + i; in ath11k_reg_build_regd()
653 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd()
658 reg_rule = reg_info->reg_rules_5g_ptr + j++; in ath11k_reg_build_regd()
659 max_bw = min_t(u16, reg_rule->max_bw, in ath11k_reg_build_regd()
673 flags |= ath11k_map_fw_reg_flags(reg_rule->flags); in ath11k_reg_build_regd()
676 reg_rule->start_freq, in ath11k_reg_build_regd()
677 reg_rule->end_freq, max_bw, in ath11k_reg_build_regd()
678 reg_rule->ant_gain, reg_rule->reg_power, in ath11k_reg_build_regd()
688 (reg_rule->end_freq > ETSI_WEATHER_RADAR_BAND_LOW && in ath11k_reg_build_regd()
689 reg_rule->start_freq < ETSI_WEATHER_RADAR_BAND_HIGH)){ in ath11k_reg_build_regd()
691 reg_rule, &i, in ath11k_reg_build_regd()
698 i + 1, reg_rule->start_freq, reg_rule->end_freq, in ath11k_reg_build_regd()
699 max_bw, reg_rule->ant_gain, reg_rule->reg_power, in ath11k_reg_build_regd()