mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-21 11:33:04 -05:00
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>