]> git.ipfire.org Git - thirdparty/hostap.git/commit
Add support to abort vendor scan
authorSunil Dutt <usdutt@qti.qualcomm.com>
Wed, 30 Nov 2016 04:39:38 +0000 (10:09 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 30 Nov 2016 17:33:43 +0000 (19:33 +0200)
commitbf88401d2336c61d0cc7972da6103210543e6782
treedb09f14bcd14b5ebc36ef02db39ecc756e25a474
parenteeb34a432e183003f0651da55ff2a64b609b6988
Add support to abort vendor scan

This commit enhances the existing implementation of abort scan to also
abort concurrent active vendor scans. This is achieved by passing the
the scan_cookie to the driver interface with the intention to abort
the specific scan request. This scan_cookie is returned from the driver
interface when the scan request is scheduled.

This scan_cookie is 0 if the scan is triggered through the upstream
cfg80211 interface. Thus, the scan_cookie is used to determine whether
to abort the cfg80211 or vendor scan request.

Also, the previous implementation of relying on scan_work/p2p_scan_work
for the active work to trigger the abort scan is enhanced to check for
the started state of either of these work operations. This should also
help to abort the concurrent active scan/p2p-scan operations.

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