diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-01-15 09:16:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-15 17:05:38 -0500 |
commit | a67162ab00d5f0d28f58a62ccd48e6a9cab07645 (patch) | |
tree | a2e9026589c3f5ce08198e289548843c7a70cea7 /drivers/net | |
parent | 5c1a140afbd3abeec92b74c91ad495cf69af4de3 (diff) |
b43: N-PHY: implement RX IQ coeffs
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index 62ed7b7f6452..3232a465e0a5 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -408,6 +408,23 @@ static void b43_nphy_reset_cca(struct b43_wldev *dev) | |||
408 | /* TODO: N PHY Force RF Seq with argument 2 */ | 408 | /* TODO: N PHY Force RF Seq with argument 2 */ |
409 | } | 409 | } |
410 | 410 | ||
411 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RxIqCoeffs */ | ||
412 | static void b43_nphy_rx_iq_coeffs(struct b43_wldev *dev, bool write, | ||
413 | struct b43_phy_n_iq_comp *pcomp) | ||
414 | { | ||
415 | if (write) { | ||
416 | b43_phy_write(dev, B43_NPHY_C1_RXIQ_COMPA0, pcomp->a0); | ||
417 | b43_phy_write(dev, B43_NPHY_C1_RXIQ_COMPB0, pcomp->b0); | ||
418 | b43_phy_write(dev, B43_NPHY_C2_RXIQ_COMPA1, pcomp->a1); | ||
419 | b43_phy_write(dev, B43_NPHY_C2_RXIQ_COMPB1, pcomp->b1); | ||
420 | } else { | ||
421 | pcomp->a0 = b43_phy_read(dev, B43_NPHY_C1_RXIQ_COMPA0); | ||
422 | pcomp->b0 = b43_phy_read(dev, B43_NPHY_C1_RXIQ_COMPB0); | ||
423 | pcomp->a1 = b43_phy_read(dev, B43_NPHY_C2_RXIQ_COMPA1); | ||
424 | pcomp->b1 = b43_phy_read(dev, B43_NPHY_C2_RXIQ_COMPB1); | ||
425 | } | ||
426 | } | ||
427 | |||
411 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/clip-detection */ | 428 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/clip-detection */ |
412 | static void b43_nphy_write_clip_detection(struct b43_wldev *dev, u16 *clip_st) | 429 | static void b43_nphy_write_clip_detection(struct b43_wldev *dev, u16 *clip_st) |
413 | { | 430 | { |