aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexei Avshalom Lazar <ailizaro@codeaurora.org>2019-09-11 09:03:07 (GMT)
committerJouni Malinen <j@w1.fi>2019-10-07 14:20:41 (GMT)
commit35aed771f9a503aa3284aafdf97dcdda50628dda (patch)
tree6eeea33f831b0588b473f11582973005178a8f26
parentf6f8c6ade914e799fa15de44bb1db28c8bd4c406 (diff)
downloadhostap-35aed771f9a503aa3284aafdf97dcdda50628dda.zip
hostap-35aed771f9a503aa3284aafdf97dcdda50628dda.tar.gz
hostap-35aed771f9a503aa3284aafdf97dcdda50628dda.tar.bz2
Indicate EDMG in scan results
Add [EDMG] flag to scan results. Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
-rw-r--r--wpa_supplicant/ctrl_iface.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 65d0271..7f8ec4a 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -2876,6 +2876,15 @@ static int wpa_supplicant_ctrl_iface_scan_result(
}
if (bss_is_dmg(bss)) {
const char *s;
+
+ if (get_ie_ext((const u8 *) (bss + 1), bss->ie_len,
+ WLAN_EID_EXT_EDMG_OPERATION)) {
+ ret = os_snprintf(pos, end - pos, "[EDMG]");
+ if (os_snprintf_error(end - pos, ret))
+ return -1;
+ pos += ret;
+ }
+
ret = os_snprintf(pos, end - pos, "[DMG]");
if (os_snprintf_error(end - pos, ret))
return -1;