diff options
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index c08b8e90bbcb..b37c3415f0ea 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1952,7 +1952,10 @@ ieee80211_rx_h_data(struct ieee80211_rx_data *rx) | |||
1952 | dev->stats.rx_bytes += rx->skb->len; | 1952 | dev->stats.rx_bytes += rx->skb->len; |
1953 | 1953 | ||
1954 | if (local->ps_sdata && local->hw.conf.dynamic_ps_timeout > 0 && | 1954 | if (local->ps_sdata && local->hw.conf.dynamic_ps_timeout > 0 && |
1955 | !is_multicast_ether_addr(((struct ethhdr *)rx->skb->data)->h_dest)) { | 1955 | !is_multicast_ether_addr( |
1956 | ((struct ethhdr *)rx->skb->data)->h_dest) && | ||
1957 | (!local->scanning && | ||
1958 | !test_bit(SDATA_STATE_OFFCHANNEL, &sdata->state))) { | ||
1956 | mod_timer(&local->dynamic_ps_timer, jiffies + | 1959 | mod_timer(&local->dynamic_ps_timer, jiffies + |
1957 | msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout)); | 1960 | msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout)); |
1958 | } | 1961 | } |