From: Jouni Malinen Date: Wed, 2 Jan 2019 15:34:53 +0000 (+0200) Subject: Add [FST] and [UTF-8] flags to BSS command output X-Git-Tag: hostap_2_8~602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b0898da310c1dcd3c8660a3520b60c22be9d1a;p=thirdparty%2Fhostap.git Add [FST] and [UTF-8] flags to BSS command output These flags were used in SCAN_RESULTS command output, but not BSS. Make these consistent by adding the flags to BSS as well. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 4964c6217..f9a21d8e1 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -4740,6 +4740,22 @@ static int print_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, pos += ret; } #endif /* CONFIG_FILS */ +#ifdef CONFIG_FST + if (wpa_bss_get_ie(bss, WLAN_EID_MULTI_BAND)) { + ret = os_snprintf(pos, end - pos, "[FST]"); + if (os_snprintf_error(end - pos, ret)) + return 0; + 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 0; + pos += ret; + } ret = os_snprintf(pos, end - pos, "\n"); if (os_snprintf_error(end - pos, ret))