brcmfmac: fix bug in determining phy bands.
authorHante Meuleman <meuleman@broadcom.com>
Wed, 19 Sep 2012 20:21:13 +0000 (22:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Sep 2012 19:02:06 +0000 (15:02 -0400)
This patch fixes a bug in routine where phy bands are determined.

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/wl_cfg80211.c

index 83e29ff78724d6423225bf9634ac4756df86309b..078e293c05edb438049e97bceaf7da38ea28e59d 100644 (file)
@@ -4539,7 +4539,7 @@ static s32 wl_update_wiphybands(struct brcmf_cfg80211_priv *cfg_priv)
                return err;
        }
 
-       phy = ((char *)&phy_list)[1];
+       phy = ((char *)&phy_list)[0];
        WL_INFO("%c phy\n", phy);
        if (phy == 'n' || phy == 'a') {
                wiphy = cfg_to_wiphy(cfg_priv);