Searched refs:cw_req (Results 1 – 1 of 1) sorted by relevance
110 ath5k_cw_validate(u16 cw_req) in ath5k_cw_validate() argument112 cw_req = min(cw_req, (u16)1023); in ath5k_cw_validate()115 if (is_power_of_2(cw_req + 1)) in ath5k_cw_validate()116 return cw_req; in ath5k_cw_validate()119 if (is_power_of_2(cw_req)) in ath5k_cw_validate()120 return cw_req - 1; in ath5k_cw_validate()124 cw_req = (u16) roundup_pow_of_two(cw_req) - 1; in ath5k_cw_validate()126 return cw_req; in ath5k_cw_validate()