P2P: Do not request station mode scans during P2P operations
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 29 Sep 2011 13:53:55 +0000 (16:53 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 29 Sep 2011 13:53:55 +0000 (16:53 +0300)
commit303f60d39b29ae6d73e74051dd7db9b460615fad
tree2c67650460b1dec9d25269a61be11c3c55e3d0c3
parent0c96fd6d03d97bb5371a107600898046d638ca3f
P2P: Do not request station mode scans during P2P operations

The P2P search mechanism depends on the same scan functionality that
is used for station mode scans. If these operations are being used
at the same time, scan result processing is not handled properly.
Avoid unexpected behavior by delaying station mode scan requests
if a P2P operation is in progress.

Among other things, this allows the station mode connection attempt
to be continued after a P2P find or group formation has been completed
if the interface is available (i.e., when the P2P group uses a
separate virtual interface).
src/p2p/p2p.c
src/p2p/p2p.h
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h
wpa_supplicant/scan.c