Lines Matching defs:tspec
187 const struct wmm_tspec_element *tspec,
209 os_memcpy(t, tspec, sizeof(struct wmm_tspec_element));
217 int wmm_process_tspec(struct wmm_tspec_element *tspec)
224 up = (tspec->ts_info[1] >> 3) & 0x07;
225 psb = (tspec->ts_info[1] >> 2) & 0x01;
226 dir = (tspec->ts_info[0] >> 5) & 0x03;
227 tid = (tspec->ts_info[0] >> 1) & 0x0f;
230 val = le_to_host16(tspec->nominal_msdu_size);
234 le_to_host32(tspec->mean_data_rate));
236 le_to_host32(tspec->minimum_phy_rate));
237 val = le_to_host16(tspec->surplus_bandwidth_allowance);
241 val = le_to_host16(tspec->nominal_msdu_size);
247 pps = ((le_to_host32(tspec->mean_data_rate) / 8) + val - 1) / val;
251 if (le_to_host32(tspec->minimum_phy_rate) < 1000000) {
256 duration = (le_to_host16(tspec->nominal_msdu_size) & 0x7fff) * 8 /
257 (le_to_host32(tspec->minimum_phy_rate) / 1000000) +
262 surplus = le_to_host16(tspec->surplus_bandwidth_allowance);
286 tspec->medium_time = host_to_le16(medium_time / 32);
294 struct wmm_tspec_element *tspec, size_t len)
299 if ((const u8 *) (tspec + 1) > end) {
309 res = wmm_process_tspec(tspec);
312 wmm_send_action(hapd, mgmt->sa, tspec, WMM_ACTION_CODE_ADDTS_RESP,
341 /* extract the tspec info element */
357 "tspec");