• Avraham Stern's avatar
    iwlwifi: mvm: Fix regular scan priority · dc9f69b9
    Avraham Stern authored
    The code checks the total number of iterations to differentiate
    between regular scan and scheduled scan. However, regular scan has
    a total of one iteration, not zero. As a result, regular scan will
    have lower priority than it should have, and in case scheduled
    scan is already running when regular scan is requested, regular scan
    will be delayed until scheduled scan is aborted.
    Fix that by checking for total iterations number of one as an
    identifier for regular scan.
    
    Fixes: 133c8259 ("iwlwifi: mvm: rename generic_scan_cmd functions to dwell")
    Signed-off-by: default avatarAvraham Stern <avraham.stern@intel.com>
    Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
    dc9f69b9
scan.c 46.8 KB