diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-08-31 21:36:21 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-13 19:53:46 (GMT) |
commit | cf577fc242ea5295f676ae3bf9ecb524d78d9e77 (patch) | |
tree | 7590e81be8e87765b8accf497631fec66d0677d1 /drivers/net/wireless/b43/tables_phy_lcn.c | |
parent | bce4dc4a5d6c0ec9b40e353023a4bb30f791dfd2 (diff) | |
download | linux-fsl-qoriq-cf577fc242ea5295f676ae3bf9ecb524d78d9e77.tar.xz |
b43: LCN-PHY: add conditions for few operations
It was not possible to guess the conditions from MMIO dumps. Take them
from brcmsmac code.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/tables_phy_lcn.c')
-rw-r--r-- | drivers/net/wireless/b43/tables_phy_lcn.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/tables_phy_lcn.c b/drivers/net/wireless/b43/tables_phy_lcn.c index c62a940..7bf7057 100644 --- a/drivers/net/wireless/b43/tables_phy_lcn.c +++ b/drivers/net/wireless/b43/tables_phy_lcn.c @@ -501,9 +501,15 @@ void b43_phy_lcn_tables_init(struct b43_wldev *dev) { b43_phy_lcn_upload_static_tables(dev); /* TODO: various tables ops here */ - b43_lcntab_write_bulk(dev, B43_LCNTAB16(0xf, 0), + + if (dev->dev->bus_sprom->boardflags_lo & B43_BFL_FEM && + !(dev->dev->bus_sprom->boardflags_hi & B43_BFH_FEM_BT)) + b43_lcntab_write_bulk(dev, B43_LCNTAB16(0xf, 0), ARRAY_SIZE(b43_lcntab_sw_ctl_4313_epa_rev0), b43_lcntab_sw_ctl_4313_epa_rev0); + else + b43err(dev->wl, "SW ctl table is unknown for this card\n"); + /* TODO: various tables ops here */ b43_phy_lcn_rewrite_tables(dev); b43_phy_lcn_clean_papd_comp_table(dev); |