aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/agg-tx.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-08-20 09:53:55 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-14 13:56:16 -0400
commit8c771244fbab51661da7dbbabfa5dceffb3e3cce (patch)
tree10a8ac0c5fa3b05c82a614548832f2fec7d81261 /net/mac80211/agg-tx.c
parentd7549cbb9ab0674ef44ea15bd9f9ea1c685adfa6 (diff)
mac80211: make ieee80211_send_bar available for drivers
To properly maintain the peer's block ack window, the driver needs to be able to control the new starting sequence number that is sent along with the BlockAckReq frame. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/agg-tx.c')
-rw-r--r--net/mac80211/agg-tx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
index 250b9a53f6d9..3cef5a7281cb 100644
--- a/net/mac80211/agg-tx.c
+++ b/net/mac80211/agg-tx.c
@@ -104,8 +104,9 @@ static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata,
104 ieee80211_tx_skb(sdata, skb); 104 ieee80211_tx_skb(sdata, skb);
105} 105}
106 106
107void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u16 ssn) 107void ieee80211_send_bar(struct ieee80211_vif *vif, u8 *ra, u16 tid, u16 ssn)
108{ 108{
109 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
109 struct ieee80211_local *local = sdata->local; 110 struct ieee80211_local *local = sdata->local;
110 struct sk_buff *skb; 111 struct sk_buff *skb;
111 struct ieee80211_bar *bar; 112 struct ieee80211_bar *bar;
@@ -131,6 +132,7 @@ void ieee80211_send_bar(struct ieee80211_sub_if_data *sdata, u8 *ra, u16 tid, u1
131 IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; 132 IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
132 ieee80211_tx_skb(sdata, skb); 133 ieee80211_tx_skb(sdata, skb);
133} 134}
135EXPORT_SYMBOL(ieee80211_send_bar);
134 136
135void ieee80211_assign_tid_tx(struct sta_info *sta, int tid, 137void ieee80211_assign_tid_tx(struct sta_info *sta, int tid,
136 struct tid_ampdu_tx *tid_tx) 138 struct tid_ampdu_tx *tid_tx)