• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/wpa_supplicant-0.7.3/wpa_supplicant/

Lines Matching refs:tspec

1001 	struct wmm_tspec_element *tspec;
1004 tspec = wpabuf_put(buf, sizeof(*tspec));
1005 tspec->eid = WLAN_EID_VENDOR_SPECIFIC;
1006 tspec->length = sizeof(*tspec) - 2;
1007 tspec->oui[0] = 0x00;
1008 tspec->oui[1] = 0x50;
1009 tspec->oui[2] = 0xf2;
1010 tspec->oui_type = 2;
1011 tspec->oui_subtype = 2;
1012 tspec->version = 1;
1016 tspec->ts_info[0] = (tid << 1) |
1019 tspec->ts_info[1] = up << 3;
1020 tspec->nominal_msdu_size = host_to_le16(1530);
1021 tspec->mean_data_rate = host_to_le32(128000); /* bits per second */
1022 tspec->minimum_phy_rate = host_to_le32(6000000);
1023 tspec->surplus_bandwidth_allowance = host_to_le16(0x3000); /* 150% */
1842 static void dump_tspec(struct wmm_tspec_element *tspec)
1847 up = (tspec->ts_info[1] >> 3) & 0x07;
1848 psb = (tspec->ts_info[1] >> 2) & 0x01;
1849 dir = (tspec->ts_info[0] >> 5) & 0x03;
1850 tid = (tspec->ts_info[0] >> 1) & 0x0f;
1853 val = le_to_host16(tspec->nominal_msdu_size);
1857 le_to_host32(tspec->mean_data_rate));
1859 le_to_host32(tspec->minimum_phy_rate));
1860 val = le_to_host16(tspec->surplus_bandwidth_allowance);
1863 val = le_to_host16(tspec->medium_time);
1871 const struct wmm_tspec_element *tspec;
1873 if (len < sizeof(*tspec))
1876 tspec = (const struct wmm_tspec_element *) ie;
1877 if (tspec->eid != WLAN_EID_VENDOR_SPECIFIC ||
1878 tspec->length < sizeof(*tspec) - 2 ||
1879 tspec->oui[0] != 0x00 || tspec->oui[1] != 0x50 ||
1880 tspec->oui[2] != 0xf2 || tspec->oui_type != 2 ||
1881 tspec->oui_subtype != 2 || tspec->version != 1)
1892 struct wmm_tspec_element *tspec;
1899 tspec = (struct wmm_tspec_element *)
1901 dump_tspec(tspec);
1909 struct wmm_tspec_element *tspec;
1916 tspec = (struct wmm_tspec_element *)
1918 dump_tspec(tspec);