P2P: Postpone P2P scan only if station mode scan is pending
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 18 Mar 2013 15:11:15 +0000 (17:11 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 18 Mar 2013 15:32:31 +0000 (17:32 +0200)
commit407be00b6ca299e04c34f385df5e538c912fc0ec
treeef5c8888a068e5d083f2b14ef8f6ca83e7d411ba
parentcfd31b5026a403ae67f88c74b036207be05b3107
P2P: Postpone P2P scan only if station mode scan is pending

sta_scan_pending was supposed to be accurate enough for determining
whether a P2P scan needs to be postponed. However, it has turned out
that there were cases where sta_scan_pending was not cleared properly.
While the known cases have now been addressed, it is possible that some
other cases may still exist. To avoid issues with P2P operationg getting
stuck, verify more carefully that there is a real pending station mode
scan (either in progress or scheduled to be requested).

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