Lines Matching refs:ielen
269 cfg80211_gen_new_ie(const u8 *ie, size_t ielen, in cfg80211_gen_new_ie() argument
287 for_each_element(parent, ie, ielen) { in cfg80211_gen_new_ie()
311 ie, ielen, in cfg80211_gen_new_ie()
368 if (cfg80211_find_elem_match(id, ie, ielen, in cfg80211_gen_new_ie()
2036 int cfg80211_get_ies_channel_number(const u8 *ie, size_t ielen, in cfg80211_get_ies_channel_number() argument
2045 ielen); in cfg80211_get_ies_channel_number()
2059 tmp = cfg80211_find_elem(WLAN_EID_S1G_OPERATION, ie, ielen); in cfg80211_get_ies_channel_number()
2066 tmp = cfg80211_find_elem(WLAN_EID_DS_PARAMS, ie, ielen); in cfg80211_get_ies_channel_number()
2070 tmp = cfg80211_find_elem(WLAN_EID_HT_OPERATION, ie, ielen); in cfg80211_get_ies_channel_number()
2092 cfg80211_get_bss_channel(struct wiphy *wiphy, const u8 *ie, size_t ielen, in cfg80211_get_bss_channel() argument
2099 channel_number = cfg80211_get_ies_channel_number(ie, ielen, in cfg80211_get_bss_channel()
2151 size_t ielen; member
2239 channel = cfg80211_get_bss_channel(wiphy, data->ie, data->ielen, in cfg80211_inform_single_bss_data()
2245 !cfg80211_6ghz_power_type_valid(data->ie, data->ielen, in cfg80211_inform_single_bss_data()
2305 ies = kzalloc(sizeof(*ies) + data->ielen, gfp); in cfg80211_inform_single_bss_data()
2308 ies->len = data->ielen; in cfg80211_inform_single_bss_data()
2311 memcpy(ies->data, data->ie, data->ielen); in cfg80211_inform_single_bss_data()
2361 *cfg80211_get_profile_continuation(const u8 *ie, size_t ielen, in cfg80211_get_profile_continuation() argument
2371 ielen - (mbssid_end - ie)); in cfg80211_get_profile_continuation()
2403 size_t cfg80211_merge_profile(const u8 *ie, size_t ielen, in cfg80211_merge_profile() argument
2416 while ((next_mbssid = cfg80211_get_profile_continuation(ie, ielen, in cfg80211_merge_profile()
2457 tx_data->ie, tx_data->ielen)) in cfg80211_parse_mbssid_data()
2463 tx_data->ie, tx_data->ielen)) in cfg80211_parse_mbssid_data()
2470 profile = kmalloc(tx_data->ielen, gfp); in cfg80211_parse_mbssid_data()
2475 tx_data->ie, tx_data->ielen) { in cfg80211_parse_mbssid_data()
2497 memset(profile, 0, tx_data->ielen); in cfg80211_parse_mbssid_data()
2499 tx_data->ielen, in cfg80211_parse_mbssid_data()
2503 tx_data->ielen); in cfg80211_parse_mbssid_data()
2534 data.ielen = cfg80211_gen_new_ie(tx_data->ie, in cfg80211_parse_mbssid_data()
2535 tx_data->ielen, in cfg80211_parse_mbssid_data()
2540 if (!data.ielen) in cfg80211_parse_mbssid_data()
2635 cfg80211_defrag_mle(const struct element *mle, const u8 *ie, size_t ielen, in cfg80211_defrag_mle() argument
2650 ielen - sizeof(*mle) + mle->datalen) { in cfg80211_defrag_mle()
2661 mle_len = cfg80211_defragment_element(mle, ie, ielen, in cfg80211_defrag_mle()
2672 ielen = mle_len - common_size; in cfg80211_defrag_mle()
2676 ie, ielen) { in cfg80211_defrag_mle()
2684 if (!for_each_element_completed(elem, ie, ielen)) in cfg80211_defrag_mle()
2700 buf_len = ielen + ie - (u8 *)elem; in cfg80211_defrag_mle()
2777 cfg80211_rnr_info_for_mld_ap(const u8 *ie, size_t ielen, u8 mld_id, u8 link_id, in cfg80211_rnr_info_for_mld_ap() argument
2786 cfg80211_iter_rnr(ie, ielen, cfg802121_mld_ap_rnr_iter, &data); in cfg80211_rnr_info_for_mld_ap()
2946 mle = cfg80211_defrag_mle(elem, tx_data->ie, tx_data->ielen, gfp); in cfg80211_parse_ml_elem_sta_data()
2966 tx_data->ielen); in cfg80211_parse_ml_elem_sta_data()
3023 tx_data->ielen, in cfg80211_parse_ml_elem_sta_data()
3085 data.ielen = cfg80211_gen_new_ie(tx_data->ie, tx_data->ielen, in cfg80211_parse_ml_elem_sta_data()
3089 if (!data.ielen) in cfg80211_parse_ml_elem_sta_data()
3099 if (data.ielen + 3 + sizeof(*ml_elem) + ml_common_len > in cfg80211_parse_ml_elem_sta_data()
3109 new_ie[data.ielen++] = WLAN_EID_EXTENSION; in cfg80211_parse_ml_elem_sta_data()
3110 new_ie[data.ielen++] = 1 + sizeof(*ml_elem) + ml_common_len; in cfg80211_parse_ml_elem_sta_data()
3111 new_ie[data.ielen++] = WLAN_EID_EXT_EHT_MULTI_LINK; in cfg80211_parse_ml_elem_sta_data()
3112 memcpy(new_ie + data.ielen, ml_elem, in cfg80211_parse_ml_elem_sta_data()
3115 new_ie[data.ielen + sizeof(*ml_elem) + 1 + ETH_ALEN] = link_id; in cfg80211_parse_ml_elem_sta_data()
3116 new_ie[data.ielen + sizeof(*ml_elem) + 1 + ETH_ALEN + 1] = in cfg80211_parse_ml_elem_sta_data()
3119 data.ielen += sizeof(*ml_elem) + ml_common_len; in cfg80211_parse_ml_elem_sta_data()
3122 if (data.ielen + sizeof(struct element) + in cfg80211_parse_ml_elem_sta_data()
3126 memcpy(new_ie + data.ielen, reporter_rnr, in cfg80211_parse_ml_elem_sta_data()
3128 data.ielen += sizeof(struct element) + in cfg80211_parse_ml_elem_sta_data()
3158 tx_data->ie, tx_data->ielen) in cfg80211_parse_ml_sta_data()
3168 u16 beacon_interval, const u8 *ie, size_t ielen, in cfg80211_inform_bss_data() argument
3178 .ielen = ielen, in cfg80211_inform_bss_data()
3217 size_t ielen; in cfg80211_inform_bss_frame_data() local
3248 ielen = len - min_hdr_len; in cfg80211_inform_bss_frame_data()
3259 elem = cfg80211_find_elem(WLAN_EID_S1G_BCN_COMPAT, ie, ielen); in cfg80211_inform_bss_frame_data()
3285 beacon_interval, ie, ielen, in cfg80211_inform_bss_frame_data()