linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Arend van Spriel" <arend@broadcom.com>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: "Linux Wireless List" <linux-wireless@vger.kernel.org>,
	"Hante Meuleman" <meuleman@broadcom.com>,
	"Arend van Spriel" <arend@broadcom.com>
Subject: [PATCH 08/13] brcmfmac: fix bug in determining phy bands.
Date: Wed, 19 Sep 2012 22:21:13 +0200	[thread overview]
Message-ID: <1348086078-19183-9-git-send-email-arend@broadcom.com> (raw)
In-Reply-To: <1348086078-19183-1-git-send-email-arend@broadcom.com>

From: Hante Meuleman <meuleman@broadcom.com>

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>
---
 .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c  |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
index d434934..e01ac96 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
@@ -4541,7 +4541,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);
-- 
1.7.9.5



  parent reply	other threads:[~2012-09-19 20:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-19 20:21 [PATCH 00/13] brcmfmac: scheduled scan support and cleanup work Arend van Spriel
2012-09-19 20:21 ` [PATCH 01/13] brcmfmac: fix sparse warnings in e-scan related code Arend van Spriel
2012-09-19 20:21 ` [PATCH 02/13] brcmfmac: extend brcmf_term_iscan() to abort e-scan Arend van Spriel
2012-09-19 20:21 ` [PATCH 03/13] brcmfmac: introduce scheduled scan support Arend van Spriel
2012-09-19 20:21 ` [PATCH 04/13] brcmfmac: fix debug printout of event data Arend van Spriel
2012-09-19 20:21 ` [PATCH 05/13] brcmfmac: store usb fw images in local linked list Arend van Spriel
2012-09-19 20:21 ` [PATCH 06/13] brcmfmac: streamline SDIO read frame routine Arend van Spriel
2012-09-19 20:21 ` [PATCH 07/13] brcmfmac: remove unused function Arend van Spriel
2012-09-19 20:21 ` Arend van Spriel [this message]
2012-09-19 20:21 ` [PATCH 09/13] brcmfmac: remove unused usb bmac model code Arend van Spriel
2012-09-19 20:21 ` [PATCH 10/13] brcmsmac: don't start device when RfKill is engaged Arend van Spriel
2012-09-19 20:21 ` [PATCH 11/13] brcmfmac: clear control lock on usb error Arend van Spriel
2012-09-19 20:21 ` [PATCH 12/13] brcmfmac: change struct brcmf_cfg80211_priv comments to kernel-doc Arend van Spriel
2012-09-19 20:21 ` [PATCH 13/13] brcmfmac: get rid of void pointer in struct brcmf_cfg80211_priv Arend van Spriel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1348086078-19183-9-git-send-email-arend@broadcom.com \
    --to=arend@broadcom.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=meuleman@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).