• 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
277 return tlv; in add_ie_rates()
288 *tlv++ = ie[ap]; in add_ie_rates()
293 return tlv; in add_ie_rates()
299 static int lbs_add_common_rates_tlv(u8 *tlv, struct cfg80211_bss *bss) in lbs_add_common_rates_tlv() argument
301 struct mrvl_ie_rates_param_set *rate_tlv = (void *)tlv; in lbs_add_common_rates_tlv()
315 tlv += sizeof(rate_tlv->header); in lbs_add_common_rates_tlv()
319 tlv = add_ie_rates(tlv, rates_eid, &n); in lbs_add_common_rates_tlv()
323 tlv = add_ie_rates(tlv, ext_rates_eid, &n); in lbs_add_common_rates_tlv()
327 *tlv++ = 0x82; in lbs_add_common_rates_tlv()
328 *tlv++ = 0x84; in lbs_add_common_rates_tlv()
329 *tlv++ = 0x8b; in lbs_add_common_rates_tlv()
330 *tlv++ = 0x96; in lbs_add_common_rates_tlv()
348 static int lbs_add_auth_type_tlv(u8 *tlv, enum nl80211_auth_type auth_type) in lbs_add_auth_type_tlv() argument
350 struct mrvl_ie_auth_type *auth = (void *) tlv; in lbs_add_auth_type_tlv()
370 static int lbs_add_channel_tlv(u8 *tlv, u8 channel) in lbs_add_channel_tlv() argument
372 struct mrvl_ie_ds_param_set *ds = (void *) tlv; in lbs_add_channel_tlv()
392 static int lbs_add_cf_param_tlv(u8 *tlv) in lbs_add_cf_param_tlv() argument
394 struct mrvl_ie_cf_param_set *cf = (void *)tlv; in lbs_add_cf_param_tlv()
416 static int lbs_add_wpa_tlv(u8 *tlv, const u8 *ie, u8 ie_len) in lbs_add_wpa_tlv() argument
430 *tlv++ = *ie++; in lbs_add_wpa_tlv()
431 *tlv++ = 0; in lbs_add_wpa_tlv()
432 tlv_len = *tlv++ = *ie++; in lbs_add_wpa_tlv()
433 *tlv++ = 0; in lbs_add_wpa_tlv()
435 *tlv++ = *ie++; in lbs_add_wpa_tlv()
696 u8 *tlv; /* pointer into our current, growing TLV storage area */ in lbs_scan_worker() local
718 tlv = scan_cmd->tlvbuffer; in lbs_scan_worker()
722 tlv += lbs_add_ssid_tlv(tlv, in lbs_scan_worker()
730 tlv += lbs_add_channel_list_tlv(priv, tlv, last_channel, in lbs_scan_worker()
734 tlv += lbs_add_supported_rates_tlv(tlv); in lbs_scan_worker()
744 scan_cmd->hdr.size = cpu_to_le16(tlv - (u8 *)scan_cmd); in lbs_scan_worker()
748 tlv - scan_cmd->tlvbuffer); in lbs_scan_worker()