diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-03-07 10:47:27 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-13 14:27:53 -0400 |
commit | 4969b41798e512689bba57c8c44d873216eba814 (patch) | |
tree | 8b18a8a4444ac28fc0e84a83c2a5d14723f69d33 /drivers/net/wireless/b43 | |
parent | 5949e040604128106db1421ab7a73efcc5351809 (diff) |
b43: HT-PHY: enable basic TX power setup
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')
-rw-r--r-- | drivers/net/wireless/b43/phy_ht.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/b43/phy_ht.c b/drivers/net/wireless/b43/phy_ht.c index 5e098b844a60..b8667706fc27 100644 --- a/drivers/net/wireless/b43/phy_ht.c +++ b/drivers/net/wireless/b43/phy_ht.c | |||
@@ -297,7 +297,6 @@ static void b43_phy_ht_bphy_init(struct b43_wldev *dev) | |||
297 | * Samples | 297 | * Samples |
298 | **************************************************/ | 298 | **************************************************/ |
299 | 299 | ||
300 | #if 0 | ||
301 | static void b43_phy_ht_stop_playback(struct b43_wldev *dev) | 300 | static void b43_phy_ht_stop_playback(struct b43_wldev *dev) |
302 | { | 301 | { |
303 | struct b43_phy_ht *phy_ht = dev->phy.ht; | 302 | struct b43_phy_ht *phy_ht = dev->phy.ht; |
@@ -385,13 +384,11 @@ static void b43_phy_ht_tx_tone(struct b43_wldev *dev) | |||
385 | samp = b43_phy_ht_load_samples(dev); | 384 | samp = b43_phy_ht_load_samples(dev); |
386 | b43_phy_ht_run_samples(dev, samp, 0xFFFF, 0); | 385 | b43_phy_ht_run_samples(dev, samp, 0xFFFF, 0); |
387 | } | 386 | } |
388 | #endif | ||
389 | 387 | ||
390 | /************************************************** | 388 | /************************************************** |
391 | * RSSI | 389 | * RSSI |
392 | **************************************************/ | 390 | **************************************************/ |
393 | 391 | ||
394 | #if 0 | ||
395 | static void b43_phy_ht_rssi_select(struct b43_wldev *dev, u8 core_sel, | 392 | static void b43_phy_ht_rssi_select(struct b43_wldev *dev, u8 core_sel, |
396 | u8 rssi_type) | 393 | u8 rssi_type) |
397 | { | 394 | { |
@@ -471,7 +468,6 @@ static void b43_phy_ht_poll_rssi(struct b43_wldev *dev, u8 type, s32 *buf, | |||
471 | for (i = 0; i < 12; i++) | 468 | for (i = 0; i < 12; i++) |
472 | b43_phy_write(dev, phy_regs_to_save[i], phy_regs_values[i]); | 469 | b43_phy_write(dev, phy_regs_to_save[i], phy_regs_values[i]); |
473 | } | 470 | } |
474 | #endif | ||
475 | 471 | ||
476 | /************************************************** | 472 | /************************************************** |
477 | * Tx/Rx | 473 | * Tx/Rx |
@@ -499,7 +495,6 @@ static void b43_phy_ht_tx_power_fix(struct b43_wldev *dev) | |||
499 | } | 495 | } |
500 | } | 496 | } |
501 | 497 | ||
502 | #if 0 | ||
503 | static void b43_phy_ht_tx_power_ctl(struct b43_wldev *dev, bool enable) | 498 | static void b43_phy_ht_tx_power_ctl(struct b43_wldev *dev, bool enable) |
504 | { | 499 | { |
505 | struct b43_phy_ht *phy_ht = dev->phy.ht; | 500 | struct b43_phy_ht *phy_ht = dev->phy.ht; |
@@ -665,7 +660,6 @@ static void b43_phy_ht_tx_power_ctl_setup(struct b43_wldev *dev) | |||
665 | b43_httab_write_bulk(dev, B43_HTTAB16(26 + c, 0), 64, regval); | 660 | b43_httab_write_bulk(dev, B43_HTTAB16(26 + c, 0), 64, regval); |
666 | } | 661 | } |
667 | } | 662 | } |
668 | #endif | ||
669 | 663 | ||
670 | /************************************************** | 664 | /************************************************** |
671 | * Channel switching ops. | 665 | * Channel switching ops. |
@@ -949,13 +943,10 @@ static int b43_phy_ht_op_init(struct b43_wldev *dev) | |||
949 | 943 | ||
950 | saved_tx_pwr_ctl = phy_ht->tx_pwr_ctl; | 944 | saved_tx_pwr_ctl = phy_ht->tx_pwr_ctl; |
951 | b43_phy_ht_tx_power_fix(dev); | 945 | b43_phy_ht_tx_power_fix(dev); |
952 | #if 0 | ||
953 | b43_phy_ht_tx_power_ctl(dev, false); | 946 | b43_phy_ht_tx_power_ctl(dev, false); |
954 | b43_phy_ht_tx_power_ctl_idle_tssi(dev); | 947 | b43_phy_ht_tx_power_ctl_idle_tssi(dev); |
955 | b43_phy_ht_tx_power_ctl_setup(dev); | 948 | b43_phy_ht_tx_power_ctl_setup(dev); |
956 | /* TODO */ | ||
957 | b43_phy_ht_tx_power_ctl(dev, saved_tx_pwr_ctl); | 949 | b43_phy_ht_tx_power_ctl(dev, saved_tx_pwr_ctl); |
958 | #endif | ||
959 | 950 | ||
960 | return 0; | 951 | return 0; |
961 | } | 952 | } |