aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2013-03-16 18:57:10 -0400
committerRafał Miłecki <zajec5@gmail.com>2013-04-23 06:27:55 -0400
commitdc3c4e127168dff9dbef0b22351b592a81fe5bfb (patch)
tree18b5d375c9a6f1dccfc969e1ad570564cce686c0
parent9cfc17cbbf20af09ec4bd941338416bfb78d3a25 (diff)
b43: HT-PHY: do some extra TSSI setup after configuring TX
After b43_phy_ht_tx_power_ctl_setup there are some extra radio ops: radio_read(0x08bf) -> 0x0001 radio_write(0x08bf) <- 0x0001 radio_write(0x0159) <- 0x0011 On N-PHY we write 0x11 to TSSI regs, so it's probably sth similar. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
-rw-r--r--drivers/net/wireless/b43/phy_ht.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_ht.c b/drivers/net/wireless/b43/phy_ht.c
index fd9e249e95b8..1caeedc8f686 100644
--- a/drivers/net/wireless/b43/phy_ht.c
+++ b/drivers/net/wireless/b43/phy_ht.c
@@ -562,6 +562,18 @@ static void b43_phy_ht_tx_power_ctl_idle_tssi(struct b43_wldev *dev)
562 } 562 }
563} 563}
564 564
565static void b43_phy_ht_tssi_setup(struct b43_wldev *dev)
566{
567 static const u16 routing[] = { R2059_C1, R2059_C2, R2059_C3, };
568 int core;
569
570 /* 0x159 is probably TX_SSI_MUX or TSSIG (by comparing to N-PHY) */
571 for (core = 0; core < 3; core++) {
572 b43_radio_set(dev, 0x8bf, 0x1);
573 b43_radio_write(dev, routing[core] | 0x0159, 0x0011);
574 }
575}
576
565static void b43_phy_ht_tx_power_ctl_setup(struct b43_wldev *dev) 577static void b43_phy_ht_tx_power_ctl_setup(struct b43_wldev *dev)
566{ 578{
567 struct b43_phy_ht *phy_ht = dev->phy.ht; 579 struct b43_phy_ht *phy_ht = dev->phy.ht;
@@ -955,6 +967,7 @@ static int b43_phy_ht_op_init(struct b43_wldev *dev)
955 b43_phy_ht_tx_power_ctl(dev, false); 967 b43_phy_ht_tx_power_ctl(dev, false);
956 b43_phy_ht_tx_power_ctl_idle_tssi(dev); 968 b43_phy_ht_tx_power_ctl_idle_tssi(dev);
957 b43_phy_ht_tx_power_ctl_setup(dev); 969 b43_phy_ht_tx_power_ctl_setup(dev);
970 b43_phy_ht_tssi_setup(dev);
958 b43_phy_ht_tx_power_ctl(dev, saved_tx_pwr_ctl); 971 b43_phy_ht_tx_power_ctl(dev, saved_tx_pwr_ctl);
959 972
960 return 0; 973 return 0;