Skip to content

Commit

Permalink
mac80211: do not overwrite the sequence number if requested
Browse files Browse the repository at this point in the history
Check if the Tx control flag is set to prevent sequence number overwrites,
and if so, do not assign a new sequence number to the transmitted frame.

Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@kuleuven.be>
Link: https://lore.kernel.org/r/20200723100153.31631-3-Mathy.Vanhoef@kuleuven.be
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Mathy Vanhoef authored and Johannes Berg committed Jul 31, 2020
1 parent e02281e commit 29c3e95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,9 @@ ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx)
if (ieee80211_is_qos_nullfunc(hdr->frame_control))
return TX_CONTINUE;

if (info->control.flags & IEEE80211_TX_CTRL_NO_SEQNO)
return TX_CONTINUE;

/*
* Anything but QoS data that has a sequence number field
* (is long enough) gets a sequence number from the global
Expand Down

0 comments on commit 29c3e95

Please sign in to comment.