* [PATCH] ath9k_hw: Fix fast clock support for AR9280 v2.0+
@ 2011-08-30 10:25 Rajkumar Manoharan
2011-08-30 10:44 ` Felix Fietkau
0 siblings, 1 reply; 2+ messages in thread
From: Rajkumar Manoharan @ 2011-08-30 10:25 UTC (permalink / raw)
To: linville
Cc: linux-wireless, Rajkumar Manoharan, stable, Adrian Chadd,
Felix Fietkau
To enable fast clock support on 5GHz for AR9280 v2.0+ chips,
mac version alone is not sufficient. It also depends on eeprom
values.
Cc: stable@kernel.org
Cc: Adrian Chadd <adrian@freebsd.org>
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
---
drivers/net/wireless/ath/ath9k/hw.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 284d2a4..d8d776f9 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -2184,7 +2184,10 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
pCap->hw_caps |= ATH9K_HW_CAP_PAPRD;
} else {
pCap->tx_desc_len = sizeof(struct ath_desc);
- if (AR_SREV_9280_20(ah))
+ if (AR_SREV_9280_20(ah) &&
+ ((ah->eep_ops->get_eeprom(ah, EEP_MINOR_REV) <=
+ AR5416_EEP_MINOR_VER_16) ||
+ ah->eep_ops->get_eeprom(ah, EEP_FSTCLK_5G)))
pCap->hw_caps |= ATH9K_HW_CAP_FASTCLOCK;
}
--
1.7.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath9k_hw: Fix fast clock support for AR9280 v2.0+
2011-08-30 10:25 [PATCH] ath9k_hw: Fix fast clock support for AR9280 v2.0+ Rajkumar Manoharan
@ 2011-08-30 10:44 ` Felix Fietkau
0 siblings, 0 replies; 2+ messages in thread
From: Felix Fietkau @ 2011-08-30 10:44 UTC (permalink / raw)
To: Rajkumar Manoharan; +Cc: linville, linux-wireless, Adrian Chadd
On 2011-08-30 12:25 PM, Rajkumar Manoharan wrote:
> To enable fast clock support on 5GHz for AR9280 v2.0+ chips,
> mac version alone is not sufficient. It also depends on eeprom
> values.
No, it doesn't. The check is bogus, even though it's present in the
internal atheros codebase. All AR9280 can do fastclock even though on
some the EEPROM flag is disabled.
- Felix
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-30 10:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30 10:25 [PATCH] ath9k_hw: Fix fast clock support for AR9280 v2.0+ Rajkumar Manoharan
2011-08-30 10:44 ` Felix Fietkau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).