summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2010-11-18 13:28:00 +0100
committerJohn W. Linville <linville@tuxdriver.com>2010-11-24 16:19:33 -0500
commitbec186452b4cfecff9e2c579bfd4016119d39614 (patch)
tree11a526df0c046715eb2c19b03c7778c211faec67 /drivers
parenta5d3598de086cd38f71fe2fec43ac3ca97bb24bb (diff)
downloadlinux-stable-bec186452b4cfecff9e2c579bfd4016119d39614.tar.gz
linux-stable-bec186452b4cfecff9e2c579bfd4016119d39614.tar.bz2
linux-stable-bec186452b4cfecff9e2c579bfd4016119d39614.zip
b43: N-PHY: init BPHY when needed
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/b43/phy_n.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c
index cbdee308bb50..d52d51491055 100644
--- a/drivers/net/wireless/b43/phy_n.c
+++ b/drivers/net/wireless/b43/phy_n.c
@@ -1573,6 +1573,7 @@ static void b43_nphy_rf_control_intc_override(struct b43_wldev *dev, u8 field,
}
}
+/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/BPHYInit */
static void b43_nphy_bphy_init(struct b43_wldev *dev)
{
unsigned int i;
@@ -3240,6 +3241,9 @@ int b43_phy_initn(struct b43_wldev *dev)
b43_nphy_classifier(dev, 0, 0);
b43_nphy_read_clip_detection(dev, clip);
+ if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ)
+ b43_nphy_bphy_init(dev);
+
tx_pwr_state = nphy->txpwrctrl;
/* TODO N PHY TX power control with argument 0
(turning off power control) */