P2P: Set p2p_scan_running based on driver scan request result
authorSunil Dutt <usdutt@qti.qualcomm.com>
Thu, 30 Oct 2014 10:50:22 +0000 (16:20 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 30 Oct 2014 22:05:25 +0000 (00:05 +0200)
commitb951a97454309a5078ee24a5796829a92f1df5f9
tree8096c94c774a1667b66bfe3a59f26a1155b43db8
parent43d859271894f83c5de6294685b5919889541bab
P2P: Set p2p_scan_running based on driver scan request result

With the radio work interface, the actual request to start p2p_scan
operation is scheduled from a radio work and hence the initial return
value cannot provide the real result of the driver operation to trigger
a scan. Introduce a new notification API to indicate the scan trigger
status based on which the p2p_scan_running instance can be set using the
real return value from the driver operation.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c
src/p2p/p2p.h
wpa_supplicant/p2p_supplicant.c