]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: fix incorrect event channel deduction
authorGavin Li <git@thegavinli.com>
Tue, 17 Jan 2017 23:24:05 +0000 (15:24 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 20 Jan 2017 10:02:28 +0000 (12:02 +0200)
commitc89070e9881f7350e543000c2317eb0584bbefa2
tree19726dac9768baae942013dff257b08073d91fbd
parentd8fc6b1a1e5cf34e47eab969d4a02ca1e02aff1f
brcmfmac: fix incorrect event channel deduction

brcmf_sdio_fromevntchan() was being called on the the data frame
rather than the software header, causing some frames to be
mischaracterized as on the event channel rather than the data channel.

This fixes a major performance regression (due to dropped packets). With
this patch the download speed jumped from 1Mbit/s back up to 40MBit/s due
to the sheer amount of packets being incorrectly processed.

Fixes: 0a543af8d5cc ("brcmfmac: screening firmware event packet")
Signed-off-by: Gavin Li <git@thegavinli.com>
Cc: <stable@vger.kernel.org> # 4.7+
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
[kvalo@codeaurora.org: improve commit logs based on email discussion]
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c