Commit 670ce688 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: rtw_make_wlanhdr23a(): Use IEEE80211_SN_TO_SEQ() to set seq_ctrl

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0b218f4c
...@@ -953,7 +953,9 @@ int rtw_make_wlanhdr23a(struct rtw_adapter *padapter, u8 *hdr, ...@@ -953,7 +953,9 @@ int rtw_make_wlanhdr23a(struct rtw_adapter *padapter, u8 *hdr,
psta->sta_xmitpriv.txseq_tid[pattrib->priority]++; psta->sta_xmitpriv.txseq_tid[pattrib->priority]++;
psta->sta_xmitpriv.txseq_tid[pattrib->priority] &= 0xFFF; psta->sta_xmitpriv.txseq_tid[pattrib->priority] &= 0xFFF;
pattrib->seqnum = psta->sta_xmitpriv.txseq_tid[pattrib->priority]; pattrib->seqnum = psta->sta_xmitpriv.txseq_tid[pattrib->priority];
SetSeqNum(hdr, pattrib->seqnum); /* We dont need to worry about frag bits here */
pwlanhdr->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(
pattrib->seqnum));
/* check if enable ampdu */ /* check if enable ampdu */
if (pattrib->ht_en && psta->htpriv.ampdu_enable) { if (pattrib->ht_en && psta->htpriv.ampdu_enable) {
if (pattrib->priority >= 16) if (pattrib->priority >= 16)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment