diff options
-rw-r--r-- | net/mac80211/rx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index fdeabb19943..d83334bbb24 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1877,9 +1877,8 @@ ieee80211_rx_h_data(struct ieee80211_rx_data *rx) | |||
1877 | dev->stats.rx_packets++; | 1877 | dev->stats.rx_packets++; |
1878 | dev->stats.rx_bytes += rx->skb->len; | 1878 | dev->stats.rx_bytes += rx->skb->len; |
1879 | 1879 | ||
1880 | if (ieee80211_is_data(hdr->frame_control) && | 1880 | if (local->ps_sdata && local->hw.conf.dynamic_ps_timeout > 0 && |
1881 | !is_multicast_ether_addr(hdr->addr1) && | 1881 | !is_multicast_ether_addr(((struct ethhdr *)rx->skb->data)->h_dest)) { |
1882 | local->hw.conf.dynamic_ps_timeout > 0 && local->ps_sdata) { | ||
1883 | mod_timer(&local->dynamic_ps_timer, jiffies + | 1882 | mod_timer(&local->dynamic_ps_timer, jiffies + |
1884 | msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout)); | 1883 | msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout)); |
1885 | } | 1884 | } |