Lines Matching refs:elems
42 static bool is_uapsd_supported(struct ieee802_11_elems *elems)
46 if (elems->wmm_info && elems->wmm_info_len == 7
47 && elems->wmm_info[5] == 1)
48 qos_info = elems->wmm_info[6];
49 else if (elems->wmm_param && elems->wmm_param_len == 24
50 && elems->wmm_param[5] == 1)
51 qos_info = elems->wmm_param[6];
63 struct ieee802_11_elems *elems,
97 if (elems->parse_error) {
110 if (elems->erp_info && (!elems->parse_error ||
112 bss->erp_value = elems->erp_info[0];
114 if (!elems->parse_error)
119 if (!elems->parse_error ||
122 if (elems->supp_rates) {
124 if (clen > elems->supp_rates_len)
125 clen = elems->supp_rates_len;
126 memcpy(bss->supp_rates, elems->supp_rates, clen);
129 if (elems->ext_supp_rates) {
131 if (clen > elems->ext_supp_rates_len)
132 clen = elems->ext_supp_rates_len;
133 memcpy(bss->supp_rates + srlen, elems->ext_supp_rates,
139 if (!elems->parse_error)
144 if (!elems->parse_error ||
146 bss->wmm_used = elems->wmm_param || elems->wmm_info;
147 bss->uapsd_supported = is_uapsd_supported(elems);
148 if (!elems->parse_error)
173 struct ieee802_11_elems elems;
202 ieee802_11_parse_elems(elements, skb->len - baselen, false, &elems);
210 mgmt, skb->len, &elems,