Browse Source

FST: wpa_supplicant [FST] flag for BSS in scan results

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Anton Nayshtut 10 years ago
parent
commit
55de4d4ba3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      wpa_supplicant/ctrl_iface.c

+ 8 - 0
wpa_supplicant/ctrl_iface.c

@@ -2565,6 +2565,14 @@ static int wpa_supplicant_ctrl_iface_scan_result(
 		pos += ret;
 		pos += ret;
 	}
 	}
 #endif /* CONFIG_HS20 */
 #endif /* CONFIG_HS20 */
+#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 -1;
+		pos += ret;
+	}
+#endif /* CONFIG_FST */
 
 
 	ret = os_snprintf(pos, end - pos, "\t%s",
 	ret = os_snprintf(pos, end - pos, "\t%s",
 			  wpa_ssid_txt(bss->ssid, bss->ssid_len));
 			  wpa_ssid_txt(bss->ssid, bss->ssid_len));