]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/p2p_supplicant.c
P2P: Fix p2p_group_idle in no-group-interface P2P client case
authorJouni Malinen <j@w1.fi>
Sun, 23 Sep 2012 17:28:03 +0000 (20:28 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 23 Sep 2012 17:28:03 +0000 (20:28 +0300)
commit0c802384a77696061f4a06f6a143449c6a3e5b53
treea2fd79e20fe8b6f383b2405a03607a66f0f03c1e
parent8c981d179b71b1d91ea06af35e456ff53dfcdeff
P2P: Fix p2p_group_idle in no-group-interface P2P client case

Commit 30ee769235f3170d9bf6b62c11c6e018e97deb84 started skipping P2P
group removal if wpa_s->current_ssid is not set and commit
0d30cc240fa36905b034dc9676f9d8da0ac18e56 started clearing
wpa_s->current_ssid on disconnection. This combination broke
p2p_group_idle timeout on P2P client interface in a case where no
separate P2P group interface is used and when the disconnection is
triggered by something else than an explicit indication of GO
terminating the group.

Fix this by relaxing network block matching rules when figuring out
whether any of the configured network blocks could be in P2P use. The
p2p_group flag alone should be enough for this since temporary P2P group
network blocks are removed once the P2P group is terminated.

Signed-hostap: Jouni Malinen <j@w1.fi>
wpa_supplicant/p2p_supplicant.c