aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-17 11:45:00 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-19 15:38:05 -0400
commitdcf55fb5d43bd82e1e3bf94f065cfe8f75a4bc5a (patch)
tree34b8bb4d1c1dcb45d0e5e134fd6373b8fcc1e689 /include/net/mac80211.h
parentcea3235cf578b5e952f5a0cec9bc6c2e862eb697 (diff)
mac80211: add a function for setting the TIM bit for a specific station
This allows a driver to buffer frames for a PS station and tell mac80211 to wake it up even though mac80211 does not have any buffered frames for it. This is necessary for properly handling aggregation related buffering, in ath9k, because the driver needs to keep its frames in order to keep track of the Block-ACK window. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 361bc5d85b1a..162363b6cb62 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2227,6 +2227,18 @@ static inline int ieee80211_sta_ps_transition_ni(struct ieee80211_sta *sta,
2227#define IEEE80211_TX_STATUS_HEADROOM 13 2227#define IEEE80211_TX_STATUS_HEADROOM 13
2228 2228
2229/** 2229/**
2230 * ieee80211_sta_set_tim - set the TIM bit for a sleeping station
2231 *
2232 * If a driver buffers frames for a powersave station instead of passing
2233 * them back to mac80211 for retransmission, the station needs to be told
2234 * to wake up using the TIM bitmap in the beacon.
2235 *
2236 * This function sets the station's TIM bit - it will be cleared when the
2237 * station wakes up.
2238 */
2239void ieee80211_sta_set_tim(struct ieee80211_sta *sta);
2240
2241/**
2230 * ieee80211_tx_status - transmit status callback 2242 * ieee80211_tx_status - transmit status callback
2231 * 2243 *
2232 * Call this function for all transmitted frames after they have been 2244 * Call this function for all transmitted frames after they have been