aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/tables_phy_lcn.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-08-31 17:36:21 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-13 15:53:46 -0400
commitcf577fc242ea5295f676ae3bf9ecb524d78d9e77 (patch)
tree7590e81be8e87765b8accf497631fec66d0677d1 /drivers/net/wireless/b43/tables_phy_lcn.c
parentbce4dc4a5d6c0ec9b40e353023a4bb30f791dfd2 (diff)
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.c8
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 c62a94082bca..7bf70578b5c2 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)
501{ 501{
502 b43_phy_lcn_upload_static_tables(dev); 502 b43_phy_lcn_upload_static_tables(dev);
503 /* TODO: various tables ops here */ 503 /* TODO: various tables ops here */
504 b43_lcntab_write_bulk(dev, B43_LCNTAB16(0xf, 0), 504
505 if (dev->dev->bus_sprom->boardflags_lo & B43_BFL_FEM &&
506 !(dev->dev->bus_sprom->boardflags_hi & B43_BFH_FEM_BT))
507 b43_lcntab_write_bulk(dev, B43_LCNTAB16(0xf, 0),
505 ARRAY_SIZE(b43_lcntab_sw_ctl_4313_epa_rev0), 508 ARRAY_SIZE(b43_lcntab_sw_ctl_4313_epa_rev0),
506 b43_lcntab_sw_ctl_4313_epa_rev0); 509 b43_lcntab_sw_ctl_4313_epa_rev0);
510 else
511 b43err(dev->wl, "SW ctl table is unknown for this card\n");
512
507 /* TODO: various tables ops here */ 513 /* TODO: various tables ops here */
508 b43_phy_lcn_rewrite_tables(dev); 514 b43_phy_lcn_rewrite_tables(dev);
509 b43_phy_lcn_clean_papd_comp_table(dev); 515 b43_phy_lcn_clean_papd_comp_table(dev);