aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 22494bcf488a..8bcabefa86e0 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -600,8 +600,18 @@ ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx)
600 if (ieee80211_hdrlen(hdr->frame_control) < 24) 600 if (ieee80211_hdrlen(hdr->frame_control) < 24)
601 return TX_CONTINUE; 601 return TX_CONTINUE;
602 602
603 /*
604 * Anything but QoS data that has a sequence number field
605 * (is long enough) gets a sequence number from the global
606 * counter.
607 */
603 if (!ieee80211_is_data_qos(hdr->frame_control)) { 608 if (!ieee80211_is_data_qos(hdr->frame_control)) {
609 /* driver should assign sequence number */
604 info->flags |= IEEE80211_TX_CTL_ASSIGN_SEQ; 610 info->flags |= IEEE80211_TX_CTL_ASSIGN_SEQ;
611 /* for pure STA mode without beacons, we can do it */
612 hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number);
613 tx->sdata->sequence_number += 0x10;
614 tx->sdata->sequence_number &= IEEE80211_SCTL_SEQ;
605 return TX_CONTINUE; 615 return TX_CONTINUE;
606 } 616 }
607 617