ath9k: Set SWCOM value for CUS198
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Sun, 4 Aug 2013 08:52:01 +0000 (14:22 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 5 Aug 2013 18:52:44 +0000 (14:52 -0400)
CUS198/CUS230 cards require a custom value to be
programmed into the SWCOM register. Assign this during
init time.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/init.c

index 9dc67739963163640aeb9c1d6e3ad01ee8843dbf..38f461c11c3326dc7c6e51f8daed5143216a868c 100644 (file)
@@ -312,6 +312,7 @@ struct ath9k_ops_config {
 
        /* Platform specific config */
        u32 xlna_gpio;
+       u32 ant_ctrl_comm2g_switch_enable;
        bool xatten_margin_cfg;
 };
 
index b678add8b3eecfe956de221a739ee2a079d26130..4afe30e0bf49e9b95a835221075f0f1b631bb00a 100644 (file)
@@ -526,6 +526,7 @@ static void ath9k_init_platform(struct ath_softc *sc)
                               ATH9K_PCI_CUS230)) {
                ah->config.xlna_gpio = 9;
                ah->config.xatten_margin_cfg = true;
+               ah->config.ant_ctrl_comm2g_switch_enable = 0x000BBB88;
                sc->ant_comb.low_rssi_thresh = 20;
                sc->ant_comb.fast_div_bias = 3;