]> git.karo-electronics.de Git - linux-beck.git/commitdiff
brcmfmac: fix invalid ifp lookup in firmware-signalling
authorHante Meuleman <meuleman@broadcom.com>
Thu, 6 Jun 2013 11:17:57 +0000 (13:17 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Jun 2013 19:02:19 +0000 (15:02 -0400)
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>
drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c

index 876ea423048dd8a445d83e65096f0ef4e0b04d9e..5f3874288d6bb9f9b870207ec02d3f4b93edbec0 100644 (file)
@@ -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;