Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

brcm80211: smac: fix unintended fallthru in wlc_phy_radio_init_2057()

The radio initialization for 2057 rev 5 was using the incorrect
register table for the initialization. This patch fixes that.

Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Alwin Beukers <alwin@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Arend van Spriel and committed by
John W. Linville
1570e53c 14433f4d

+3 -4
+3 -4
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_n.c
··· 19989 19989 switch (pi->pubpi.radiorev) { 19990 19990 case 5: 19991 19991 19992 - if (pi->pubpi.radiover == 0x0) 19992 + if (NREV_IS(pi->pubpi.phy_rev, 8)) 19993 19993 regs_2057_ptr = regs_2057_rev5; 19994 - else if (pi->pubpi.radiover == 0x1) 19994 + else if (NREV_IS(pi->pubpi.phy_rev, 9)) 19995 19995 regs_2057_ptr = regs_2057_rev5v1; 19996 - else 19997 - break; 19996 + break; 19998 19997 19999 19998 case 7: 20000 19999