summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/link.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2012-12-10 07:22:37 +0530
committerJohn W. Linville <linville@tuxdriver.com>2012-12-10 15:49:50 -0500
commit0f21ee8d9c8a041b974cfb75d81d07b61bd0869f (patch)
tree98f302397e27e08b361d3e2233616720a4fb46a3 /drivers/net/wireless/ath/ath9k/link.c
parentd882d242e4bfb2016e611a5aab0112fcece7a8ac (diff)
downloadop-kernel-dev-0f21ee8d9c8a041b974cfb75d81d07b61bd0869f.zip
op-kernel-dev-0f21ee8d9c8a041b974cfb75d81d07b61bd0869f.tar.gz
ath9k_hw: Add HW cap for PAPRD
Add a HW capability to indicate whether PAPRD is enabled for the card, since PAPRD could be enabled in the EEPROM, but disabled in the driver. This makes things clearer. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/link.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/link.c b/drivers/net/wireless/ath/ath9k/link.c
index c70b31a..ade3afb 100644
--- a/drivers/net/wireless/ath/ath9k/link.c
+++ b/drivers/net/wireless/ath/ath9k/link.c
@@ -435,7 +435,7 @@ set_timer:
mod_timer(&common->ani.timer, jiffies + msecs_to_jiffies(cal_interval));
- if (ah->eep_ops->get_eeprom(ah, EEP_PAPRD) && ah->caldata) {
+ if (ar9003_is_paprd_enabled(ah) && ah->caldata) {
if (!ah->caldata->paprd_done) {
ieee80211_queue_work(sc->hw, &sc->paprd_work);
} else if (!ah->paprd_table_write_done) {
OpenPOWER on IntegriCloud