base-files: remove a stale reference to /usr/lib/common.awk (thx, swalker)
[openwrt.git] / package / mac80211 / patches / 530-mac80211_drv_tim_override.patch
1 --- a/include/net/mac80211.h
2 +++ b/include/net/mac80211.h
3 @@ -2198,6 +2198,20 @@ static inline int ieee80211_sta_ps_trans
4 #define IEEE80211_TX_STATUS_HEADROOM 13
5
6 /**
7 + * ieee80211_sta_set_tim - set the TIM bit for a sleeping station
8 + *
9 + * If a driver buffers frames for a powersave station instead of passing
10 + * them back to mac80211 for retransmission, the station needs to be told
11 + * to wake up using the TIM bitmap in the beacon.
12 + *
13 + * This function sets the station's TIM bit - it will be cleared automatically
14 + * either when the station wakes up (and mac80211 has flushed out its
15 + * buffered frames), or if all remaining buffered frames in mac80211 have
16 + * timed out.
17 + */
18 +void ieee80211_sta_set_tim(struct ieee80211_sta *sta);
19 +
20 +/**
21 * ieee80211_tx_status - transmit status callback
22 *
23 * Call this function for all transmitted frames after they have been
24 --- a/net/mac80211/sta_info.c
25 +++ b/net/mac80211/sta_info.c
26 @@ -991,3 +991,11 @@ void ieee80211_sta_block_awake(struct ie
27 ieee80211_queue_work(hw, &sta->drv_unblock_wk);
28 }
29 EXPORT_SYMBOL(ieee80211_sta_block_awake);
30 +
31 +void ieee80211_sta_set_tim(struct ieee80211_sta *pubsta)
32 +{
33 + struct sta_info *sta = container_of(pubsta, struct sta_info, sta);
34 +
35 + sta_info_set_tim_bit(sta);
36 +}
37 +EXPORT_SYMBOL(ieee80211_sta_set_tim);
This page took 0.039177 seconds and 5 git commands to generate.