brcm80211: fmac: fix SDIO function 0 register r/w issue
authorFranky Lin <frankyl@broadcom.com>
Mon, 23 Apr 2012 21:24:52 +0000 (14:24 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Apr 2012 19:20:39 +0000 (15:20 -0400)
commit1cc2699057bafc512137272e1e848640bad14a41
tree6e2c3e47297adfad4b0677261686451dc3313d7b
parent4dcc0637fc3c36c1f58ffdcaf2dc0dc7de72449f
brcm80211: fmac: fix SDIO function 0 register r/w issue

SDIO stack doesn't have a structure for function 0. The structure
pointer stored in card->sdio_func[0] is actually for function 1.
With current implementation the register read/write is applied to
function 1. This pathch fixes the issue.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Florian Fainelli <florian@openwrt.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c