diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-01-15 09:51:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-15 17:05:40 -0500 |
commit | fe3e46e881daad2c7e3886e767bda90871d5f4d6 (patch) | |
tree | f3566a5bac6facd38102e5c10bd6e51cbde70d3b /drivers/net/wireless | |
parent | b0022e15cc39abebd997fefa18cf3b6e141f76bd (diff) |
b43: N-PHY: add TX LP FBW (TX filter 40 related)
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 | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index e21526f2f24c..242f16d489fa 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -378,6 +378,28 @@ static void b43_nphy_pa_override(struct b43_wldev *dev, bool enable) | |||
378 | } | 378 | } |
379 | } | 379 | } |
380 | 380 | ||
381 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/TxLpFbw */ | ||
382 | static void b43_nphy_tx_lp_fbw(struct b43_wldev *dev) | ||
383 | { | ||
384 | struct b43_phy_n *nphy = dev->phy.n; | ||
385 | u16 tmp; | ||
386 | enum ieee80211_band band = b43_current_band(dev->wl); | ||
387 | bool ipa = (nphy->ipa2g_on && band == IEEE80211_BAND_2GHZ) || | ||
388 | (nphy->ipa5g_on && band == IEEE80211_BAND_5GHZ); | ||
389 | |||
390 | if (dev->phy.rev >= 3) { | ||
391 | if (ipa) { | ||
392 | tmp = 4; | ||
393 | b43_phy_write(dev, B43_NPHY_TXF_40CO_B32S2, | ||
394 | (((((tmp << 3) | tmp) << 3) | tmp) << 3) | tmp); | ||
395 | } | ||
396 | |||
397 | tmp = 1; | ||
398 | b43_phy_write(dev, B43_NPHY_TXF_40CO_B1S2, | ||
399 | (((((tmp << 3) | tmp) << 3) | tmp) << 3) | tmp); | ||
400 | } | ||
401 | } | ||
402 | |||
381 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/BmacPhyClkFgc */ | 403 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/BmacPhyClkFgc */ |
382 | static void b43_nphy_bmac_clock_fgc(struct b43_wldev *dev, bool force) | 404 | static void b43_nphy_bmac_clock_fgc(struct b43_wldev *dev, bool force) |
383 | { | 405 | { |
@@ -1494,7 +1516,7 @@ int b43_phy_initn(struct b43_wldev *dev) | |||
1494 | b43_phy_write(dev, B43_NPHY_TXMACDELAY, 0x0320); | 1516 | b43_phy_write(dev, B43_NPHY_TXMACDELAY, 0x0320); |
1495 | if (phy->rev >= 3 && phy->rev <= 6) | 1517 | if (phy->rev >= 3 && phy->rev <= 6) |
1496 | b43_phy_write(dev, B43_NPHY_PLOAD_CSENSE_EXTLEN, 0x0014); | 1518 | b43_phy_write(dev, B43_NPHY_PLOAD_CSENSE_EXTLEN, 0x0014); |
1497 | /* b43_nphy_tx_lp_fbw(dev); */ | 1519 | b43_nphy_tx_lp_fbw(dev); |
1498 | /* TODO N PHY Spur Workaround */ | 1520 | /* TODO N PHY Spur Workaround */ |
1499 | 1521 | ||
1500 | b43err(dev->wl, "IEEE 802.11n devices are not supported, yet.\n"); | 1522 | b43err(dev->wl, "IEEE 802.11n devices are not supported, yet.\n"); |