Add [ESS] flag for scan/BSS info from ctrl_iface

This commit is contained in:
Jouni Malinen 2009-12-28 13:35:51 +02:00 committed by Jouni Malinen
parent d009a9dac6
commit bd1af96ad1

View file

@ -850,6 +850,12 @@ static int wpa_supplicant_ctrl_iface_scan_result(
return pos - buf;
pos += ret;
}
if (res->caps & IEEE80211_CAP_ESS) {
ret = os_snprintf(pos, end - pos, "[ESS]");
if (ret < 0 || ret >= end - pos)
return pos - buf;
pos += ret;
}
ie = wpa_scan_get_ie(res, WLAN_EID_SSID);
ret = os_snprintf(pos, end - pos, "\t%s",
@ -1588,6 +1594,12 @@ static int wpa_supplicant_ctrl_iface_bss(struct wpa_supplicant *wpa_s,
return pos - buf;
pos += ret;
}
if (bss->caps & IEEE80211_CAP_ESS) {
ret = os_snprintf(pos, end - pos, "[ESS]");
if (ret < 0 || ret >= end - pos)
return pos - buf;
pos += ret;
}
ret = os_snprintf(pos, end - pos, "\n");
if (ret < 0 || ret >= end - pos)