* [PATCH FIX] b43: fix support for 14e4:4321 PCI dev with BCM4321 chipset
@ 2015-06-06 20:45 Rafał Miłecki
2015-06-08 8:22 ` Kalle Valo
2015-06-08 11:33 ` Kalle Valo
0 siblings, 2 replies; 3+ messages in thread
From: Rafał Miłecki @ 2015-06-06 20:45 UTC (permalink / raw)
To: Kalle Valo, linux-wireless
Cc: Hauke Mehrtens, Rafał Miłecki, stable
It seems Broadcom released two devices with conflicting device id. There
are for sure 14e4:4321 PCI devices with BCM4321 (N-PHY) chipset, they
can be found in routers, e.g. Netgear WNR834Bv2. However, according to
Broadcom public sources 0x4321 is also used for 5 GHz BCM4306 (G-PHY).
It's unsure if they meant PCI device id, or "virtual" id (from SPROM).
To distinguish these devices lets check PHY type (G vs. N).
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: <stable@vger.kernel.org> # 3.16+
---
Kalle: I'm aware it's quite late for a 4.1 fix, this bug was reported just
today. I guess you can just take it for wireless-drivers-next and let stable
guys handle it.
---
drivers/net/wireless/b43/main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index f409929..9556454 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -5361,6 +5361,10 @@ static void b43_supported_bands(struct b43_wldev *dev, bool *have_2ghz_phy,
*have_5ghz_phy = true;
return;
case 0x4321: /* BCM4306 */
+ /* There are 14e4:4321 PCI devs with 2.4 GHz BCM4321 (N-PHY) */
+ if (dev->phy.type != B43_PHYTYPE_G)
+ break;
+ /* fall through */
case 0x4313: /* BCM4311 */
case 0x431a: /* BCM4318 */
case 0x432a: /* BCM4321 */
--
1.8.4.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH FIX] b43: fix support for 14e4:4321 PCI dev with BCM4321 chipset
2015-06-06 20:45 [PATCH FIX] b43: fix support for 14e4:4321 PCI dev with BCM4321 chipset Rafał Miłecki
@ 2015-06-08 8:22 ` Kalle Valo
2015-06-08 11:33 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2015-06-08 8:22 UTC (permalink / raw)
To: Rafał Miłecki; +Cc: linux-wireless, Hauke Mehrtens, stable
Rafał Miłecki <zajec5@gmail.com> writes:
> It seems Broadcom released two devices with conflicting device id. There
> are for sure 14e4:4321 PCI devices with BCM4321 (N-PHY) chipset, they
> can be found in routers, e.g. Netgear WNR834Bv2. However, according to
> Broadcom public sources 0x4321 is also used for 5 GHz BCM4306 (G-PHY).
> It's unsure if they meant PCI device id, or "virtual" id (from SPROM).
> To distinguish these devices lets check PHY type (G vs. N).
>
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
> Cc: <stable@vger.kernel.org> # 3.16+
> ---
> Kalle: I'm aware it's quite late for a 4.1 fix, this bug was reported just
> today. I guess you can just take it for wireless-drivers-next and let stable
> guys handle it.
Yeah, I don't think this is critical enough to send this to 4.1. So
let's push this via wireless-drivers-next.
--
Kalle Valo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH FIX] b43: fix support for 14e4:4321 PCI dev with BCM4321 chipset
2015-06-06 20:45 [PATCH FIX] b43: fix support for 14e4:4321 PCI dev with BCM4321 chipset Rafał Miłecki
2015-06-08 8:22 ` Kalle Valo
@ 2015-06-08 11:33 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2015-06-08 11:33 UTC (permalink / raw)
To: Rafał Miłecki; +Cc: linux-wireless, Hauke Mehrtens, stable
Rafał Miłecki <zajec5@gmail.com> writes:
> It seems Broadcom released two devices with conflicting device id. There
> are for sure 14e4:4321 PCI devices with BCM4321 (N-PHY) chipset, they
> can be found in routers, e.g. Netgear WNR834Bv2. However, according to
> Broadcom public sources 0x4321 is also used for 5 GHz BCM4306 (G-PHY).
> It's unsure if they meant PCI device id, or "virtual" id (from SPROM).
> To distinguish these devices lets check PHY type (G vs. N).
>
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
> Cc: <stable@vger.kernel.org> # 3.16+
Thanks, applied manually.
--
Kalle Valo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-08 11:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-06 20:45 [PATCH FIX] b43: fix support for 14e4:4321 PCI dev with BCM4321 chipset Rafał Miłecki
2015-06-08 8:22 ` Kalle Valo
2015-06-08 11:33 ` Kalle Valo
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).