diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-08-04 04:52:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-08-05 14:52:44 -0400 |
commit | 31fd216db9cb7a50e0e64aff813bc6c12e9437d3 (patch) | |
tree | bfddb7a9302249d1d934ba71bacdba522cd8628c /drivers/net | |
parent | 7bdea96a1bbae75e7922584e3ae37fb9ad6cb79a (diff) |
ath9k: Set SWCOM value for CUS198
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 9dc677399631..38f461c11c33 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -312,6 +312,7 @@ struct ath9k_ops_config { | |||
312 | 312 | ||
313 | /* Platform specific config */ | 313 | /* Platform specific config */ |
314 | u32 xlna_gpio; | 314 | u32 xlna_gpio; |
315 | u32 ant_ctrl_comm2g_switch_enable; | ||
315 | bool xatten_margin_cfg; | 316 | bool xatten_margin_cfg; |
316 | }; | 317 | }; |
317 | 318 | ||
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index b678add8b3ee..4afe30e0bf49 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c | |||
@@ -526,6 +526,7 @@ static void ath9k_init_platform(struct ath_softc *sc) | |||
526 | ATH9K_PCI_CUS230)) { | 526 | ATH9K_PCI_CUS230)) { |
527 | ah->config.xlna_gpio = 9; | 527 | ah->config.xlna_gpio = 9; |
528 | ah->config.xatten_margin_cfg = true; | 528 | ah->config.xatten_margin_cfg = true; |
529 | ah->config.ant_ctrl_comm2g_switch_enable = 0x000BBB88; | ||
529 | sc->ant_comb.low_rssi_thresh = 20; | 530 | sc->ant_comb.low_rssi_thresh = 20; |
530 | sc->ant_comb.fast_div_bias = 3; | 531 | sc->ant_comb.fast_div_bias = 3; |
531 | 532 | ||