|
@@ -2016,6 +2016,8 @@ static int wpa_supplicant_ctrl_iface_scan_result(
|
|
const u8 *ie, *ie2, *p2p;
|
|
const u8 *ie, *ie2, *p2p;
|
|
|
|
|
|
p2p = wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE);
|
|
p2p = wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE);
|
|
|
|
+ if (!p2p)
|
|
|
|
+ p2p = wpa_bss_get_vendor_ie_beacon(bss, P2P_IE_VENDOR_TYPE);
|
|
if (p2p && bss->ssid_len == P2P_WILDCARD_SSID_LEN &&
|
|
if (p2p && bss->ssid_len == P2P_WILDCARD_SSID_LEN &&
|
|
os_memcmp(bss->ssid, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN) ==
|
|
os_memcmp(bss->ssid, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN) ==
|
|
0)
|
|
0)
|
|
@@ -3265,7 +3267,8 @@ static int print_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
|
|
return 0;
|
|
return 0;
|
|
pos += ret;
|
|
pos += ret;
|
|
}
|
|
}
|
|
- if (wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE)) {
|
|
|
|
|
|
+ if (wpa_bss_get_vendor_ie(bss, P2P_IE_VENDOR_TYPE) ||
|
|
|
|
+ wpa_bss_get_vendor_ie_beacon(bss, P2P_IE_VENDOR_TYPE)) {
|
|
ret = os_snprintf(pos, end - pos, "[P2P]");
|
|
ret = os_snprintf(pos, end - pos, "[P2P]");
|
|
if (ret < 0 || ret >= end - pos)
|
|
if (ret < 0 || ret >= end - pos)
|
|
return 0;
|
|
return 0;
|