brcmfmac: fix 802.1d priority to ac mapping for pcie dongles
authorPramod Prakash <pramod.prakash@cypress.com>
Tue, 5 May 2020 06:51:27 +0000 (01:51 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 12 May 2020 08:50:42 +0000 (11:50 +0300)
802.1d defines 0,3 for BE and 1,2 for BK. In pcie dongles, 0 & 3 are
mapped to 0 and 1,2 are mapped to 1. This change corrects this mapping,
so that BE & BK are given access precedence accordingly by pcie dongles.

Signed-off-by: Pramod Prakash <pramod.prakash@cypress.com>
Signed-off-by: Chi-hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1588661487-21884-3-git-send-email-chi-hsien.lin@cypress.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c

index 8e9d067..096f6b9 100644 (file)
 #define BRCMF_FLOWRING_HASH_STA(fifo, ifidx) (fifo + ifidx * 16)
 
 static const u8 brcmf_flowring_prio2fifo[] = {
-       1,
-       0,
        0,
        1,
+       1,
+       0,
        2,
        2,
        3,