Do not trigger the scan during initialization on Android platforms
authorSunil Dutt <usdutt@qti.qualcomm.com>
Wed, 17 Dec 2014 07:17:10 +0000 (12:47 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 19 Dec 2014 13:24:33 +0000 (15:24 +0200)
commitee82e33d6abdf84cadaa765dadf9e0ec06f5762b
treef4561084733ff02305b3d059414e72135750b0ea
parent83e80d32f1013fef159a4fbc5b8bc8cebb7a0558
Do not trigger the scan during initialization on Android platforms

Android framework maintains a state to process the scan results after
the scan is issued. If wpa_supplicant issues the scan during the
initialization, the one issued by the framework may fail (with EBUSY) if
the host driver is already processing the scan. Thus, the scan results
returned for the first scan triggered by wpa_supplicant are not
processed for getting displayed resulting in delay for the display of
the first scan results after the Wi-Fi subsystem initialization. Thus,
trigger the scan only based on the framework request on Android.

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