diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-08 19:31:50 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-08 19:31:50 +0000 |
commit | c6996a7d7d8af7eccbe98c9b4d22244115e61c7d (patch) | |
tree | aeb9f15b67616dfb5531fe06c23458c6f578e25f /package/mac80211/patches/530-mac80211_drv_tim_override.patch | |
parent | d807f70e4781773557c4aa8ed9ee5062b41568fb (diff) | |
download | upstream-c6996a7d7d8af7eccbe98c9b4d22244115e61c7d.tar.gz upstream-c6996a7d7d8af7eccbe98c9b4d22244115e61c7d.tar.bz2 upstream-c6996a7d7d8af7eccbe98c9b4d22244115e61c7d.zip |
ath9k: add fixes for AP side powersave frame buffering
SVN-Revision: 25426
Diffstat (limited to 'package/mac80211/patches/530-mac80211_drv_tim_override.patch')
-rw-r--r-- | package/mac80211/patches/530-mac80211_drv_tim_override.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/package/mac80211/patches/530-mac80211_drv_tim_override.patch b/package/mac80211/patches/530-mac80211_drv_tim_override.patch new file mode 100644 index 0000000000..e64d3aa830 --- /dev/null +++ b/package/mac80211/patches/530-mac80211_drv_tim_override.patch @@ -0,0 +1,37 @@ +--- a/include/net/mac80211.h ++++ b/include/net/mac80211.h +@@ -2198,6 +2198,20 @@ static inline int ieee80211_sta_ps_trans + #define IEEE80211_TX_STATUS_HEADROOM 13 + + /** ++ * ieee80211_sta_set_tim - set the TIM bit for a sleeping station ++ * ++ * If a driver buffers frames for a powersave station instead of passing ++ * them back to mac80211 for retransmission, the station needs to be told ++ * to wake up using the TIM bitmap in the beacon. ++ * ++ * This function sets the station's TIM bit - it will be cleared automatically ++ * either when the station wakes up (and mac80211 has flushed out its ++ * buffered frames), or if all remaining buffered frames in mac80211 have ++ * timed out. ++ */ ++void ieee80211_sta_set_tim(struct ieee80211_sta *sta); ++ ++/** + * ieee80211_tx_status - transmit status callback + * + * Call this function for all transmitted frames after they have been +--- a/net/mac80211/sta_info.c ++++ b/net/mac80211/sta_info.c +@@ -991,3 +991,11 @@ void ieee80211_sta_block_awake(struct ie + ieee80211_queue_work(hw, &sta->drv_unblock_wk); + } + EXPORT_SYMBOL(ieee80211_sta_block_awake); ++ ++void ieee80211_sta_set_tim(struct ieee80211_sta *pubsta) ++{ ++ struct sta_info *sta = container_of(pubsta, struct sta_info, sta); ++ ++ sta_info_set_tim_bit(sta); ++} ++EXPORT_SYMBOL(ieee80211_sta_set_tim); |