Home
last modified time | relevance | path

Searched refs:bssid (Results 1 – 25 of 42) sorted by relevance

12

/hal_espressif-3.7.0/components/wpa_supplicant/esp_supplicant/src/
Desp_wpa3.c32 static esp_err_t wpa3_build_sae_commit(u8 *bssid, size_t *sae_msg_len) in wpa3_build_sae_commit() argument
77 if (!bssid) { in wpa3_build_sae_commit()
86 struct wpa_bss *bss = wpa_bss_get_bssid(&g_wpa_supp, (uint8_t *)bssid); in wpa3_build_sae_commit()
118 own_addr, bssid, NULL, NULL) < 0) { in wpa3_build_sae_commit()
123 sae_prepare_commit(own_addr, bssid, pw, in wpa3_build_sae_commit()
134 os_memcpy(g_sae_data.tmp->peer_addr, bssid, ETH_ALEN); in wpa3_build_sae_commit()
208 static u8 *wpa3_build_sae_msg(u8 *bssid, u32 sae_msg_type, size_t *sae_msg_len) in wpa3_build_sae_msg() argument
219 if (ESP_OK != wpa3_build_sae_commit(bssid, sae_msg_len)) in wpa3_build_sae_msg()
399 sta = ap_get_sta(hapd, frm->bssid); in wpa3_process_rx_commit()
401 sta = ap_sta_add(hapd, frm->bssid); in wpa3_process_rx_commit()
[all …]
Desp_wpa_main.c84 int wpa_config_profile(uint8_t *bssid) in wpa_config_profile() argument
101 int wpa_config_bss(uint8_t *bssid) in wpa_config_bss() argument
108 …ret = wpa_set_bss((char *)mac, (char *)bssid, esp_wifi_sta_get_pairwise_cipher_internal(), esp_wif… in wpa_config_bss()
199 int wpa_sta_connect(uint8_t *bssid) in wpa_sta_connect() argument
203 ret = wpa_config_profile(bssid); in wpa_sta_connect()
205 ret = wpa_config_bss(bssid); in wpa_sta_connect()
211 esp_set_assoc_ie((uint8_t *)bssid, NULL, 0, false); in wpa_sta_connect()
240 static void wpa_sta_connected_cb(uint8_t *bssid) in wpa_sta_connected_cb() argument
242 supplicant_sta_conn_handler(bssid); in wpa_sta_connected_cb()
299 static bool hostap_sta_join(void **sta, u8 *bssid, u8 *wpa_ie, u8 wpa_ie_len,u8 *rsnxe, u8 rsnxe_le… in hostap_sta_join() argument
[all …]
Desp_wifi_driver.h96 uint8_t *bssid; member
120 int (*wpa_sta_connect)(uint8_t *bssid);
121 void (*wpa_sta_connected_cb)(uint8_t *bssid);
127 …bool (*wpa_ap_join)(void **sm, u8 *bssid, u8 *wpa_ie, u8 wpa_ie_len, u8* rsnxe, u8 rsnxe_len, bool…
128 bool (*wpa_ap_remove)(u8 *bssid);
134 int (*wpa_config_bss)(u8 *bssid);
136 uint8_t *(*wpa3_build_sae_msg)(uint8_t *bssid, uint32_t type, size_t *len);
138 …wpa3_hostap_handle_auth)(uint8_t *buf, size_t len, uint32_t type, uint16_t status, uint8_t *bssid);
147 int (*wpa2_sm_rx_eapol)(u8 *src_addr, u8 *buf, u32 len, u8 *bssid);
246 int esp_wifi_get_assoc_bssid_internal(uint8_t *bssid);
Desp_common_i.h40 bool mbo_bss_profile_match(u8 *bssid);
46 void esp_set_assoc_ie(uint8_t *bssid, const u8 *ies, size_t ies_len, bool add_mdie);
47 void supplicant_sta_conn_handler(uint8_t* bssid);
Desp_scan.c137 os_memcpy(res->bssid, sender, ETH_ALEN); in esp_handle_beacon_probe()
211 if (scan_params->bssid) { in issue_scan()
212 params->bssid = os_zalloc(ETH_ALEN); in issue_scan()
213 if (!params->bssid) { in issue_scan()
218 os_memcpy(params->bssid, scan_params->bssid, ETH_ALEN); in issue_scan()
251 if (params->bssid) in issue_scan()
252 os_free(params->bssid); in issue_scan()
Desp_wps.c72 void wps_add_discard_ap(u8 *bssid);
264 u8 bssid[ETH_ALEN]; in wps_sm_ether_send() local
265 int ret = esp_wifi_get_assoc_bssid_internal(bssid); in wps_sm_ether_send()
272 return wpa_ether_send(sm, bssid, proto, data, data_len); in wps_sm_ether_send()
342 if (!sm->is_wps_scan || !scan->bssid) { in wps_parse_scan_result()
367 if (sm->ignore_sel_reg && !is_zero_ether_addr(sm->bssid)) { in wps_parse_scan_result()
387 if (os_memcmp(sm->dis_ap_list[count].bssid, scan->bssid, ETH_ALEN) == 0) { in wps_parse_scan_result()
388 wpa_printf(MSG_INFO, "discard ap bssid "MACSTR, MAC2STR(scan->bssid)); in wps_parse_scan_result()
404 if (scan->bssid && memcmp(sm->bssid, scan->bssid, ETH_ALEN) != 0) { in wps_parse_scan_result()
406 MAC2STR(sm->bssid), MAC2STR(scan->bssid)); in wps_parse_scan_result()
[all …]
Desp_common.c94 u8 bssid[ETH_ALEN]; in mgmt_rx_action() local
96 int ret = esp_wifi_get_assoc_bssid_internal(bssid); in mgmt_rx_action()
291 bool mbo_bss_profile_match(u8 *bssid) in mbo_bss_profile_match() argument
294 struct wpa_bss *bss = wpa_bss_get_bssid(&g_wpa_supp, bssid); in mbo_bss_profile_match()
415 void supplicant_sta_conn_handler(uint8_t *bssid) in supplicant_sta_conn_handler() argument
420 struct wpa_bss *bss = wpa_bss_get_bssid(wpa_s, bssid); in supplicant_sta_conn_handler()
551 os_memcpy(config->sta.bssid, bss->bssid, ETH_ALEN); in wpa_supplicant_connect()
695 static size_t add_mdie(uint8_t *bssid, uint8_t *ie, size_t len) in add_mdie() argument
705 struct wpa_bss *bss = wpa_bss_get_bssid(&g_wpa_supp, bssid); in add_mdie()
740 esp_set_assoc_ie(sm->bssid, ies, ies_len, false); in wpa_sm_update_ft_ies()
[all …]
Desp_wpa2.c61 static int eap_sm_rx_eapol_internal(u8 *src_addr, u8 *buf, u32 len, uint8_t *bssid);
138 uint8_t *bssid; member
217 eap_sm_rx_eapol_internal(param->sa, param->buf, param->len, param->bssid); in wpa2_task()
302 u8 bssid[6]; in eap_sm_send_eapol() local
303 ret = esp_wifi_get_assoc_bssid_internal(bssid); in eap_sm_send_eapol()
317 ret = wpa_ether_send(sm, bssid, ETH_P_EAPOL, outbuf, outlen); in eap_sm_send_eapol()
451 static int eap_sm_rx_eapol(u8 *src_addr, u8 *buf, u32 len, uint8_t *bssid) in eap_sm_rx_eapol() argument
471 param->bssid = bssid; in eap_sm_rx_eapol()
481 return eap_sm_rx_eapol_internal(src_addr, buf, len, bssid); in eap_sm_rx_eapol()
485 static int wpa2_ent_rx_eapol(u8 *src_addr, u8 *buf, u32 len, uint8_t *bssid) in wpa2_ent_rx_eapol() argument
[all …]
Desp_wpa3_i.h45 u8 bssid[ETH_ALEN]; member
61 const u8 *dst, const u8 *bssid,
Desp_wps_i.h44 u8 bssid[6]; member
64 u8 bssid[ETH_ALEN]; member
/hal_espressif-3.7.0/components/wpa_supplicant/src/common/
Dbss.c45 " SSID '%s' due to %s", bss->id, MAC2STR(bss->bssid), in wpa_bss_remove()
59 struct wpa_bss * wpa_bss_get(struct wpa_supplicant *wpa_s, const u8 *bssid, in wpa_bss_get() argument
64 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0 && in wpa_bss_get()
95 os_memcpy(dst->bssid, src->bssid, ETH_ALEN); in wpa_bss_copy_res()
133 return !is_zero_ether_addr(bss->bssid) && wpa_s->current_bss->bssid && in wpa_bss_in_use()
134 (os_memcmp(bss->bssid, wpa_s->current_bss->bssid, ETH_ALEN) == 0); in wpa_bss_in_use()
209 bss->id, MAC2STR(bss->bssid), wpa_ssid_txt(ssid, ssid_len), in wpa_bss_add()
230 MAC2STR(bss->bssid)); in wpa_bss_update()
313 MACSTR, MAC2STR(res->bssid)); in wpa_bss_update_scan_res()
318 MACSTR, MAC2STR(res->bssid)); in wpa_bss_update_scan_res()
[all …]
Dwnm_sta.c143 os_memcpy(rep->bssid, pos, ETH_ALEN); in wnm_parse_neighbor_report()
188 return wpa_bss_get_bssid(wpa_s, nei->bssid); in get_first_acceptable()
209 params.bssid = os_calloc(wpa_s->wnm_num_neighbor_report, ETH_ALEN); in get_mbo_transition_candidate()
210 if (!params.bssid) in get_mbo_transition_candidate()
213 pos = params.bssid; in get_mbo_transition_candidate()
216 first_candidate_bssid = nei->bssid; in get_mbo_transition_candidate()
219 os_memcpy(pos, nei->bssid, ETH_ALEN); in get_mbo_transition_candidate()
234 target = wpa_bss_get_bssid(wpa_s, params.bssid); in get_mbo_transition_candidate()
242 info->candidates[i].bssid); in get_mbo_transition_candidate()
254 info->candidates[i].bssid); in get_mbo_transition_candidate()
[all …]
Dbss.h33 u8 bssid[ETH_ALEN]; member
80 struct wpa_bss * wpa_bss_get(struct wpa_supplicant *wpa_s, const u8 *bssid,
83 const u8 *bssid);
Dmbo.c512 const u8 *bssid) in wpas_get_disallowed_bss() argument
518 if (os_memcmp(bssid, bss->bssid, ETH_ALEN) == 0) in wpas_get_disallowed_bss()
541 void wpa_bss_tmp_disallow(struct wpa_supplicant *wpa_s, const u8 *bssid, in wpa_bss_tmp_disallow() argument
546 bss = wpas_get_disallowed_bss(wpa_s, bssid); in wpa_bss_tmp_disallow()
559 os_memcpy(bss->bssid, bssid, ETH_ALEN); in wpa_bss_tmp_disallow()
574 if (os_memcmp(bss->bssid, tmp->bssid, ETH_ALEN) == 0) { in wpa_is_bss_tmp_disallowed()
678 wpa_bss_tmp_disallow(wpa_s, wpa_s->current_bss->bssid, in wpas_mbo_ie_trans_req()
737 MAC2STR(bss->bssid)); in mbo_build_anqp_buf()
Dscan.c59 params->bssid = wpa_s->next_scan_bssid; in wpa_supplicant_req_scan()
101 os_free((u8 *) params->bssid); in wpa_scan_free_params()
Drrm.c574 if (os_memcmp(data->bssid, broadcast_ether_addr, ETH_ALEN) != 0 && in wpas_add_beacon_rep()
575 os_memcmp(data->bssid, bss->bssid, ETH_ALEN) != 0) in wpas_add_beacon_rep()
592 os_memcpy(rep.bssid, bss->bssid, ETH_ALEN); in wpas_add_beacon_rep()
826 os_memcpy(data->bssid, req->bssid, ETH_ALEN); in wpas_rm_handle_beacon_req()
1099 MAC2STR(wpa_s->current_bss->bssid)); in wpas_beacon_rep_scan_process()
1136 MAC2STR(scan_res->res[i]->bssid), in wpas_beacon_rep_scan_process()
/hal_espressif-3.7.0/components/wpa_supplicant/src/ap/
Dieee802_11.c132 const u8 *bssid, int update, int status_code) in auth_sae_send_commit() argument
156 reply_res = esp_send_sae_auth_reply(hapd, sta->addr, bssid, WLAN_AUTH_SAE, 1, in auth_sae_send_commit()
168 const u8 *bssid) in auth_sae_send_confirm() argument
182 reply_res = esp_send_sae_auth_reply(hapd, sta->addr, bssid, WLAN_AUTH_SAE, 2, in auth_sae_send_confirm()
252 const u8 *bssid, u8 auth_transaction, u16 status_code, in sae_sm_step() argument
273 ret = auth_sae_send_commit(hapd, sta, bssid, in sae_sm_step()
297 ret = auth_sae_send_confirm(hapd, sta, bssid); in sae_sm_step()
309 ret = auth_sae_send_confirm(hapd, sta, bssid); in sae_sm_step()
321 return sae_sm_step(hapd, sta, bssid, auth_transaction, in sae_sm_step()
332 ret = auth_sae_send_commit(hapd, sta, bssid, 1, in sae_sm_step()
[all …]
Dieee802_11.h14 int auth_sae_queue(struct hostapd_data *hapd, u8 *buf, size_t len, u8 *bssid, u16 status, u32 auth_…
16 u8 *buf, size_t len, u8 *bssid,
Dhostapd.h48 int (*cb)(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid,
69 u8 bssid[ETH_ALEN]; member
Dap_config.h242 macaddr bssid; member
385 bool wpa_ap_join(struct sta_info *sta, uint8_t *bssid, uint8_t *wpa_ie,
388 bool wpa_ap_remove(u8* bssid);
/hal_espressif-3.7.0/components/wpa_supplicant/src/drivers/
Ddriver.h64 u8 bssid[ETH_ALEN]; member
135 const u8 *bssid; member
181 u8 *bssid; member
187 u8 bssid[ETH_ALEN]; member
/hal_espressif-3.7.0/components/wpa_supplicant/src/rsn_supp/
Dwpa.c199 static inline int wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid) in wpa_sm_get_bssid() argument
201 memcpy(bssid, sm->bssid, ETH_ALEN); in wpa_sm_get_bssid()
236 if (is_zero_ether_addr(dest) && is_zero_ether_addr(sm->bssid)) { in wpa_eapol_key_send()
241 if (wpa_sm_get_bssid(sm, sm->bssid) < 0) { in wpa_eapol_key_send()
245 dest = sm->bssid; in wpa_eapol_key_send()
283 u8 bssid[ETH_ALEN], *rbuf, *key_mic; in wpa_sm_key_request() local
296 if (wpa_sm_get_bssid(sm, bssid) < 0) { in wpa_sm_key_request()
343 wpa_eapol_key_send(sm, sm->ptk.kck, sm->ptk.kck_len, ver, bssid, in wpa_sm_key_request()
505 wpa_sm_ether_send(sm, sm->bssid, ETH_P_EAPOL, in wpa_supplicant_get_pmk()
639 sm->own_addr, sm->bssid, sm->snonce, in wpa_derive_ptk()
[all …]
Dwpa_ft.c51 sm->bssid, sm->pmk_r1_name, ptk, ptk_name, in wpa_derive_ptk_ft()
327 static int wpa_ft_install_ptk(struct wpa_sm *sm, const u8 *bssid) in wpa_ft_install_ptk() argument
344 if (wpa_sm_set_key(&(sm->install_ptk), alg, (u8 *)bssid, 0, 1, null_rsc, in wpa_ft_install_ptk()
372 NULL, 0, sm->bssid, NULL, 0, mdie); in wpa_ft_prepare_auth_request()
425 const u8 *bssid; in wpa_ft_process_response() local
520 bssid = target_ap; in wpa_ft_process_response()
523 sm->own_addr, bssid, sm->pmk_r1_name, &sm->ptk, in wpa_ft_process_response()
529 sm->ptk.kck, sm->ptk.kck_len, bssid, in wpa_ft_process_response()
538 wpa_sm_mark_authenticated(sm, bssid); in wpa_ft_process_response()
539 ret = wpa_ft_install_ptk(sm, bssid); in wpa_ft_process_response()
[all …]
Dpmksa_cache.c415 const u8 *bssid, void *network_ctx, in pmksa_cache_set_current() argument
424 if (bssid) in pmksa_cache_set_current()
426 MAC2STR(bssid)); in pmksa_cache_set_current()
432 if (sm->cur_pmksa == NULL && bssid) in pmksa_cache_set_current()
433 sm->cur_pmksa = pmksa_cache_get(pmksa, bssid, NULL, in pmksa_cache_set_current()
435 if (sm->cur_pmksa == NULL && try_opportunistic && bssid) in pmksa_cache_set_current()
438 bssid); in pmksa_cache_set_current()
Dpmksa_cache.h65 const u8 *bssid, void *network_ctx,
119 const u8 *bssid, in pmksa_cache_set_current() argument

12