When calculating transmission power for boards without hardware power
control, we fail to set the phy parameters to the new values we have
calculated.
Signed-off-by: Will Dyson <[EMAIL PROTECTED]>
diff --git a/drivers/net/wireless/mac80211/bcm43xx/bcm43xx_phy.c
b/drivers/net/wireless/mac80211/bcm43xx/bcm43xx_phy.c
index 24855d6..f246cab 100644
--- a/drivers/net/wireless/mac80211/bcm43xx/bcm43xx_phy.c
+++ b/drivers/net/wireless/mac80211/bcm43xx/bcm43xx_phy.c
@@ -2121,6 +2121,9 @@ void bcm43xx_phy_xmitpower(struct bcm43xx_wldev *dev)
phy->tx_control = tx_control;
bcm43xx_put_attenuation_into_ranges(dev, &bbatt, &rfatt);
+ phy->bbatt.att = bbatt;
+ phy->rfatt.att = rfatt;
+
bcm43xx_phy_lock(dev, phylock_flags);
bcm43xx_radio_lock(dev);
bcm43xx_set_txpower_g(dev, &phy->bbatt, &phy->rfatt,
phy->tx_control);
--
1.5.2.4
_______________________________________________
Bcm43xx-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev