diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-03-01 15:40:39 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-03-04 14:05:17 -0500 |
commit | 0f4091b9af7151cf510bcf9160e970982c883101 (patch) | |
tree | 779d93760c57029b0eb53160dcd037497b9ca989 /drivers/net/wireless | |
parent | a7a9a24dcd2c57edf148ca9a14a510a5765ecf20 (diff) |
b43: N-PHY: rev3+: correct switching analog core
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index 9f5a3c993239..6c9aa5a5850a 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -3878,10 +3878,14 @@ static void b43_nphy_op_software_rfkill(struct b43_wldev *dev, | |||
3878 | } | 3878 | } |
3879 | } | 3879 | } |
3880 | 3880 | ||
3881 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/Anacore */ | ||
3881 | static void b43_nphy_op_switch_analog(struct b43_wldev *dev, bool on) | 3882 | static void b43_nphy_op_switch_analog(struct b43_wldev *dev, bool on) |
3882 | { | 3883 | { |
3883 | b43_phy_write(dev, B43_NPHY_AFECTL_OVER, | 3884 | u16 val = on ? 0 : 0x7FFF; |
3884 | on ? 0 : 0x7FFF); | 3885 | |
3886 | if (dev->phy.rev >= 3) | ||
3887 | b43_phy_write(dev, B43_NPHY_AFECTL_OVER1, val); | ||
3888 | b43_phy_write(dev, B43_NPHY_AFECTL_OVER, val); | ||
3885 | } | 3889 | } |
3886 | 3890 | ||
3887 | static int b43_nphy_op_switch_channel(struct b43_wldev *dev, | 3891 | static int b43_nphy_op_switch_channel(struct b43_wldev *dev, |