diff options
author | Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de> | 2011-11-18 08:20:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-28 14:36:21 -0500 |
commit | b53be7920bd9bb1bb99fecc2ff537bc79d24082f (patch) | |
tree | de46261ba26859086fed002694ee4693ad45bd40 /net/mac80211/wme.c | |
parent | 1d9d9213d526f2f4ef9a3aa198a29a0b1a670fa1 (diff) |
mac80211: Add NoAck per tid support
This patch contains the processing changes in mac80211.
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/wme.c')
-rw-r--r-- | net/mac80211/wme.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c index 74b3d1008445..a98f24ac9369 100644 --- a/net/mac80211/wme.c +++ b/net/mac80211/wme.c | |||
@@ -139,6 +139,7 @@ void ieee80211_set_qos_hdr(struct ieee80211_sub_if_data *sdata, | |||
139 | struct sk_buff *skb) | 139 | struct sk_buff *skb) |
140 | { | 140 | { |
141 | struct ieee80211_hdr *hdr = (void *)skb->data; | 141 | struct ieee80211_hdr *hdr = (void *)skb->data; |
142 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | ||
142 | 143 | ||
143 | /* Fill in the QoS header if there is one. */ | 144 | /* Fill in the QoS header if there is one. */ |
144 | if (ieee80211_is_data_qos(hdr->frame_control)) { | 145 | if (ieee80211_is_data_qos(hdr->frame_control)) { |
@@ -150,8 +151,12 @@ void ieee80211_set_qos_hdr(struct ieee80211_sub_if_data *sdata, | |||
150 | /* preserve EOSP bit */ | 151 | /* preserve EOSP bit */ |
151 | ack_policy = *p & IEEE80211_QOS_CTL_EOSP; | 152 | ack_policy = *p & IEEE80211_QOS_CTL_EOSP; |
152 | 153 | ||
153 | if (is_multicast_ether_addr(hdr->addr1)) | 154 | if (is_multicast_ether_addr(hdr->addr1) || |
155 | sdata->noack_map & BIT(tid)) { | ||
154 | ack_policy |= IEEE80211_QOS_CTL_ACK_POLICY_NOACK; | 156 | ack_policy |= IEEE80211_QOS_CTL_ACK_POLICY_NOACK; |
157 | info->flags |= IEEE80211_TX_CTL_NO_ACK; | ||
158 | } | ||
159 | |||
155 | /* qos header is 2 bytes */ | 160 | /* qos header is 2 bytes */ |
156 | *p++ = ack_policy | tid; | 161 | *p++ = ack_policy | tid; |
157 | *p = ieee80211_vif_is_mesh(&sdata->vif) ? | 162 | *p = ieee80211_vif_is_mesh(&sdata->vif) ? |