staging: rtl8723au: rtw_make_wlanhdr23a(): Use IEEE80211_SN_TO_SEQ() to set seq_ctrl
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 21 May 2014 07:37:57 +0000 (09:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 07:27:46 +0000 (16:27 +0900)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_xmit.c

index a75ca65e76e6564110ce242bf66e2168931f7012..e9882a5b0966f6552595b746e2b9cda09d87dcb8 100644 (file)
@@ -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] &= 0xFFF;
                        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 */
                        if (pattrib->ht_en && psta->htpriv.ampdu_enable) {
                                if (pattrib->priority >= 16)