OrangePi_CM5/drivers/net/wireless/broadcom/b43
Colin Ian King 14a296eab6 b43: N-PHY: Fix the update of coef for the PHY revision >= 3case
[ Upstream commit 4773acf3d4b50768bf08e9e97a204819e9ea0895 ]

The documentation for the PHY update [1] states:

Loop 4 times with index i

    If PHY Revision >= 3
        Copy table[i] to coef[i]
    Otherwise
        Set coef[i] to 0

the copy of the table to coef is currently implemented the wrong way
around, table is being updated from uninitialized values in coeff.
Fix this by swapping the assignment around.

[1] https://bcm-v4.sipsolutions.net/802.11/PHY/N/RestoreCal/

Fixes: 2f258b74d1 ("b43: N-PHY: implement restoring general configuration")
Addresses-Coverity: ("Uninitialized scalar variable")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:34 +01:00
..
Kconfig
…
Makefile
…
b43.h
…
bus.c
…
bus.h
…
debugfs.c
…
debugfs.h
…
dma.c
…
dma.h
…
leds.c
…
leds.h
…
lo.c
…
lo.h
…
main.c
…
main.h
…
phy_a.h
…
phy_ac.c
…
phy_ac.h
…
phy_common.c
…
phy_common.h
…
phy_g.c
…
phy_g.h
…
phy_ht.c
…
phy_ht.h
…
phy_lcn.c
…
phy_lcn.h
…
phy_lp.c
…
phy_lp.h
…
phy_n.c
…
phy_n.h
…
pio.c
…
pio.h
…
ppr.c
…
ppr.h
…
radio_2055.c
…
radio_2055.h
…
radio_2056.c
…
radio_2056.h
…
radio_2057.c
…
radio_2057.h
…
radio_2059.c
…
radio_2059.h
…
rfkill.c
…
rfkill.h
…
sdio.c
…
sdio.h
…
sysfs.c
…
sysfs.h
…
tables.c
…
tables.h
…
tables_lpphy.c
…
tables_lpphy.h
…
tables_nphy.c
…
tables_nphy.h
…
tables_phy_ht.c
…
tables_phy_ht.h
…
tables_phy_lcn.c
…
tables_phy_lcn.h
…
wa.c
…
wa.h
…
xmit.c
…
xmit.h
…