diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 9ecb6ee81..0bc799d3e 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -1241,7 +1241,8 @@ hostapd_set_oper_centr_freq_seg0_idx(struct hostapd_config *conf, #ifdef CONFIG_IEEE80211BE if (conf->ieee80211be) conf->eht_oper_centr_freq_seg0_idx = oper_centr_freq_seg0_idx; - if (center_idx_to_bw_6ghz(oper_centr_freq_seg0_idx) == 4) + if (is_6ghz_op_class(conf->op_class) && + center_idx_to_bw_6ghz(oper_centr_freq_seg0_idx) == 4) oper_centr_freq_seg0_idx += conf->channel > oper_centr_freq_seg0_idx ? 16 : -16; #endif /* CONFIG_IEEE80211BE */