From: Jouke Witteveen Date: Mon, 25 Jun 2018 20:24:15 +0000 (+0200) Subject: Show [UTF-8] flag if the SSID is reported as UTF-8 X-Git-Tag: hostap_2_8~603 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f2c42cc7f38d1d6fcfd6b9929d941258a4046ef;p=thirdparty%2Fhostap.git Show [UTF-8] flag if the SSID is reported as UTF-8 Signed-off-by: Jouke Witteveen --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 936cf3144..4964c6217 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));