diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 2e208d3f6..4c1eeda58 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -4758,6 +4758,8 @@ static int hostapd_config_fill(struct hostapd_config *conf, conf->eht_phy_capab.su_beamformee = atoi(pos); } else if (os_strcmp(buf, "eht_mu_beamformer") == 0) { conf->eht_phy_capab.mu_beamformer = atoi(pos); + } else if (os_strcmp(buf, "punct_bitmap") == 0) { + conf->punct_bitmap = atoi(pos); #endif /* CONFIG_IEEE80211BE */ } else { wpa_printf(MSG_ERROR, diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf index fd80bbd82..401c84f19 100644 --- a/hostapd/hostapd.conf +++ b/hostapd/hostapd.conf @@ -1027,6 +1027,13 @@ wmm_ac_vo_acm=0 #eht_oper_chwidth (see vht_oper_chwidth) #eht_oper_centr_freq_seg0_idx +# Disabled subchannel bitmap (16 bits) as per IEEE P802.11be/3.0, +# Figure 9-1002c (EHT Operation Information field format). Each bit corresponds +# to a 20 MHz channel, the lowest bit corresponds to the lowest frequency. A +# bit set to 1 indicates that the channel is punctured (disabled). The default +# value is 0 indicating that all channels are active. +#punct_bitmap=0 + ##### IEEE 802.1X-2004 related configuration ################################## # Require IEEE 802.1X authorization diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 7036c15d5..04a9c409c 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -1156,6 +1156,7 @@ struct hostapd_config { enum oper_chan_width eht_oper_chwidth; u8 eht_oper_centr_freq_seg0_idx; struct eht_phy_capabilities_info eht_phy_capab; + u16 punct_bitmap; /* a bitmap of disabled 20 MHz channels */ #endif /* CONFIG_IEEE80211BE */ /* EHT enable/disable config from CHAN_SWITCH */