Lines Matching refs:ie
265 static size_t cfg80211_gen_new_ie(const u8 *ie, size_t ielen, in cfg80211_gen_new_ie() argument
298 tmp_old = cfg80211_find_ie(WLAN_EID_SSID, ie, ielen); in cfg80211_gen_new_ie()
299 tmp_old = (tmp_old) ? tmp_old + tmp_old[1] + 2 : ie; in cfg80211_gen_new_ie()
301 while (tmp_old + 2 - ie <= ielen && in cfg80211_gen_new_ie()
302 tmp_old + tmp_old[1] + 2 - ie <= ielen) { in cfg80211_gen_new_ie()
353 if (tmp_old + tmp_old[1] + 2 - ie == ielen) in cfg80211_gen_new_ie()
1532 const u8 *ie; in cfg80211_combine_bsses() local
1541 ie = cfg80211_find_ie(WLAN_EID_SSID, ies->data, ies->len); in cfg80211_combine_bsses()
1542 if (!ie) { in cfg80211_combine_bsses()
1547 ssidlen = ie[1]; in cfg80211_combine_bsses()
1549 fold |= ie[2 + i]; in cfg80211_combine_bsses()
1576 ie = cfg80211_find_ie(WLAN_EID_SSID, ies->data, ies->len); in cfg80211_combine_bsses()
1577 if (!ie) in cfg80211_combine_bsses()
1579 if (ssidlen && ie[1] != ssidlen) in cfg80211_combine_bsses()
1823 cfg80211_get_bss_channel(struct wiphy *wiphy, const u8 *ie, size_t ielen, in cfg80211_get_bss_channel() argument
1833 tmp = cfg80211_find_ie(WLAN_EID_S1G_OPERATION, ie, ielen); in cfg80211_get_bss_channel()
1840 tmp = cfg80211_find_ie(WLAN_EID_DS_PARAMS, ie, ielen); in cfg80211_get_bss_channel()
1844 tmp = cfg80211_find_ie(WLAN_EID_HT_OPERATION, ie, ielen); in cfg80211_get_bss_channel()
1900 u16 beacon_interval, const u8 *ie, size_t ielen, in cfg80211_inform_single_bss_data() argument
1919 channel = cfg80211_get_bss_channel(wiphy, ie, ielen, data->chan, in cfg80211_inform_single_bss_data()
1954 memcpy(ies->data, ie, ielen); in cfg80211_inform_single_bss_data()
2008 *cfg80211_get_profile_continuation(const u8 *ie, size_t ielen, in cfg80211_get_profile_continuation() argument
2018 ielen - (mbssid_end - ie)); in cfg80211_get_profile_continuation()
2050 size_t cfg80211_merge_profile(const u8 *ie, size_t ielen, in cfg80211_merge_profile() argument
2063 while ((next_mbssid = cfg80211_get_profile_continuation(ie, ielen, in cfg80211_merge_profile()
2083 u16 beacon_interval, const u8 *ie, in cfg80211_parse_mbssid_data() argument
2099 if (!cfg80211_find_ie(WLAN_EID_MULTIPLE_BSSID, ie, ielen)) in cfg80211_parse_mbssid_data()
2104 !cfg80211_find_ext_ie(WLAN_EID_EXT_HE_CAPABILITY, ie, ielen)) in cfg80211_parse_mbssid_data()
2115 for_each_element_id(elem, WLAN_EID_MULTIPLE_BSSID, ie, ielen) { in cfg80211_parse_mbssid_data()
2138 profile_len = cfg80211_merge_profile(ie, ielen, in cfg80211_parse_mbssid_data()
2170 new_ie_len = cfg80211_gen_new_ie(ie, ielen, in cfg80211_parse_mbssid_data()
2203 u16 beacon_interval, const u8 *ie, size_t ielen, in cfg80211_inform_bss_data() argument
2210 capability, beacon_interval, ie, in cfg80211_inform_bss_data()
2216 beacon_interval, ie, ielen, &non_tx_data, in cfg80211_inform_bss_data()
2230 const u8 *ie = mgmt->u.probe_resp.variable; in cfg80211_parse_mbssid_frame_data() local
2240 ie, ielen, non_tx_data, gfp); in cfg80211_parse_mbssid_frame_data()
2248 u8 *ie, *new_ie, *pos; in cfg80211_update_notlisted_nontrans() local
2259 ie = mgmt->u.probe_resp.variable; in cfg80211_update_notlisted_nontrans()
2262 trans_ssid = cfg80211_find_ie(WLAN_EID_SSID, ie, ielen); in cfg80211_update_notlisted_nontrans()
2266 mbssid = cfg80211_find_ie(WLAN_EID_MULTIPLE_BSSID, ie, ielen); in cfg80211_update_notlisted_nontrans()
2306 memcpy(pos, mbssid + cpy_len, ((ie + ielen) - (mbssid + cpy_len))); in cfg80211_update_notlisted_nontrans()
2466 const u8 *ie = mgmt->u.probe_resp.variable; in cfg80211_inform_bss_frame_data() local
2480 !cfg80211_find_ie(WLAN_EID_MULTIPLE_BSSID, ie, ielen)) in cfg80211_inform_bss_frame_data()
2483 !cfg80211_find_ext_ie(WLAN_EID_EXT_HE_CAPABILITY, ie, ielen)) in cfg80211_inform_bss_frame_data()
2892 const u8 *ie; in ieee80211_bss() local
2974 ie = ies->data; in ieee80211_bss()
2978 if (ie[1] > rem - 2) in ieee80211_bss()
2981 switch (ie[0]) { in ieee80211_bss()
2985 iwe.u.data.length = ie[1]; in ieee80211_bss()
2990 (u8 *)ie + 2); in ieee80211_bss()
2997 iwe.u.data.length = ie[1]; in ieee80211_bss()
3002 (u8 *)ie + 2); in ieee80211_bss()
3008 if (ie[1] != sizeof(struct ieee80211_meshconf_ie)) in ieee80211_bss()
3010 cfg = (u8 *)ie + 2; in ieee80211_bss()
3083 for (i = 0; i < ie[1]; i++) { in ieee80211_bss()
3085 ((ie[i + 2] & 0x7f) * 500000); in ieee80211_bss()
3098 rem -= ie[1] + 2; in ieee80211_bss()
3099 ie += ie[1] + 2; in ieee80211_bss()