]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Do not fail p2p_group_remove just based on current_ssid
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 31 Aug 2012 18:35:32 +0000 (21:35 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 31 Aug 2012 18:35:32 +0000 (21:35 +0300)
commit6f1ca696c7f45659ad2bdacf90490ed680c01947
treece9b98428a505fb0a871141871388ab17262da9a
parent4d32c0c44db43d496f45c5094a9b6ae60c35115e
P2P: Do not fail p2p_group_remove just based on current_ssid

The wpa_s->current_ssid pointer may get cleared, e.g., when
disconnected. Commit 30ee769235f3170d9bf6b62c11c6e018e97deb84 made
wpas_p2p_group_delete() exit early before removing a P2P interface in
this type of case. That can cause number of issues from p2p_group_remove
command failing to busy loop when terminating wpa_supplicant if there is
a P2P group interface in client mode and that interface happens to be in
disconnected state. Fix these issues by allowing wpas_p2p_group_delete()
remove the P2P group interface regardless of whether wpa_s->currnt_ssid
is set.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c