]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix network removal on P2P connect to select correct block
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 5 Oct 2012 17:37:49 +0000 (20:37 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 5 Oct 2012 17:37:49 +0000 (20:37 +0300)
commit6d22a377bddad23ea79191546f84282ed889cc8a
treecadcb93b99382822577afdba7b5b8295a866ebbd
parentec947ffcd8d22fb03da9e6519e910f91f044ad06
P2P: Fix network removal on P2P connect to select correct block

If wpa_s->current_ssid is not set (e.g., after disconnection that
did not result in immediate group removal), an incorrect group could
have been removed since the network block iteration here could select
the network block that is used to store persistent group credentials.
Fix this by verifying that disabled != 2 to avoid picking the network
block that could not have been the temporary P2P group.

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