]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EHT: Add configuration option for puncturing in AP mode
authorMuna Sinada <quic_msinada@quicinc.com>
Tue, 14 Mar 2023 04:59:15 +0000 (21:59 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 17 Mar 2023 09:06:20 +0000 (11:06 +0200)
Add a new option to configure the disabled subchannel bitmap as per
IEEE P802.11be/D3.0, Figure 9-1002c (EHT Operation Information
field format).

Signed-off-by: Muna Sinada <quic_msinada@quicinc.com>
Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/ap_config.h

index 2e208d3f677c2de89d732bf4c06b31de301aceca..4c1eeda5899cb53486278b0dc6b46da9551e97a7 100644 (file)
@@ -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,
index fd80bbd821b7f48e08b4dbae4a3f74c4850360e2..401c84f1994c18756600fe3488af85ef29dae48f 100644 (file)
@@ -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
index 7036c15d5daf05200c57425e1bda384405e12458..04a9c409c9e23d8c1f6762b021997006775a760d 100644 (file)
@@ -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 */