]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Do not indicate scan started event on scan_for_auth
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 18 Mar 2014 20:45:07 +0000 (22:45 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 18 Mar 2014 20:48:44 +0000 (22:48 +0200)
commit1b5df9e591d9e97b69d7b2b69c295a5365f389c9
treecb8d3d855b645b261d7306ecb42a81e19f0b0b84
parentbb2382619a2c4564f0dc871deef6cbdd2639dea0
nl80211: Do not indicate scan started event on scan_for_auth

The scan_for_auth workaround for cfg80211 missing a BSS entry for the
target BSS during authentication uses a single channel scan controlled
within driver_nl80211.c. This operation does not indicate
EVENT_SCAN_RESULTS to the upper layer code. However, it did report
EVENT_SCAN_STARTED and this resulted in the radio work protection code
assuming that an external program triggered a scan, but that scan never
completed. This resulted in all new radio work items getting stuck
waiting for this scan to complete.

Fix this by handling the scan_for_auth situation consistently within
driver_nl80211.c by filtering both the EVENT_SCAN_STARTED and
EVENT_SCAN_RESULTS.

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