mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
P2P: Stop remain-on-channel prior to starting join-a-group client
This fixes issues with drivers that do not handle concurrent remain-on-channel and scan operations in a case where Provision Discovery Response frame is not received to stop the Action frame handshake. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
b8349523e4
commit
e91829f9ac
@ -2732,6 +2732,13 @@ static int wpas_p2p_join_start(struct wpa_supplicant *wpa_s)
|
|||||||
os_memcpy(res.peer_interface_addr, wpa_s->pending_join_iface_addr,
|
os_memcpy(res.peer_interface_addr, wpa_s->pending_join_iface_addr,
|
||||||
ETH_ALEN);
|
ETH_ALEN);
|
||||||
res.wps_method = wpa_s->pending_join_wps_method;
|
res.wps_method = wpa_s->pending_join_wps_method;
|
||||||
|
if (wpa_s->off_channel_freq || wpa_s->roc_waiting_drv_freq) {
|
||||||
|
wpa_printf(MSG_DEBUG, "P2P: Cancel remain-on-channel prior to "
|
||||||
|
"starting client");
|
||||||
|
wpa_drv_cancel_remain_on_channel(wpa_s);
|
||||||
|
wpa_s->off_channel_freq = 0;
|
||||||
|
wpa_s->roc_waiting_drv_freq = 0;
|
||||||
|
}
|
||||||
wpas_start_wps_enrollee(group, &res);
|
wpas_start_wps_enrollee(group, &res);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user