Ensure that the correct rxchainmask is used when doing calibration in the

AR5416 and later chipsets.

ath_hal_calibrateN() calls the HAL calibrateN function with rxchainmask=0x1.
This is not necessarily the case for AR5416 and later chipsets.
This commit is contained in:
Adrian Chadd 2010-08-12 06:11:44 +00:00
parent 43ff2d6aec
commit ccf98f5d9d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211208

View File

@ -407,6 +407,13 @@ ar5416PerCalibrationN(struct ath_hal *ah, struct ieee80211_channel *chan,
*isCalDone = AH_TRUE;
/*
* Since ath_hal calls the PerCal method with rxchainmask=0x1;
* override it with the current chainmask. The upper levels currently
* doesn't know about the chainmask.
*/
rxchainmask = AH5416(ah)->ah_rx_chainmask;
/* Invalid channel check */
ichan = ath_hal_checkchannel(ah, chan);
if (ichan == AH_NULL) {