Lines Matching refs:tspec
128 const struct wmm_tspec_element *tspec,
150 os_memcpy(t, tspec, sizeof(struct wmm_tspec_element));
158 int wmm_process_tspec(struct wmm_tspec_element *tspec)
164 up = (tspec->ts_info[1] >> 3) & 0x07;
165 psb = (tspec->ts_info[1] >> 2) & 0x01;
166 dir = (tspec->ts_info[0] >> 5) & 0x03;
167 tid = (tspec->ts_info[0] >> 1) & 0x0f;
170 val = le_to_host16(tspec->nominal_msdu_size);
174 le_to_host32(tspec->mean_data_rate));
176 le_to_host32(tspec->minimum_phy_rate));
177 val = le_to_host16(tspec->surplus_bandwidth_allowance);
181 val = le_to_host16(tspec->nominal_msdu_size);
187 pps = ((le_to_host32(tspec->mean_data_rate) / 8) + val - 1) / val;
191 if (le_to_host32(tspec->minimum_phy_rate) < 1000000) {
196 duration = (le_to_host16(tspec->nominal_msdu_size) & 0x7fff) * 8 /
197 (le_to_host32(tspec->minimum_phy_rate) / 1000000) +
202 surplus = le_to_host16(tspec->surplus_bandwidth_allowance);
225 tspec->medium_time = host_to_le16(medium_time / 32);
233 struct wmm_tspec_element *tspec, size_t len)
238 if ((const u8 *) (tspec + 1) > end) {
248 res = wmm_process_tspec(tspec);
251 wmm_send_action(hapd, mgmt->sa, tspec, WMM_ACTION_CODE_ADDTS_RESP,
277 /* extract the tspec info element */
293 "tspec");