Home
last modified time | relevance | path

Searched refs:cw_req (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/drivers/net/wireless/ath/ath5k/
Dqcu.c112 ath5k_cw_validate(u16 cw_req) in ath5k_cw_validate() argument
114 cw_req = min(cw_req, (u16)1023); in ath5k_cw_validate()
117 if (is_power_of_2(cw_req + 1)) in ath5k_cw_validate()
118 return cw_req; in ath5k_cw_validate()
121 if (is_power_of_2(cw_req)) in ath5k_cw_validate()
122 return cw_req - 1; in ath5k_cw_validate()
126 cw_req = (u16) roundup_pow_of_two(cw_req) - 1; in ath5k_cw_validate()
128 return cw_req; in ath5k_cw_validate()