aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2018-06-25 20:24:15 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-02 15:58:05 (GMT)
commit1f2c42cc7f38d1d6fcfd6b9929d941258a4046ef (patch)
tree4ec225593129d1f6f958c295d40274629748db19 /wpa_supplicant
parente5904cf4644bfe3f20cafe49a3dd2e5e5f0cf9f0 (diff)
downloadhostap-1f2c42cc7f38d1d6fcfd6b9929d941258a4046ef.zip
hostap-1f2c42cc7f38d1d6fcfd6b9929d941258a4046ef.tar.gz
hostap-1f2c42cc7f38d1d6fcfd6b9929d941258a4046ef.tar.bz2
Show [UTF-8] flag if the SSID is reported as UTF-8
Signed-off-by: Jouke Witteveen <j.witteveen@gmail.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ctrl_iface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 936cf31..4964c62 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -2913,6 +2913,13 @@ static int wpa_supplicant_ctrl_iface_scan_result(
pos += ret;
}
#endif /* CONFIG_FST */
+ ie = wpa_bss_get_ie(bss, WLAN_EID_EXT_CAPAB);
+ if (ie && ie[1] >= 7 && ie[8] & BIT(0)) { /* Bit 48 - UTF-8 SSID */
+ ret = os_snprintf(pos, end - pos, "[UTF-8]");
+ if (os_snprintf_error(end - pos, ret))
+ return -1;
+ pos += ret;
+ }
ret = os_snprintf(pos, end - pos, "\t%s",
wpa_ssid_txt(bss->ssid, bss->ssid_len));