302-ath9k_hw-set-spectral-scan-enable-bit-on-trigger-for.patch 667 B

123456789101112131415161718192021
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Mon, 11 Jul 2016 12:07:40 +0200
  3. Subject: [PATCH] ath9k_hw: set spectral scan enable bit on trigger for
  4. AR9003+
  5. AR9002 code and QCA AR9003+ code do the same.
  6. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  7. ---
  8. --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
  9. +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
  10. @@ -1800,6 +1800,8 @@ static void ar9003_hw_spectral_scan_conf
  11. static void ar9003_hw_spectral_scan_trigger(struct ath_hw *ah)
  12. {
  13. + REG_SET_BIT(ah, AR_PHY_SPECTRAL_SCAN,
  14. + AR_PHY_SPECTRAL_SCAN_ENABLE);
  15. /* Activate spectral scan */
  16. REG_SET_BIT(ah, AR_PHY_SPECTRAL_SCAN,
  17. AR_PHY_SPECTRAL_SCAN_ACTIVE);