• Alexander Bondar's avatar
    iwlwifi: mvm: configure low latency dependent scan parameters · 50df8a30
    Alexander Bondar authored
    In case of system low latency configure passive scan to be fragmented.
    Set the following scan parameters for both immediate and scheduled scan:
     - passive scan fragment duration = 20ms
     - out-of-channel time = 70ms
     - suspend time = 105ms
    Restructure channel's active/passive dwell time configuration to better
    suit the above change.
    
    The idea is that under low latency traffic passive scan is fragmented,
    i.e. that dwell on a particular channel will be fragmented. Each
    fragment dwell time is 20ms and fragments period is 105ms. Skipping to
    next channel will be delayed by the same period (105ms). So suspend_time
    parameter describing both fragments and channels skipping periods is set
    to 105ms. This value is chosen so that overall passive scan duration
    will not be too long. Max_out_time in this case is set to 70ms, so for
    active scanning operating channel will be left for 70ms while for
    passive still for 20ms (fragment dwell).
    Signed-off-by: default avatarAlexander Bondar <alexander.bondar@intel.com>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
    50df8a30
utils.c 19.3 KB