mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 11:33:04 -05:00
hostapd: Add HT/VHT capability info into STA command
Signed-off-by: bhagavathi perumal s <bperumal@qti.qualcomm.com>
This commit is contained in:
parent
65f9db6bc2
commit
1f91a8bdea
@ -254,6 +254,28 @@ static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd,
|
|||||||
len += ret;
|
len += ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_IEEE80211AC
|
||||||
|
if ((sta->flags & WLAN_STA_VHT) && sta->vht_capabilities) {
|
||||||
|
res = os_snprintf(buf + len, buflen - len,
|
||||||
|
"vht_caps_info=0x%08x\n",
|
||||||
|
le_to_host32(sta->vht_capabilities->
|
||||||
|
vht_capabilities_info));
|
||||||
|
if (!os_snprintf_error(buflen - len, res))
|
||||||
|
len += res;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_IEEE80211AC */
|
||||||
|
|
||||||
|
#ifdef CONFIG_IEEE80211N
|
||||||
|
if ((sta->flags & WLAN_STA_HT) && sta->ht_capabilities) {
|
||||||
|
res = os_snprintf(buf + len, buflen - len,
|
||||||
|
"ht_caps_info=0x%04x\n",
|
||||||
|
le_to_host16(sta->ht_capabilities->
|
||||||
|
ht_capabilities_info));
|
||||||
|
if (!os_snprintf_error(buflen - len, res))
|
||||||
|
len += res;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_IEEE80211N */
|
||||||
|
|
||||||
if (sta->ext_capability &&
|
if (sta->ext_capability &&
|
||||||
buflen - len > (unsigned) (11 + 2 * sta->ext_capability[0])) {
|
buflen - len > (unsigned) (11 + 2 * sta->ext_capability[0])) {
|
||||||
len += os_snprintf(buf + len, buflen - len, "ext_capab=");
|
len += os_snprintf(buf + len, buflen - len, "ext_capab=");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user