diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2009-03-22 20:57:06 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-28 01:13:12 +0100 |
commit | 3cf335d527ba6af80f4143f3c9e5136afdb143af (patch) | |
tree | 3bde85689909d3185622ccafe16f55fe4469a6ce /net/mac80211/rx.c | |
parent | ath5k: Support LED's on Acer Extensa 5620z (diff) | |
download | linux-3cf335d527ba6af80f4143f3c9e5136afdb143af.tar.xz linux-3cf335d527ba6af80f4143f3c9e5136afdb143af.zip |
mac80211: decrease execution of the associated timer
Currently the timer is triggering every two seconds
(IEEE80211_MONITORING_INTERVAL). Decrease the timer to only trigger during
data idle periods to avoid waking up CPU unnecessary. The timer will
still trigger during idle periods, that needs to be fixed later.
There's also a functional change that probe requests are sent only when the
data path is idle, earlier they were sent also while there was activity
on the data path.
This is also preparation for the beacon filtering support. Thanks to
Johannes Berg for the idea.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to '')
-rw-r--r-- | net/mac80211/rx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 47d395a51923..dbfb28465354 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -856,6 +856,9 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx) if (!(rx->flags & IEEE80211_RX_RA_MATCH)) return RX_CONTINUE; + if (rx->sdata->vif.type == NL80211_IFTYPE_STATION) + ieee80211_sta_rx_notify(rx->sdata, hdr); + sta->rx_fragments++; sta->rx_bytes += rx->skb->len; sta->last_signal = rx->status->signal; |