Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/net/wireless/ath/ath5k/
Dqcu.c110 ath5k_cw_validate(u16 cw_req) in ath5k_cw_validate() argument
112 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()