Correctly populate the RTS field.

Tested:
	* AR5210, STA mode, RTS enabled
This commit is contained in:
Adrian Chadd 2012-11-17 02:39:37 +00:00
parent 3a4d0022de
commit 875d039e0a

View File

@ -518,7 +518,8 @@ ar5210SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,
ads->ds_ctl1 = 0;
if (flags & HAL_TXDESC_RTSENA) {
ads->ds_ctl0 |= AR_RTSCTSEnable;
ads->ds_ctl1 |= rtsctsDuration & AR_RTSDuration;
ads->ds_ctl1 |= (rtsctsDuration << AR_RTSDuration_S)
& AR_RTSDuration;
}
return AH_TRUE;
}