From: Rafał Miłecki Date: Thu, 18 Nov 2010 12:28:00 +0000 (+0100) Subject: b43: N-PHY: init BPHY when needed X-Git-Tag: v2.6.38-rc1~476^2~169^2^2~193 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bec186452b4cfecff9e2c579bfd4016119d39614;p=platform%2Fkernel%2Flinux-3.10.git b43: N-PHY: init BPHY when needed Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index cbdee30..d52d514 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) */