Add [ESS] flag for scan/BSS info from ctrl_iface
This commit is contained in:
parent
d009a9dac6
commit
bd1af96ad1
1 changed files with 12 additions and 0 deletions
|
@ -850,6 +850,12 @@ static int wpa_supplicant_ctrl_iface_scan_result(
|
||||||
return pos - buf;
|
return pos - buf;
|
||||||
pos += ret;
|
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);
|
ie = wpa_scan_get_ie(res, WLAN_EID_SSID);
|
||||||
ret = os_snprintf(pos, end - pos, "\t%s",
|
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;
|
return pos - buf;
|
||||||
pos += ret;
|
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");
|
ret = os_snprintf(pos, end - pos, "\n");
|
||||||
if (ret < 0 || ret >= end - pos)
|
if (ret < 0 || ret >= end - pos)
|
||||||
|
|
Loading…
Reference in a new issue