/* @ah: The &struct ath5k_hw @timeout: Timeout in usec  */
int ath5k_hw_set_cts_timeout(struct ath5k_hw *ah, unsigned int timeout)
/* @ah: The &struct ath5k_hw @timeout: Timeout in usec  */
int ath5k_hw_set_cts_timeout(struct ath5k_hw *ah, unsigned int timeout)
{
	ATH5K_TRACE(ah->ah_sc);
	if (ath5k_hw_clocktoh(AR5K_REG_MS(0xffffffff, AR5K_TIME_OUT_CTS),
			ah->ah_turbo) <= timeout)
		return -EINVAL;
	AR5K_REG_WRITE_BITS(ah, AR5K_TIME_OUT, AR5K_TIME_OUT_CTS,
			ath5k_hw_htoclock(timeout, ah->ah_turbo));
	return 0;
}