Skip to content
  • Luis R. Rodriguez's avatar
    mac80211: disable moving between PS modes during scan · 43f78531
    Luis R. Rodriguez authored
    We don't want to trigger moving between PS mode during scan,
    because then we will sometimes end up sending nullfunc frames
    during scan. We're supposed to only send one prior to scan
    and after scan.
    
    This fixes an oops which occured due to an assert in ath9k:
    
    http://marc.info/?l=linux-wireless&m=124277331319024
    
    
    
    The assert was happening because the rate control algorithm
    figures it should find at least one valid dual stream or
    single stream rate. Since we allow mac80211 to send nullfunc
    frames during scan and dynamic PS was enabled at times we ended
    up trying to send nullfunc frames for the target sta on the
    wrong band for which we have no valid rate to communicate with
    it. This breaks the assumptions in rate control.
    
    We determine we also need to disable moving between PS modes
    when not associated so lets just add that now as well, and we
    should not have a ps_sdata when that interface cannot actually
    go into PS because it's not associated.
    
    Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
    Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    43f78531