• Home
  • Raw
  • Download

Lines Matching refs:tlv

164 static int lbs_add_ssid_tlv(u8 *tlv, const u8 *ssid, int ssid_len)  in lbs_add_ssid_tlv()  argument
166 struct mrvl_ie_ssid_param_set *ssid_tlv = (void *)tlv; in lbs_add_ssid_tlv()
189 static int lbs_add_channel_list_tlv(struct lbs_private *priv, u8 *tlv, in lbs_add_channel_list_tlv() argument
195 struct mrvl_ie_header *header = (void *) tlv; in lbs_add_channel_list_tlv()
212 tlv += sizeof(struct mrvl_ie_header); in lbs_add_channel_list_tlv()
216 memset(tlv, 0, chanscanparamsize); in lbs_add_channel_list_tlv()
219 struct chanscanparamset *param = (void *) tlv; in lbs_add_channel_list_tlv()
230 tlv += sizeof(struct chanscanparamset); in lbs_add_channel_list_tlv()
250 static int lbs_add_supported_rates_tlv(u8 *tlv) in lbs_add_supported_rates_tlv() argument
253 struct mrvl_ie_rates_param_set *rate_tlv = (void *)tlv; in lbs_add_supported_rates_tlv()
261 tlv += sizeof(rate_tlv->header); in lbs_add_supported_rates_tlv()
262 i = lbs_add_rates(tlv); in lbs_add_supported_rates_tlv()
263 tlv += i; in lbs_add_supported_rates_tlv()
270 add_ie_rates(u8 *tlv, const u8 *ie, int *nrates) in add_ie_rates() argument
284 *tlv++ = ie[ap]; in add_ie_rates()
289 return tlv; in add_ie_rates()
295 static int lbs_add_common_rates_tlv(u8 *tlv, struct cfg80211_bss *bss) in lbs_add_common_rates_tlv() argument
297 struct mrvl_ie_rates_param_set *rate_tlv = (void *)tlv; in lbs_add_common_rates_tlv()
310 tlv += sizeof(rate_tlv->header); in lbs_add_common_rates_tlv()
314 tlv = add_ie_rates(tlv, rates_eid, &n); in lbs_add_common_rates_tlv()
318 tlv = add_ie_rates(tlv, ext_rates_eid, &n); in lbs_add_common_rates_tlv()
322 *tlv++ = 0x82; in lbs_add_common_rates_tlv()
323 *tlv++ = 0x84; in lbs_add_common_rates_tlv()
324 *tlv++ = 0x8b; in lbs_add_common_rates_tlv()
325 *tlv++ = 0x96; in lbs_add_common_rates_tlv()
342 static int lbs_add_auth_type_tlv(u8 *tlv, enum nl80211_auth_type auth_type) in lbs_add_auth_type_tlv() argument
344 struct mrvl_ie_auth_type *auth = (void *) tlv; in lbs_add_auth_type_tlv()
364 static int lbs_add_channel_tlv(u8 *tlv, u8 channel) in lbs_add_channel_tlv() argument
366 struct mrvl_ie_ds_param_set *ds = (void *) tlv; in lbs_add_channel_tlv()
386 static int lbs_add_cf_param_tlv(u8 *tlv) in lbs_add_cf_param_tlv() argument
388 struct mrvl_ie_cf_param_set *cf = (void *)tlv; in lbs_add_cf_param_tlv()
410 static int lbs_add_wpa_tlv(u8 *tlv, const u8 *ie, u8 ie_len) in lbs_add_wpa_tlv() argument
424 *tlv++ = *ie++; in lbs_add_wpa_tlv()
425 *tlv++ = 0; in lbs_add_wpa_tlv()
426 tlv_len = *tlv++ = *ie++; in lbs_add_wpa_tlv()
427 *tlv++ = 0; in lbs_add_wpa_tlv()
429 *tlv++ = *ie++; in lbs_add_wpa_tlv()
676 u8 *tlv; /* pointer into our current, growing TLV storage area */ in lbs_scan_worker() local
698 tlv = scan_cmd->tlvbuffer; in lbs_scan_worker()
702 tlv += lbs_add_ssid_tlv(tlv, in lbs_scan_worker()
710 tlv += lbs_add_channel_list_tlv(priv, tlv, last_channel, in lbs_scan_worker()
714 tlv += lbs_add_supported_rates_tlv(tlv); in lbs_scan_worker()
724 scan_cmd->hdr.size = cpu_to_le16(tlv - (u8 *)scan_cmd); in lbs_scan_worker()
728 tlv - scan_cmd->tlvbuffer); in lbs_scan_worker()