From 2f7c30a20a2a39c49369dcabc22eeaf6b6074fe1 Mon Sep 17 00:00:00 2001 From: Christian kimocoder Date: Thu, 12 Oct 2017 12:10:37 +0200 Subject: [PATCH] Add support for pre-configured SeqNum via RadioTap See http://www.radiotap.org/fields/TX%20flags value 0x0010 --- hal/rtl8814a/usb/rtl8814au_xmit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hal/rtl8814a/usb/rtl8814au_xmit.c b/hal/rtl8814a/usb/rtl8814au_xmit.c index ba53693..282f30c 100644 --- a/hal/rtl8814a/usb/rtl8814au_xmit.c +++ b/hal/rtl8814a/usb/rtl8814au_xmit.c @@ -122,7 +122,10 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz ,u8 bag if (!pattrib->qos_en) { /* HW sequence, to fix to use 0 queue. todo: 4AC packets to use auto queue select */ - SET_TX_DESC_HWSEQ_EN_8814A(ptxdesc, 1); // Hw set sequence number + if(pattrib->sw_seq == _FALSE) + SET_TX_DESC_HWSEQ_EN_8814A(ptxdesc, 1); // Hw set sequence number + else + SET_TX_DESC_SEQ_8814A(ptxdesc, pattrib->seqnum); SET_TX_DESC_EN_HWEXSEQ_8814A(ptxdesc, 0); SET_TX_DESC_DISQSELSEQ_8814A(ptxdesc, 1); SET_TX_DESC_HW_SSN_SEL_8814A(ptxdesc, 0);