Skip to content
  • Johannes Berg's avatar
    mac80211: improve scan timing · 99c84cb0
    Johannes Berg authored
    
    
    The call to ieee80211_hw_config() is supposed to apply changes
    synchronously, so once it returns the parameters are applied to
    the hardware. Thus, there really is no need to delay the probing
    by the channel switch time again since the channel switch has
    already happened once we get to this code.
    
    Additionally, there is no need to wait for a NAV update (probe
    delay) when the channel is passively scanned. Remove that extra
    time too.
    
    This cuts scanning time from over 7 seconds to under 4 on ar9170,
    which is due to the number of channels scanned and ar9170's switch
    time being advertised as 135ms (my test now indicates it is about
    77ms with the current driver, but the difference might also be due
    to using a different machine with different USB controllers).
    
    Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    99c84cb0