Lines Matching refs:tmp
236 u8 *pos, *tmp; in cfg80211_gen_new_ie() local
275 tmp = (u8 *)cfg80211_find_ext_ie(tmp_old[2], sub_copy, in cfg80211_gen_new_ie()
278 tmp = (u8 *)cfg80211_find_ie(tmp_old[0], sub_copy, in cfg80211_gen_new_ie()
281 if (!tmp) { in cfg80211_gen_new_ie()
299 if (!memcmp(tmp_old + 2, tmp + 2, 5)) { in cfg80211_gen_new_ie()
303 memcpy(pos, tmp, tmp[1] + 2); in cfg80211_gen_new_ie()
304 pos += tmp[1] + 2; in cfg80211_gen_new_ie()
305 tmp[0] = WLAN_EID_SSID; in cfg80211_gen_new_ie()
312 memcpy(pos, tmp, tmp[1] + 2); in cfg80211_gen_new_ie()
313 pos += tmp[1] + 2; in cfg80211_gen_new_ie()
314 tmp[0] = WLAN_EID_SSID; in cfg80211_gen_new_ie()
398 struct cfg80211_internal_bss *bss, *tmp; in __cfg80211_bss_expire() local
403 list_for_each_entry_safe(bss, tmp, &rdev->bss_list, list) { in __cfg80211_bss_expire()
604 struct cfg80211_sched_scan_request *req, *tmp; in cfg80211_sched_scan_results_wk() local
610 list_for_each_entry_safe(req, tmp, &rdev->sched_scan_req_list, list) { in cfg80211_sched_scan_results_wk()
1184 struct cfg80211_internal_bss *tmp, in cfg80211_bss_update() argument
1189 if (WARN_ON(!tmp->pub.channel)) in cfg80211_bss_update()
1192 tmp->ts = ts; in cfg80211_bss_update()
1196 if (WARN_ON(!rcu_access_pointer(tmp->pub.ies))) { in cfg80211_bss_update()
1201 found = rb_find_bss(rdev, tmp, BSS_CMP_REGULAR); in cfg80211_bss_update()
1204 if (!cfg80211_update_known_bss(rdev, found, tmp, signal_valid)) in cfg80211_bss_update()
1219 ies = (void *)rcu_dereference(tmp->pub.beacon_ies); in cfg80211_bss_update()
1222 ies = (void *)rcu_dereference(tmp->pub.proberesp_ies); in cfg80211_bss_update()
1227 memcpy(new, tmp, sizeof(*new)); in cfg80211_bss_update()
1232 if (rcu_access_pointer(tmp->pub.proberesp_ies)) { in cfg80211_bss_update()
1233 hidden = rb_find_bss(rdev, tmp, BSS_CMP_HIDE_ZLEN); in cfg80211_bss_update()
1235 hidden = rb_find_bss(rdev, tmp, in cfg80211_bss_update()
1265 if (tmp->pub.transmitted_bss) { in cfg80211_bss_update()
1267 container_of(tmp->pub.transmitted_bss, in cfg80211_bss_update()
1271 new->pub.transmitted_bss = tmp->pub.transmitted_bss; in cfg80211_bss_update()
1304 const u8 *tmp; in cfg80211_get_bss_channel() local
1309 tmp = cfg80211_find_ie(WLAN_EID_DS_PARAMS, ie, ielen); in cfg80211_get_bss_channel()
1310 if (tmp && tmp[1] == 1) { in cfg80211_get_bss_channel()
1311 channel_number = tmp[2]; in cfg80211_get_bss_channel()
1313 tmp = cfg80211_find_ie(WLAN_EID_HT_OPERATION, ie, ielen); in cfg80211_get_bss_channel()
1314 if (tmp && tmp[1] >= sizeof(struct ieee80211_ht_operation)) { in cfg80211_get_bss_channel()
1315 struct ieee80211_ht_operation *htop = (void *)(tmp + 2); in cfg80211_get_bss_channel()
1375 struct cfg80211_internal_bss tmp = {}, *res; in cfg80211_inform_single_bss_data() local
1392 memcpy(tmp.pub.bssid, bssid, ETH_ALEN); in cfg80211_inform_single_bss_data()
1393 tmp.pub.channel = channel; in cfg80211_inform_single_bss_data()
1394 tmp.pub.scan_width = data->scan_width; in cfg80211_inform_single_bss_data()
1395 tmp.pub.signal = data->signal; in cfg80211_inform_single_bss_data()
1396 tmp.pub.beacon_interval = beacon_interval; in cfg80211_inform_single_bss_data()
1397 tmp.pub.capability = capability; in cfg80211_inform_single_bss_data()
1398 tmp.ts_boottime = data->boottime_ns; in cfg80211_inform_single_bss_data()
1400 tmp.pub.transmitted_bss = non_tx_data->tx_bss; in cfg80211_inform_single_bss_data()
1402 tmp.pub.bssid_index = non_tx_data->bssid_index; in cfg80211_inform_single_bss_data()
1403 tmp.pub.max_bssid_indicator = non_tx_data->max_bssid_indicator; in cfg80211_inform_single_bss_data()
1429 rcu_assign_pointer(tmp.pub.beacon_ies, ies); in cfg80211_inform_single_bss_data()
1432 rcu_assign_pointer(tmp.pub.proberesp_ies, ies); in cfg80211_inform_single_bss_data()
1435 rcu_assign_pointer(tmp.pub.ies, ies); in cfg80211_inform_single_bss_data()
1439 res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid, ts); in cfg80211_inform_single_bss_data()
1798 struct cfg80211_internal_bss tmp = {}, *res; in cfg80211_inform_single_bss_frame_data() local
1838 rcu_assign_pointer(tmp.pub.proberesp_ies, ies); in cfg80211_inform_single_bss_frame_data()
1840 rcu_assign_pointer(tmp.pub.beacon_ies, ies); in cfg80211_inform_single_bss_frame_data()
1841 rcu_assign_pointer(tmp.pub.ies, ies); in cfg80211_inform_single_bss_frame_data()
1843 memcpy(tmp.pub.bssid, mgmt->bssid, ETH_ALEN); in cfg80211_inform_single_bss_frame_data()
1844 tmp.pub.channel = channel; in cfg80211_inform_single_bss_frame_data()
1845 tmp.pub.scan_width = data->scan_width; in cfg80211_inform_single_bss_frame_data()
1846 tmp.pub.signal = data->signal; in cfg80211_inform_single_bss_frame_data()
1847 tmp.pub.beacon_interval = le16_to_cpu(mgmt->u.probe_resp.beacon_int); in cfg80211_inform_single_bss_frame_data()
1848 tmp.pub.capability = le16_to_cpu(mgmt->u.probe_resp.capab_info); in cfg80211_inform_single_bss_frame_data()
1849 tmp.ts_boottime = data->boottime_ns; in cfg80211_inform_single_bss_frame_data()
1850 tmp.parent_tsf = data->parent_tsf; in cfg80211_inform_single_bss_frame_data()
1851 tmp.pub.chains = data->chains; in cfg80211_inform_single_bss_frame_data()
1852 memcpy(tmp.pub.chain_signal, data->chain_signal, IEEE80211_MAX_CHAINS); in cfg80211_inform_single_bss_frame_data()
1853 ether_addr_copy(tmp.parent_bssid, data->parent_bssid); in cfg80211_inform_single_bss_frame_data()
1857 res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid, in cfg80211_inform_single_bss_frame_data()
1964 struct cfg80211_bss *nontrans_bss, *tmp; in cfg80211_unlink_bss() local
1975 list_for_each_entry_safe(nontrans_bss, tmp, in cfg80211_unlink_bss()
2021 struct cfg80211_bss *tmp; in cfg80211_update_assoc_bss_entry() local
2058 list_for_each_entry_safe(nontrans_bss, tmp, in cfg80211_update_assoc_bss_entry()
2076 list_for_each_entry_safe(nontrans_bss, tmp, in cfg80211_update_assoc_bss_entry()
2303 u8 *cfg, *p, *tmp; in ieee80211_bss() local
2495 tmp = p; in ieee80211_bss()
2499 if (p == tmp) { in ieee80211_bss()