mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
30196673fe
commit
7e0aae4732
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue