wcn36xx: Use sequence number allocated by mac80211
authorLoic Poulain <loic.poulain@linaro.org>
Fri, 24 Jul 2020 10:20:52 +0000 (12:20 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 14 Aug 2020 15:02:28 +0000 (18:02 +0300)
Instead of using the firmware generated sequence number, use the one
already allocated by the mac80211 layer. This allows better control
of the sequence numbers and avoid to rely on same sequence for Data,
QOS Data and QOS Null Data packets.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1595586052-16081-7-git-send-email-loic.poulain@linaro.org
drivers/net/wireless/ath/wcn36xx/txrx.c

index 52aff4c63587bca29bd1df1a74bef92a8e7a8f6b..f5872e7dfb5167ec73a6e3af74bfd66dd5e4d8f8 100644 (file)
@@ -207,7 +207,8 @@ static void wcn36xx_set_tx_pdu(struct wcn36xx_tx_bd *bd,
                bd->pdu.mpdu_header_off;
        bd->pdu.mpdu_len = len;
        bd->pdu.tid = tid;
-       bd->pdu.bd_ssn = WCN36XX_TXBD_SSN_FILL_DPU_QOS;
+       /* Use seq number generated by mac80211 */
+       bd->pdu.bd_ssn = WCN36XX_TXBD_SSN_FILL_HOST;
 }
 
 static inline struct wcn36xx_vif *get_vif_by_addr(struct wcn36xx *wcn,