summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHante Meuleman <meuleman@broadcom.com>2012-09-19 22:21:13 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-09-24 15:02:06 -0400
commit3ba8137676eb3ca5db2df6cebc1125dd4d584292 (patch)
tree76c6a42b44a5124d89cbb32c1f61db7826f27382
parent95f59e8cbdf17aa5ba4db3fae3662c74640eed1b (diff)
downloadop-kernel-dev-3ba8137676eb3ca5db2df6cebc1125dd4d584292.zip
op-kernel-dev-3ba8137676eb3ca5db2df6cebc1125dd4d584292.tar.gz
brcmfmac: fix bug in determining phy bands.
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>
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
index 83e29ff..078e293 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
@@ -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);
OpenPOWER on IntegriCloud