diff --git a/src/common/hw_features_common.c b/src/common/hw_features_common.c index ad2aebfef..304139e46 100644 --- a/src/common/hw_features_common.c +++ b/src/common/hw_features_common.c @@ -491,7 +491,10 @@ int hostapd_set_freq_params(struct hostapd_freq_params *data, if (data->he_enabled) switch (oper_chwidth) { case CHANWIDTH_USE_HT: - if (mode == HOSTAPD_MODE_IEEE80211G && sec_channel_offset) { + if (sec_channel_offset == 0) + break; + + if (mode == HOSTAPD_MODE_IEEE80211G) { if (!(he_cap->phy_cap[HE_PHYCAP_CHANNEL_WIDTH_SET_IDX] & HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_IN_2G)) { wpa_printf(MSG_ERROR,