]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HE: Add 11ax info to ap mode ctrl iface STATUS command
authorPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Wed, 16 Oct 2019 18:57:38 +0000 (11:57 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 25 Oct 2019 16:29:53 +0000 (19:29 +0300)
Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
src/ap/ctrl_iface_ap.c
src/ap/sta_info.c

index 676a4c7835f32e5f0021bbd09c2985935fd434e4..bde61ee2634d9461de6956b9e0544146d2e73a73 100644 (file)
@@ -731,6 +731,22 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
        if (os_snprintf_error(buflen - len, ret))
                return len;
        len += ret;
+
+#ifdef CONFIG_IEEE80211AX
+       if (iface->conf->ieee80211ax) {
+               ret = os_snprintf(buf + len, buflen - len,
+                                 "he_oper_chwidth=%d\n"
+                                 "he_oper_centr_freq_seg0_idx=%d\n"
+                                 "he_oper_centr_freq_seg1_idx=%d\n",
+                                 iface->conf->he_oper_chwidth,
+                                 iface->conf->he_oper_centr_freq_seg0_idx,
+                                 iface->conf->he_oper_centr_freq_seg1_idx);
+               if (os_snprintf_error(buflen - len, ret))
+                       return len;
+               len += ret;
+       }
+#endif /* CONFIG_IEEE80211AX */
+
        if (iface->conf->ieee80211ac && !hapd->conf->disable_11ac) {
                ret = os_snprintf(buf + len, buflen - len,
                                  "vht_oper_chwidth=%d\n"
index d7734ee64606e7bd7069fb82f8507fc10af58c7d..cbb8752ea681cfff67f358cc3126d31389da8153 100644 (file)
@@ -1406,7 +1406,7 @@ int ap_sta_flags_txt(u32 flags, char *buf, size_t buflen)
        int res;
 
        buf[0] = '\0';
-       res = os_snprintf(buf, buflen, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
+       res = os_snprintf(buf, buflen, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
                          (flags & WLAN_STA_AUTH ? "[AUTH]" : ""),
                          (flags & WLAN_STA_ASSOC ? "[ASSOC]" : ""),
                          (flags & WLAN_STA_AUTHORIZED ? "[AUTHORIZED]" : ""),
@@ -1425,6 +1425,7 @@ int ap_sta_flags_txt(u32 flags, char *buf, size_t buflen)
                          (flags & WLAN_STA_GAS ? "[GAS]" : ""),
                          (flags & WLAN_STA_HT ? "[HT]" : ""),
                          (flags & WLAN_STA_VHT ? "[VHT]" : ""),
+                         (flags & WLAN_STA_HE ? "[HE]" : ""),
                          (flags & WLAN_STA_VENDOR_VHT ? "[VENDOR_VHT]" : ""),
                          (flags & WLAN_STA_WNM_SLEEP_MODE ?
                           "[WNM_SLEEP_MODE]" : ""));