• B
    mwifiex: abort remaining scan commands when association started · 4c1079e1
    Bing Zhao 提交于
    A full-channel scan is split to multiple scan commands in driver
    before they are sent to firmware. When each scan result is back
    the SSID entries are parsed and informed to cfg80211 directly.
    
    It's observed that sometimes userspace may initiate association
    as soon as the target AP is found. During the 4-way handshake
    firmware may go off-channel to scan the remaining channels.
    This causes the 4-way handshake to fail.
    
    Fix it by checking 'scan_block' flag and aborting the remaining
    scan in this case. 'scan_block' flag is set after association
    and before 4-way handshake. It gets cleared after 4-way handshake
    is completed.
    Tested-by: NJason Abele <jabele@chromium.org>
    Signed-off-by: NBing Zhao <bzhao@marvell.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    4c1079e1
scan.c 60.6 KB