Lines Matching refs:tspec
123 const struct wmm_tspec_element *tspec, in wmm_send_action() argument
145 os_memcpy(t, tspec, sizeof(struct wmm_tspec_element)); in wmm_send_action()
153 int wmm_process_tspec(struct wmm_tspec_element *tspec) in wmm_process_tspec() argument
160 up = (tspec->ts_info[1] >> 3) & 0x07; in wmm_process_tspec()
161 psb = (tspec->ts_info[1] >> 2) & 0x01; in wmm_process_tspec()
162 dir = (tspec->ts_info[0] >> 5) & 0x03; in wmm_process_tspec()
163 tid = (tspec->ts_info[0] >> 1) & 0x0f; in wmm_process_tspec()
166 val = le_to_host16(tspec->nominal_msdu_size); in wmm_process_tspec()
170 le_to_host32(tspec->mean_data_rate)); in wmm_process_tspec()
172 le_to_host32(tspec->minimum_phy_rate)); in wmm_process_tspec()
173 val = le_to_host16(tspec->surplus_bandwidth_allowance); in wmm_process_tspec()
177 val = le_to_host16(tspec->nominal_msdu_size); in wmm_process_tspec()
183 pps = ((le_to_host32(tspec->mean_data_rate) / 8) + val - 1) / val; in wmm_process_tspec()
187 if (le_to_host32(tspec->minimum_phy_rate) < 1000000) { in wmm_process_tspec()
192 duration = (le_to_host16(tspec->nominal_msdu_size) & 0x7fff) * 8 / in wmm_process_tspec()
193 (le_to_host32(tspec->minimum_phy_rate) / 1000000) + in wmm_process_tspec()
198 surplus = le_to_host16(tspec->surplus_bandwidth_allowance); in wmm_process_tspec()
222 tspec->medium_time = host_to_le16(medium_time / 32); in wmm_process_tspec()
230 struct wmm_tspec_element *tspec, size_t len) in wmm_addts_req() argument
235 if ((const u8 *) (tspec + 1) > end) { in wmm_addts_req()
245 res = wmm_process_tspec(tspec); in wmm_addts_req()
248 wmm_send_action(hapd, mgmt->sa, tspec, WMM_ACTION_CODE_ADDTS_RESP, in wmm_addts_req()