|
@@ -1248,11 +1248,10 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
|
|
|
u8 *pos;
|
|
|
size_t len;
|
|
|
int res;
|
|
|
- int p2p_group;
|
|
|
- p2p_group = wpa_s->drv_flags & WPA_DRIVER_FLAGS_P2P_CAPABLE;
|
|
|
pos = wpa_ie + wpa_ie_len;
|
|
|
len = sizeof(wpa_ie) - wpa_ie_len;
|
|
|
- res = wpas_p2p_assoc_req_ie(wpa_s, bss, pos, len, p2p_group);
|
|
|
+ res = wpas_p2p_assoc_req_ie(wpa_s, bss, pos, len,
|
|
|
+ ssid->p2p_group);
|
|
|
if (res >= 0)
|
|
|
wpa_ie_len += res;
|
|
|
}
|