]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Add HT/VHT capability info into STATUS command
authorbhagavathi perumal s <bperumal@qti.qualcomm.com>
Fri, 6 Oct 2017 15:03:25 +0000 (20:33 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 31 Oct 2017 09:41:38 +0000 (11:41 +0200)
Signed-off-by: bhagavathi perumal s <bperumal@qti.qualcomm.com>
src/ap/ctrl_iface_ap.c

index 1241738855647b105b38b772dbca045087b69662..3ff45c40cce6fc60d6913301ecd98e2f767ff4fc 100644 (file)
@@ -660,10 +660,21 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
                ret = os_snprintf(buf + len, buflen - len,
                                  "vht_oper_chwidth=%d\n"
                                  "vht_oper_centr_freq_seg0_idx=%d\n"
-                                 "vht_oper_centr_freq_seg1_idx=%d\n",
+                                 "vht_oper_centr_freq_seg1_idx=%d\n"
+                                 "vht_caps_info=%08x\n",
                                  iface->conf->vht_oper_chwidth,
                                  iface->conf->vht_oper_centr_freq_seg0_idx,
-                                 iface->conf->vht_oper_centr_freq_seg1_idx);
+                                 iface->conf->vht_oper_centr_freq_seg1_idx,
+                                 iface->conf->vht_capab);
+               if (os_snprintf_error(buflen - len, ret))
+                       return len;
+               len += ret;
+       }
+
+       if (iface->conf->ieee80211n && !hapd->conf->disable_11n) {
+               ret = os_snprintf(buf + len, buflen - len,
+                                 "ht_caps_info=%04x\n",
+                                 hapd->iconf->ht_capab);
                if (os_snprintf_error(buflen - len, ret))
                        return len;
                len += ret;