]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add [FST] and [UTF-8] flags to BSS command output
authorJouni Malinen <j@w1.fi>
Wed, 2 Jan 2019 15:34:53 +0000 (17:34 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jan 2019 15:58:31 +0000 (17:58 +0200)
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 <j@w1.fi>
wpa_supplicant/ctrl_iface.c

index 4964c62173316fe8fe58e23673d96ecab91182c0..f9a21d8e1c0e39123877e924fd5a4e99564d59e5 100644 (file)
@@ -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))