ath9k: Add a HW flag for FCC
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 16 Jul 2013 06:33:18 +0000 (12:03 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:42 +0000 (16:54 -0400)
Fast Channel Change across 2G/5G bands is supported
only by AR9462 and AR9565. Add a HW capability field
to indicate this.

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.c
drivers/net/wireless/ath/ath9k/hw.h

index e420c6ba62a74dafa2634d2885a10e9a62080a80..f353bbd36857f2e985417c4e7e59bab31d969ec3 100644 (file)
@@ -2610,6 +2610,13 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
            ah->eep_ops->get_eeprom(ah, EEP_PAPRD))
                        pCap->hw_caps |= ATH9K_HW_CAP_PAPRD;
 
+       /*
+        * Fast channel change across bands is available
+        * only for AR9462 and AR9565.
+        */
+       if (AR_SREV_9462(ah) || AR_SREV_9565(ah))
+               pCap->hw_caps |= ATH9K_HW_CAP_FCC_BAND_SWITCH;
+
        return 0;
 }
 
index cd74b3afef7db179fc4fcedc23eaa509722da52c..fd009e593b69570aaf4d8b3d9d680124444dd855 100644 (file)
@@ -247,6 +247,7 @@ enum ath9k_hw_caps {
        ATH9K_HW_CAP_DFS                        = BIT(16),
        ATH9K_HW_WOW_DEVICE_CAPABLE             = BIT(17),
        ATH9K_HW_CAP_PAPRD                      = BIT(18),
+       ATH9K_HW_CAP_FCC_BAND_SWITCH            = BIT(19),
 };
 
 /*