diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-06-17 08:23:11 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:46:03 +0200 |
commit | 1103559e535d8d98965c54f1bdbd1fcbccff81ad (patch) | |
tree | 3ed6ec7808b982e0466977c0ee5c726693d4f4f4 /package/kernel/mac80211/patches/351-0012-brcmfmac-fix-skb-priority-handling.patch | |
parent | 99cd168573c80d5f8508b803dacfdce560cf5785 (diff) | |
download | master-187ad058-1103559e535d8d98965c54f1bdbd1fcbccff81ad.tar.gz master-187ad058-1103559e535d8d98965c54f1bdbd1fcbccff81ad.tar.bz2 master-187ad058-1103559e535d8d98965c54f1bdbd1fcbccff81ad.zip |
mac80211: brcmfmac: backport changes from 2016-06-16
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49387 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/351-0012-brcmfmac-fix-skb-priority-handling.patch')
-rw-r--r-- | package/kernel/mac80211/patches/351-0012-brcmfmac-fix-skb-priority-handling.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/351-0012-brcmfmac-fix-skb-priority-handling.patch b/package/kernel/mac80211/patches/351-0012-brcmfmac-fix-skb-priority-handling.patch new file mode 100644 index 0000000000..c729d430e5 --- /dev/null +++ b/package/kernel/mac80211/patches/351-0012-brcmfmac-fix-skb-priority-handling.patch @@ -0,0 +1,28 @@ +From: Hante Meuleman <hante.meuleman@broadcom.com> +Date: Fri, 3 Jun 2016 23:31:07 +0200 +Subject: [PATCH] brcmfmac: fix skb priority handling + +SKBs can come with a prioriy. Currently a priority of 0..7 is +assumed. But this assumption is incorrect. To fix this any +priority of 0 or higher then 7 will be adjusted by calling +cfg80211_classify8021d + +Reviewed-by: Arend Van Spriel <arend@broadcom.com> +Reviewed-by: Franky Lin <franky.lin@broadcom.com> +Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com> +Signed-off-by: Hante Meuleman <hante.meuleman@broadcom.com> +Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> +Signed-off-by: Kalle Valo <kvalo@codeaurora.org> +--- + +--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c ++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c +@@ -2101,7 +2101,7 @@ int brcmf_fws_process_skb(struct brcmf_i + + brcmf_dbg(DATA, "tx proto=0x%X\n", ntohs(eh->h_proto)); + /* determine the priority */ +- if (!skb->priority) ++ if ((skb->priority == 0) || (skb->priority > 7)) + skb->priority = cfg80211_classify8021d(skb, NULL); + + drvr->tx_multicast += !!multicast; |