]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/events.c
P2P: Fix pending-sta-scan processing for concurrent operation cases
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 24 Sep 2012 10:46:27 +0000 (13:46 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 24 Sep 2012 10:46:27 +0000 (13:46 +0300)
commit4c490780e2a08017fe90911f3bdcd24a372bee3c
tree6e09740da70d193965e4a8013ce4a7e57b1aad00
parentac06fb12f58398f7cf715a2e0b6cc84512fb6e41
P2P: Fix pending-sta-scan processing for concurrent operation cases

If two P2P_FIND commands and a station mode SCAN command are issued in a
sequence with the second P2P_FIND and SCAN commands started before the
initial scan from the first P2P_FIND command has completed,
sta_scan_pending may be left set without an automatic way of getting it
cleared. This can get P2P search stuck if no further station mode scan
operations are run.

Fix this by clearing the sta_scan_pending flag whenever station mode scans
are stopped due to no enabled networks resulting in INACTIVE mode getting
entered. In addition, avoid setting sta_scan_pending flag when a special
scan_res_handler is set so that this does not get enabled on the P2P
Device interface during a P2P search operation.

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