[OpenWrt-Devel] [PATCH 4/4] mac80211: ath9k: enable hw manual peak calibration for QCA9561

Matthias Schiffer mschiffer at universe-factory.net
Tue Sep 1 11:13:23 EDT 2015


On 09/01/2015 06:21 AM, miaoqing at qti.qualcomm.com wrote:
> From: Miaoqing Pan <miaoqing at codeaurora.org>
> 
> This patch fix https://lists.openwrt.org/pipermail/openwrt-devel/
> 2015-August/034979.html. As the peak detect calibration is set
> incorrectly.
> 
> Signed-off-by: Miaoqing Pan <miaoqing at codeaurora.org>

Tested-by: Matthias Schiffer <mschiffer at universe-factory.net>

Thanks a lot :)

> ---
>  ...6-ath9k_enable_hw_manual_peak_calibration.patch | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
>  create mode 100644 package/kernel/mac80211/patches/546-ath9k_enable_hw_manual_peak_calibration.patch
> 
> diff --git a/package/kernel/mac80211/patches/546-ath9k_enable_hw_manual_peak_calibration.patch b/package/kernel/mac80211/patches/546-ath9k_enable_hw_manual_peak_calibration.patch
> new file mode 100644
> index 0000000..8606493
> --- /dev/null
> +++ b/package/kernel/mac80211/patches/546-ath9k_enable_hw_manual_peak_calibration.patch
> @@ -0,0 +1,22 @@
> +--- a/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> ++++ b/drivers/net/wireless/ath/ath9k/ar9003_calib.c
> +@@ -1249,7 +1249,8 @@ static void ar9003_hw_manual_peak_cal(struct ath_hw *ah, u8 chain, bool is_2g)
> + 		REG_RMW_FIELD(ah, AR_PHY_65NM_RXRF_AGC(chain),
> + 			      AR_PHY_65NM_RXRF_AGC_AGC2G_CALDAC_OVR, 0x0);
> + 
> +-	if (AR_SREV_9003_PCOEM(ah) || AR_SREV_9550(ah) || AR_SREV_9531(ah)) {
> ++	if (AR_SREV_9003_PCOEM(ah) || AR_SREV_9550(ah) || AR_SREV_9531(ah) ||
> ++	    AR_SREV_9561(ah)) {
> + 		if (is_2g)
> + 			REG_RMW_FIELD(ah, AR_PHY_65NM_RXRF_AGC(chain),
> + 				      AR_PHY_65NM_RXRF_AGC_AGC2G_DBDAC_OVR,
> +@@ -1640,7 +1641,8 @@ static bool ar9003_hw_init_cal_soc(struct ath_hw *ah,
> + 
> + skip_tx_iqcal:
> + 	if (run_agc_cal || !(ah->ah_flags & AH_FASTCC)) {
> +-		if (AR_SREV_9330_11(ah) || AR_SREV_9531(ah) || AR_SREV_9550(ah)) {
> ++		if (AR_SREV_9330_11(ah) || AR_SREV_9531(ah) || AR_SREV_9550(ah) ||
> ++		    AR_SREV_9561(ah)) {
> + 			for (i = 0; i < AR9300_MAX_CHAINS; i++) {
> + 				if (!(ah->rxchainmask & (1 << i)))
> + 					continue;
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150901/42eb78e2/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list