]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Show puncture bitmap in STATUS command
authorMohan Raj <quic_mrajraje@quicinc.com>
Mon, 28 Oct 2024 11:22:55 +0000 (16:52 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 29 Nov 2024 08:59:16 +0000 (10:59 +0200)
This can be used to determine the disabled subchannels based on the
puncture bitmap (each bit corresponds to a 20 MHz subchannel).

Signed-off-by: Mohan Raj <quic_mrajraje@quicinc.com>
src/ap/ctrl_iface_ap.c

index b93a5d215e6aae03aac2035f105a3d017cf593e9..be0425fcce08a5f72d34ce6ca0677c6788f0edfe 100644 (file)
@@ -917,6 +917,15 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
                        len += ret;
                }
 
+               if (hapd->iconf->punct_bitmap) {
+                       ret = os_snprintf(buf + len, buflen - len,
+                                         "punct_bitmap=0x%x\n",
+                                         hapd->iconf->punct_bitmap);
+                       if (os_snprintf_error(buflen - len, ret))
+                               return len;
+                       len += ret;
+               }
+
                if (hapd->conf->mld_ap) {
                        struct hostapd_data *link_bss;