diff options
author | Hante Meuleman <meuleman@broadcom.com> | 2013-06-06 13:17:57 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-12 15:02:19 -0400 |
commit | 402e3ba20285f0ebe4f4bebdecb7ab24999f3626 (patch) | |
tree | 4b05bfe0a92ae90f61f9d85b761e64de14a41524 /drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c | |
parent | 5cd51c2bad56625e4447739426845cfa37fc11a5 (diff) | |
download | op-kernel-dev-402e3ba20285f0ebe4f4bebdecb7ab24999f3626.zip op-kernel-dev-402e3ba20285f0ebe4f4bebdecb7ab24999f3626.tar.gz |
brcmfmac: fix invalid ifp lookup in firmware-signalling
The destination entries for firmware-signalled flow control have
the interface id stored. This needs to be translated to bsscfg
index when looking up the ifp object for the interface.
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c index 876ea42..5f38742 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c @@ -805,7 +805,7 @@ static void brcmf_fws_flow_control_check(struct brcmf_fws_info *fws, struct pktq *pq, u8 if_id) { - struct brcmf_if *ifp = fws->drvr->iflist[if_id]; + struct brcmf_if *ifp = fws->drvr->iflist[!if_id ? 0 : if_id + 1]; if (WARN_ON(!ifp)) return; |