Lines Matching refs:reg_rule

474 ath12k_reg_update_rule(struct ieee80211_reg_rule *reg_rule, u32 start_freq,  in ath12k_reg_update_rule()  argument
478 reg_rule->freq_range.start_freq_khz = MHZ_TO_KHZ(start_freq); in ath12k_reg_update_rule()
479 reg_rule->freq_range.end_freq_khz = MHZ_TO_KHZ(end_freq); in ath12k_reg_update_rule()
480 reg_rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw); in ath12k_reg_update_rule()
481 reg_rule->power_rule.max_antenna_gain = DBI_TO_MBI(ant_gain); in ath12k_reg_update_rule()
482 reg_rule->power_rule.max_eirp = DBM_TO_MBM(reg_pwr); in ath12k_reg_update_rule()
483 reg_rule->flags = reg_flags; in ath12k_reg_update_rule()
489 struct ath12k_reg_rule *reg_rule, in ath12k_reg_update_weather_radar_band() argument
498 bw = ath12k_reg_adjust_bw(reg_rule->start_freq, in ath12k_reg_update_weather_radar_band()
501 ath12k_reg_update_rule(regd->reg_rules + i, reg_rule->start_freq, in ath12k_reg_update_weather_radar_band()
503 reg_rule->ant_gain, reg_rule->reg_power, in ath12k_reg_update_weather_radar_band()
508 i + 1, reg_rule->start_freq, ETSI_WEATHER_RADAR_BAND_LOW, in ath12k_reg_update_weather_radar_band()
509 bw, reg_rule->ant_gain, reg_rule->reg_power, in ath12k_reg_update_weather_radar_band()
513 if (reg_rule->end_freq > ETSI_WEATHER_RADAR_BAND_HIGH) in ath12k_reg_update_weather_radar_band()
516 end_freq = reg_rule->end_freq; in ath12k_reg_update_weather_radar_band()
525 reg_rule->ant_gain, reg_rule->reg_power, in ath12k_reg_update_weather_radar_band()
533 bw, reg_rule->ant_gain, reg_rule->reg_power, in ath12k_reg_update_weather_radar_band()
537 if (end_freq == reg_rule->end_freq) { in ath12k_reg_update_weather_radar_band()
544 reg_rule->end_freq, max_bw); in ath12k_reg_update_weather_radar_band()
549 reg_rule->end_freq, bw, in ath12k_reg_update_weather_radar_band()
550 reg_rule->ant_gain, reg_rule->reg_power, in ath12k_reg_update_weather_radar_band()
555 i + 1, ETSI_WEATHER_RADAR_BAND_HIGH, reg_rule->end_freq, in ath12k_reg_update_weather_radar_band()
556 bw, reg_rule->ant_gain, reg_rule->reg_power, in ath12k_reg_update_weather_radar_band()
568 struct ath12k_reg_rule *reg_rule; in ath12k_reg_build_regd() local
612 reg_rule = reg_info->reg_rules_2g_ptr + i; in ath12k_reg_build_regd()
613 max_bw = min_t(u16, reg_rule->max_bw, in ath12k_reg_build_regd()
618 reg_rule = reg_info->reg_rules_5g_ptr + j++; in ath12k_reg_build_regd()
619 max_bw = min_t(u16, reg_rule->max_bw, in ath12k_reg_build_regd()
632 reg_rule = reg_info->reg_rules_6g_ap_ptr[WMI_REG_INDOOR_AP] + k++; in ath12k_reg_build_regd()
633 max_bw = min_t(u16, reg_rule->max_bw, in ath12k_reg_build_regd()
640 flags |= ath12k_map_fw_reg_flags(reg_rule->flags); in ath12k_reg_build_regd()
643 reg_rule->start_freq, in ath12k_reg_build_regd()
644 reg_rule->end_freq, max_bw, in ath12k_reg_build_regd()
645 reg_rule->ant_gain, reg_rule->reg_power, in ath12k_reg_build_regd()
655 (reg_rule->end_freq > ETSI_WEATHER_RADAR_BAND_LOW && in ath12k_reg_build_regd()
656 reg_rule->start_freq < ETSI_WEATHER_RADAR_BAND_HIGH)){ in ath12k_reg_build_regd()
658 reg_rule, &i, in ath12k_reg_build_regd()
665 i + 1, reg_rule->start_freq, reg_rule->end_freq, in ath12k_reg_build_regd()
666 max_bw, reg_rule->ant_gain, reg_rule->reg_power, in ath12k_reg_build_regd()
668 flags, reg_rule->psd_flag, reg_rule->psd_eirp); in ath12k_reg_build_regd()
672 i + 1, reg_rule->start_freq, reg_rule->end_freq, in ath12k_reg_build_regd()
673 max_bw, reg_rule->ant_gain, reg_rule->reg_power, in ath12k_reg_build_regd()