Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfa2b42b authored by Miaoqing Pan's avatar Miaoqing Pan Committed by Kalle Valo
Browse files

ath9k: fix QCA9561 XLNA rxgain initial



A small bugfix for commit ede6a5e7 ("ath9k: Add QCA956x HW support").
I guess I would have skipped renaming (that initial QCA956x commit has
been there already for almost a year with the "5g" in the name) and move
the call outside AR_SREV_9462_20_OR_LATER() to make it reachable.

Signed-off-by: default avatarMiaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 871d0051
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -929,16 +929,15 @@ static int ar9003_hw_process_ini(struct ath_hw *ah,
			REG_WRITE_ARRAY(&ah->ini_modes_rxgain_xlna,
			REG_WRITE_ARRAY(&ah->ini_modes_rxgain_xlna,
					modesIndex, regWrites);
					modesIndex, regWrites);
		}
		}

		if (AR_SREV_9561(ah) && (ar9003_hw_get_rx_gain_idx(ah) == 0))
			REG_WRITE_ARRAY(&ah->ini_modes_rxgain_xlna,
					modesIndex, regWrites);
	}
	}


	if (AR_SREV_9550(ah) || AR_SREV_9561(ah))
	if (AR_SREV_9550(ah) || AR_SREV_9561(ah))
		REG_WRITE_ARRAY(&ah->ini_modes_rx_gain_bounds, modesIndex,
		REG_WRITE_ARRAY(&ah->ini_modes_rx_gain_bounds, modesIndex,
				regWrites);
				regWrites);


	if (AR_SREV_9561(ah) && (ar9003_hw_get_rx_gain_idx(ah) == 0))
		REG_WRITE_ARRAY(&ah->ini_modes_rxgain_xlna,
				modesIndex, regWrites);
	/*
	/*
	 * TXGAIN initvals.
	 * TXGAIN initvals.
	 */
	 */