diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-02-19 20:07:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:26 -0500 |
commit | 836341a70471ba77657b0b420dd7eea3c30a038b (patch) | |
tree | f27af297dd49c1aa5d6df3cd496b8b5fb7e43c2a /net/mac80211/tx.c | |
parent | d2259243a19894eee06c16e278adfea81dc42bd9 (diff) |
mac80211: remove sta TIM flag, fix expiry TIM handling
The TIM flag that is kept in each station's info is completely
useless, there's no code (aside from the debugfs display code)
checking it, hence it can be removed. While doing that, I noticed
that the TIM handling is broken when buffered frames expire, so
fix that.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 82474a8f251b..db6a871b51ed 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -404,7 +404,6 @@ ieee80211_tx_h_unicast_ps_buf(struct ieee80211_txrx_data *tx) | |||
404 | print_mac(mac, sta->addr), sta->aid, | 404 | print_mac(mac, sta->addr), sta->aid, |
405 | skb_queue_len(&sta->ps_tx_buf)); | 405 | skb_queue_len(&sta->ps_tx_buf)); |
406 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ | 406 | #endif /* CONFIG_MAC80211_VERBOSE_PS_DEBUG */ |
407 | sta->flags |= WLAN_STA_TIM; | ||
408 | if (tx->local->total_ps_buffered >= TOTAL_MAX_TX_BUFFER) | 407 | if (tx->local->total_ps_buffered >= TOTAL_MAX_TX_BUFFER) |
409 | purge_old_ps_buffers(tx->local); | 408 | purge_old_ps_buffers(tx->local); |
410 | if (skb_queue_len(&sta->ps_tx_buf) >= STA_MAX_TX_BUFFER) { | 409 | if (skb_queue_len(&sta->ps_tx_buf) >= STA_MAX_TX_BUFFER) { |