aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-05-19 19:25:58 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-05-20 14:46:34 -0400
commit7e0aae4732067e1bdb546071423a0b3483a79d9a (patch)
treed9c4e4dbc7e8ec0b998e0345628d92590b651b6f /net/mac80211
parent30196673fe17934617b5d5bfd456a0edf057a0b9 (diff)
downloadkernel_samsung_aries-7e0aae4732067e1bdb546071423a0b3483a79d9a.zip
kernel_samsung_aries-7e0aae4732067e1bdb546071423a0b3483a79d9a.tar.gz
kernel_samsung_aries-7e0aae4732067e1bdb546071423a0b3483a79d9a.tar.bz2
mac80211: Do not override AID in the duration field
When updating the duration field for TX frames, skip the update for PS-Poll frames that use this field for other purposes (AID). Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/tx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 8f68bf9..a910148 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -872,6 +872,8 @@ ieee80211_tx_h_calculate_duration(struct ieee80211_tx_data *tx)
do {
hdr = (void *) skb->data;
+ if (unlikely(ieee80211_is_pspoll(hdr->frame_control)))
+ break; /* must not overwrite AID */
next_len = skb->next ? skb->next->len : 0;
group_addr = is_multicast_ether_addr(hdr->addr1);