brcmfmac: fix incorrect event channel deduction
PATCH 1/1 brcmfmac: fix incorrect event channel deduction
From: Gavin Li <[email protected]>
brcmf_sdio_fromevntchan() was being called on the the hardware header rather than the software header, causing some frames to be mischaracterized as on the event channel rather than the data channel. This fixes the performance regression introduced in commit c56caa9d where event processing is done separately.
--- drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +1 -1
@@ -1661,7 +1661,7 @@ static u8 brcmf_sdio_rxglom(struct brcmf_sdio *bus, u8 rxseq) pfirst->len, pfirst->next, pfirst->prev);skb_unlink (pfirst, &bus->glom); -if (brcmf_sdio_fromevntchan (pfirst->data)) +if (brcmf_sdio_fromevntchan (&dptr[SDPCM_HWHDR_LEN ]))brcmf_rx_event (bus->sdiodev->dev, pfirst);else brcmf_rx_frame(bus->sdiodev->dev, pfirst,
Signature · 1 line
2.11.0
Quoted 7 lines · On 17 January 2017 at 23:29, <[email protected]> wrote:
From: Gavin Li <[email protected]>
brcmf_sdio_fromevntchan()was being called on the the hardware header rather than the software header, causing some frames to be mischaracterized as on the event channel rather than the data channel. This fixes the performance regression introduced in commitc56caa9dwhere event processing is done separately.
This should be:
in commit c56caa9db8ab ("brcmfmac: screening firmware event packet") where (...)
You should also use
Quoted 1 line
Signed-off-by Gavin Li <[email protected]>
Please add also:
Cc: [email protected] # 4.6+
On 17 January 2017 at 23:41, Rafa=C5=82 Mi=C5=82ecki <[email protected]> wro= te:
Quoted 11 lines · On 17 January 2017 at 23:29, <[email protected]> wrote:
Quoted 7 lines
From: Gavin Li <[email protected]>
brcmf_sdio_fromevntchan()was being called on the the hardware header rather than the software header, causing some frames to be mischaracterized as on the event channel rather than the data channel. This fixes the performance regression introduced in commitc56caa9dwhere event processing is done separately.This should be:
in commitc56caa9db8ab("brcmfmac: screening firmware event packet") wher=
e (...)
Quoted 3 lines
You should also use
Fixes c56caa9db8ab ("brcmfmac: screening firmware event packet") where (=
...)
Oops, copy & paste mistake. Just:
--=20
Rafa=C5=82