diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-11-18 07:27:58 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-24 16:19:33 -0500 |
commit | c0f05b9879a324937f14270e4a14d661d2beca63 (patch) | |
tree | a59ad1d03d6c5da155d96babe6dd2310283ab790 /drivers/net/wireless/b43 | |
parent | 69a3229edcf0c354e1cd93a811843fba7b6e1472 (diff) |
b43: N-PHY: minor fixes to match specs
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_n.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index afbfdf0ee6e0..fce5232336b4 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -876,7 +876,7 @@ static void b43_nphy_adjust_lna_gain_table(struct b43_wldev *dev) | |||
876 | data[2] = lna_gain[2] + gain[i]; | 876 | data[2] = lna_gain[2] + gain[i]; |
877 | data[3] = lna_gain[3] + gain[i]; | 877 | data[3] = lna_gain[3] + gain[i]; |
878 | } | 878 | } |
879 | b43_ntab_write_bulk(dev, B43_NTAB16(10, 8), 4, data); | 879 | b43_ntab_write_bulk(dev, B43_NTAB16(i, 8), 4, data); |
880 | 880 | ||
881 | minmax[i] = 23 + gain[i]; | 881 | minmax[i] = 23 + gain[i]; |
882 | } | 882 | } |
@@ -896,6 +896,7 @@ static void b43_nphy_gain_ctrl_workarounds(struct b43_wldev *dev) | |||
896 | struct b43_phy_n *nphy = dev->phy.n; | 896 | struct b43_phy_n *nphy = dev->phy.n; |
897 | u8 i, j; | 897 | u8 i, j; |
898 | u8 code; | 898 | u8 code; |
899 | u16 tmp; | ||
899 | 900 | ||
900 | /* TODO: for PHY >= 3 | 901 | /* TODO: for PHY >= 3 |
901 | s8 *lna1_gain, *lna2_gain; | 902 | s8 *lna1_gain, *lna2_gain; |
@@ -1000,9 +1001,11 @@ static void b43_nphy_gain_ctrl_workarounds(struct b43_wldev *dev) | |||
1000 | for (i = 0; i < 4; i++) { | 1001 | for (i = 0; i < 4; i++) { |
1001 | b43_phy_write(dev, B43_NPHY_TABLE_ADDR, | 1002 | b43_phy_write(dev, B43_NPHY_TABLE_ADDR, |
1002 | (0x0400 * i) + 0x0020); | 1003 | (0x0400 * i) + 0x0020); |
1003 | for (j = 0; j < 21; j++) | 1004 | for (j = 0; j < 21; j++) { |
1005 | tmp = j * (i < 2 ? 3 : 1); | ||
1004 | b43_phy_write(dev, | 1006 | b43_phy_write(dev, |
1005 | B43_NPHY_TABLE_DATALO, 3 * j); | 1007 | B43_NPHY_TABLE_DATALO, tmp); |
1008 | } | ||
1006 | } | 1009 | } |
1007 | 1010 | ||
1008 | b43_nphy_set_rf_sequence(dev, 5, | 1011 | b43_nphy_set_rf_sequence(dev, 5, |