Skip to contentSkip to conversation

ath9k_hw: advertise WoW support for capable chipsets

PATCH New Mohammed Shafi Shajakhan 1 participant 1 message Jul 10, 2012 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v4 4/10 ath9k_hw: advertise WoW support for capable chipsets

From: Mohammed Shafi Shajakhan <[email protected]>

support WoW for all chipsets starting from AR9280, AR9285, AR9287, AR9380, AR9382, AR9485, AR9462. Really all hardware may not support WoW even though the flag is set and the WoW working depends on your laptop, BIOS apart from the hardware.

Cc Senthil Balasubramanian <[email protected]>
Cc Rajkumar Manoharan <[email protected]>
Cc vadivel at qca.qualcomm.com
---
 drivers/net/wireless/ath/ath9k/hw.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/hw.c +8 -0
index c1659d0..9c8e0d8 100644
@@ -2589,6 +2589,14 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
 	}
 
 
+	if (AR_SREV_9280_20_OR_LATER(ah)) {
+		pCap->hw_caps |= ATH9K_HW_WOW_DEVICE_CAPABLE |
+				 ATH9K_HW_WOW_PATTERN_MATCH_EXACT;
+
+		if (AR_SREV_9280(ah))
+			pCap->hw_caps |= ATH9K_HW_WOW_PATTERN_MATCH_DWORD;
+	}
+
 	return 0;
 }
 
Signature · 1 line
1.7.0.4