brcmsmac: reinitialize TSSI power control upon channel switch
authorArend van Spriel <arend@broadcom.com>
Tue, 20 Aug 2013 14:00:45 +0000 (16:00 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 22 Aug 2013 18:30:35 +0000 (14:30 -0400)
When changing channels the TSSI based power control needs to be
reinitialized.

Tested-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c

index 2917f5c9fc1e8a9cc6a322bc8d500f127af3b0e6..8fb10485a74d63d7ada42193159eb58e59581808 100644 (file)
@@ -5019,6 +5019,8 @@ void wlc_phy_chanspec_set_lcnphy(struct brcms_phy *pi, u16 chanspec)
                wlc_lcnphy_load_tx_iir_filter(pi, true, 3);
 
        mod_phy_reg(pi, 0x4eb, (0x7 << 3), (1) << 3);
+       if (wlc_lcnphy_tssi_based_pwr_ctrl_enabled(pi))
+               wlc_lcnphy_tssi_setup(pi);
 }
 
 void wlc_phy_detach_lcnphy(struct brcms_phy *pi)