wpa_supplicant: Add ieee80211ac information in STATUS

This allows user to get current operating mode of station.

Signed-off-by: Bhagavathi Perumal S <bperumal@codeaurora.org>
This commit is contained in:
Bhagavathi Perumal S 2018-04-24 13:24:20 +05:30 committed by Jouni Malinen
parent 585e728a5c
commit d7f038ded2
3 changed files with 13 additions and 0 deletions

View file

@ -2292,6 +2292,13 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
} }
#endif /* CONFIG_WPS */ #endif /* CONFIG_WPS */
if (wpa_s->ieee80211ac) {
ret = os_snprintf(pos, end - pos, "ieee80211ac=1\n");
if (os_snprintf_error(end - pos, ret))
return pos - buf;
pos += ret;
}
#ifdef ANDROID #ifdef ANDROID
/* /*
* Allow using the STATUS command with default behavior, say for debug, * Allow using the STATUS command with default behavior, say for debug,

View file

@ -319,6 +319,7 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
wpa_s->last_tk_alg = WPA_ALG_NONE; wpa_s->last_tk_alg = WPA_ALG_NONE;
os_memset(wpa_s->last_tk, 0, sizeof(wpa_s->last_tk)); os_memset(wpa_s->last_tk, 0, sizeof(wpa_s->last_tk));
#endif /* CONFIG_TESTING_OPTIONS */ #endif /* CONFIG_TESTING_OPTIONS */
wpa_s->ieee80211ac = 0;
} }
@ -2300,6 +2301,10 @@ static int wpa_supplicant_event_associnfo(struct wpa_supplicant *wpa_s,
interworking_process_assoc_resp(wpa_s, data->assoc_info.resp_ies, interworking_process_assoc_resp(wpa_s, data->assoc_info.resp_ies,
data->assoc_info.resp_ies_len); data->assoc_info.resp_ies_len);
#endif /* CONFIG_INTERWORKING */ #endif /* CONFIG_INTERWORKING */
if (wpa_s->hw_capab == CAPAB_VHT &&
get_ie(data->assoc_info.resp_ies,
data->assoc_info.resp_ies_len, WLAN_EID_VHT_CAP))
wpa_s->ieee80211ac = 1;
} }
if (data->assoc_info.beacon_ies) if (data->assoc_info.beacon_ies)
wpa_hexdump(MSG_DEBUG, "beacon_ies", wpa_hexdump(MSG_DEBUG, "beacon_ies",

View file

@ -1225,6 +1225,7 @@ struct wpa_supplicant {
#ifdef CONFIG_FILS #ifdef CONFIG_FILS
unsigned int disable_fils:1; unsigned int disable_fils:1;
#endif /* CONFIG_FILS */ #endif /* CONFIG_FILS */
unsigned int ieee80211ac:1;
}; };