Lines Matching full:tspec
134 const struct wmm_tspec_element *tspec,
156 os_memcpy(t, tspec, sizeof(struct wmm_tspec_element));
164 int wmm_process_tspec(struct wmm_tspec_element *tspec)
170 up = (tspec->ts_info[1] >> 3) & 0x07;
171 psb = (tspec->ts_info[1] >> 2) & 0x01;
172 dir = (tspec->ts_info[0] >> 5) & 0x03;
173 tid = (tspec->ts_info[0] >> 1) & 0x0f;
176 val = le_to_host16(tspec->nominal_msdu_size);
180 le_to_host32(tspec->mean_data_rate));
182 le_to_host32(tspec->minimum_phy_rate));
183 val = le_to_host16(tspec->surplus_bandwidth_allowance);
187 val = le_to_host16(tspec->nominal_msdu_size);
193 pps = ((le_to_host32(tspec->mean_data_rate) / 8) + val - 1) / val;
194 wpa_printf(MSG_DEBUG, "WMM: Packets-per-second estimate for TSPEC: %d",
197 if (le_to_host32(tspec->minimum_phy_rate) < 1000000) {
202 duration = (le_to_host16(tspec->nominal_msdu_size) & 0x7fff) * 8 /
203 (le_to_host32(tspec->minimum_phy_rate) / 1000000) +
208 surplus = le_to_host16(tspec->surplus_bandwidth_allowance);
225 wpa_printf(MSG_DEBUG, "WMM: Refuse TSPEC request for over "
231 tspec->medium_time = host_to_le16(medium_time / 32);
239 struct wmm_tspec_element *tspec, size_t len)
244 if ((const u8 *) (tspec + 1) > end) {
245 wpa_printf(MSG_DEBUG, "WMM: TSPEC overflow in ADDTS Request");
249 wpa_printf(MSG_DEBUG, "WMM: ADDTS Request (Dialog Token %d) for TSPEC "
254 res = wmm_process_tspec(tspec);
257 wmm_send_action(hapd, mgmt->sa, tspec, WMM_ACTION_CODE_ADDTS_RESP,
283 /* extract the tspec info element */
299 "tspec");