mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
P2P: Clear show_group_started on GO start
The show_group_started variable could be left to 1 based on an earlier failed attempt to start P2P client operation. This can result in unexpected P2P-GROUP-STARTED event when a GO is started without group formation (e.g., re-invoke a persistent group or start an autonomous GO). Avoid this by explicitly clearing show_group_start when setting up the GO. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
8e5f913456
commit
a9e02d593d
@ -711,6 +711,8 @@ static void wpas_start_wps_go(struct wpa_supplicant *wpa_s,
|
||||
if (ssid == NULL)
|
||||
return;
|
||||
|
||||
wpa_s->show_group_started = 0;
|
||||
|
||||
wpa_config_set_network_defaults(ssid);
|
||||
ssid->temporary = 1;
|
||||
ssid->p2p_group = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user