P2P: Indicate reason=UNAVAILABLE for group netdev going down
There is a race condition between receiving an AP stopped event and netdev down event. These resulted in different group removal reasons on a GO device (UNAVAILABLE for stop AP event coming first and REQUESTED for netdev event first). Make this more consistent by reporting UNAVAILABLE for both possible cases. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
cd9548c02f
commit
8f2cf37923
1 changed files with 5 additions and 1 deletions
|
@ -3400,6 +3400,10 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
|||
* it assuming an external entity will start a
|
||||
* new session if needed.
|
||||
*/
|
||||
if (wpa_s->current_ssid &&
|
||||
wpa_s->current_ssid->p2p_group)
|
||||
wpas_p2p_interface_unavailable(wpa_s);
|
||||
else
|
||||
wpas_p2p_disconnect(wpa_s);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue