Home
last modified time | relevance | path

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

/hal_espressif-latest/components/wpa_supplicant/src/ap/
Dsta_info.c27 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument
31 struct sta_info *sta; in ap_for_each_sta() local
33 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta()
34 if (cb(hapd, sta, ctx)) in ap_for_each_sta()
42 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument
46 s = hapd->sta_hash[STA_HASH(sta)]; in ap_get_sta()
47 while (s != NULL && os_memcmp(s->addr, sta, 6) != 0) in ap_get_sta()
53 static void ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) in ap_sta_list_del() argument
57 if (hapd->sta_list == sta) { in ap_sta_list_del()
58 hapd->sta_list = sta->next; in ap_sta_list_del()
[all …]
Dieee802_11.c24 static void sae_set_state(struct sta_info *sta, enum sae_state state, in sae_set_state() argument
28 sae_state_txt(sta->sae->state), sae_state_txt(state), in sae_set_state()
29 MAC2STR(sta->addr), reason); in sae_set_state()
30 sta->sae->state = state; in sae_set_state()
35 struct sta_info *sta, in sae_get_password() argument
56 struct sta_info *sta, int update, int status_code) in auth_build_sae_commit() argument
64 if (sta->sae->tmp) { in auth_build_sae_commit()
65 rx_id = sta->sae->tmp->pw_id; in auth_build_sae_commit()
66 use_pt = sta->sae->h2e; in auth_build_sae_commit()
76 password = sae_get_password(hapd, sta, rx_id, &pt); in auth_build_sae_commit()
[all …]
Dieee802_1x.c33 struct sta_info *sta, int success,
36 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, in ieee802_1x_send() argument
59 hostapd_send_eapol(hapd->own_addr, sta->addr, buf, len); in ieee802_1x_send()
66 struct sta_info *sta, struct eap_hdr *eap, in handle_eap_response() argument
70 struct eapol_state_machine *sm = sta->eapol_sm; in handle_eap_response()
92 static void handle_eap(struct hostapd_data *hapd, struct sta_info *sta, in handle_eap() argument
124 handle_eap_response(hapd, sta, eap, eap_len); in handle_eap()
132 ieee802_1x_alloc_eapol_sm(struct hostapd_data *hapd, struct sta_info *sta) in ieee802_1x_alloc_eapol_sm() argument
136 if (sta->wpa_sm) { in ieee802_1x_alloc_eapol_sm()
139 return eapol_auth_alloc(hapd->eapol_auth, sta->addr, flags, in ieee802_1x_alloc_eapol_sm()
[all …]
Dsta_info.h94 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
97 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta);
98 void ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta);
99 void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
102 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta,
105 struct sta_info *sta);
107 void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta,
109 void ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta,
113 struct sta_info *sta, void *ctx);
115 int ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta,
[all …]
Dieee802_1x.h23 void ieee802_1x_free_station(struct hostapd_data *hapd, struct sta_info *sta);
26 ieee802_1x_alloc_eapol_sm(struct hostapd_data *hapd, struct sta_info *sta);
Dhostapd.h106 #define STA_HASH(sta) (sta[5] & 0xf) argument
Dieee802_11.h15 int handle_auth_sae(struct hostapd_data *hapd, struct sta_info *sta,
Dwps_hostapd.c326 struct sta_info *sta, void *ctx) in ap_sta_server_sm_deinit() argument
328 ieee802_1x_free_station(hapd, sta); in ap_sta_server_sm_deinit()
Dap_config.h385 bool hostap_new_assoc_sta(struct sta_info *sta, uint8_t *bssid, uint8_t *wpa_ie,
Dwpa_auth.c135 struct sta_info *sta = ap_get_sta(hapd, addr); in wpa_auth_get_psk() local
136 if (sta && sta->auth_alg == WLAN_AUTH_SAE) { in wpa_auth_get_psk()
137 if (!sta->sae || prev_psk) in wpa_auth_get_psk()
139 return sta->sae->pmk; in wpa_auth_get_psk()
141 if (sta && wpa_auth_uses_sae(sta->wpa_sm)) { in wpa_auth_get_psk()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/
Desp_hostap.c352 bool hostap_new_assoc_sta(struct sta_info *sta, uint8_t *bssid, uint8_t *wpa_ie, in hostap_new_assoc_sta() argument
361 if (!sta || !bssid || !wpa_ie) { in hostap_new_assoc_sta()
367 if (sta->wpa_sm) { in hostap_new_assoc_sta()
368 wpa_auth_sta_deinit(sta->wpa_sm); in hostap_new_assoc_sta()
371 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, bssid); in hostap_new_assoc_sta()
372 wpa_printf(MSG_DEBUG, "init wpa sm=%p", sta->wpa_sm); in hostap_new_assoc_sta()
374 if (sta->wpa_sm == NULL) { in hostap_new_assoc_sta()
379 … res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, wpa_ie, wpa_ie_len, rsnxe, rsnxe_len); in hostap_new_assoc_sta()
382 if (wpa_auth_uses_sae(sta->wpa_sm) && sta->sae && in hostap_new_assoc_sta()
383 sta->sae->state == SAE_ACCEPTED) { in hostap_new_assoc_sta()
[all …]
Desp_wpa3.c453 struct sta_info *sta = NULL; in wpa3_process_rx_commit() local
464 sta = ap_get_sta(hapd, frm->bssid); in wpa3_process_rx_commit()
465 if (!sta) { in wpa3_process_rx_commit()
466 sta = ap_sta_add(hapd, frm->bssid); in wpa3_process_rx_commit()
467 if (!sta) { in wpa3_process_rx_commit()
479 if (sta->lock && os_semphr_take(sta->lock, 0)) { in wpa3_process_rx_commit()
480 sta->sae_commit_processing = true; in wpa3_process_rx_commit()
481 …ret = handle_auth_sae(hapd, sta, frm->msg, frm->len, frm->bssid, frm->auth_transaction, frm->statu… in wpa3_process_rx_commit()
483 if (sta->remove_pending) { in wpa3_process_rx_commit()
484 ap_free_sta(hapd, sta); in wpa3_process_rx_commit()
[all …]
Desp_wpa_main.c156 struct sta_info *sta = (struct sta_info *)sm_data; in wpa_ap_rx_eapol() local
157 if (!hapd || !sta) { in wpa_ap_rx_eapol()
158 wpa_printf(MSG_DEBUG, "hapd=%p sta=%p", hapd, sta); in wpa_ap_rx_eapol()
166 ieee802_1x_receive(hapd, sta->addr, data, data_len); in wpa_ap_rx_eapol()
170 wpa_receive(hapd->wpa_auth, sta->wpa_sm, data, data_len); in wpa_ap_rx_eapol()
177 struct sta_info *sta = sm_data; in wpa_ap_get_peer_spp_msg() local
179 if (!sta || !sta->wpa_sm) { in wpa_ap_get_peer_spp_msg()
183 *spp_cap = sta->wpa_sm->spp_sup.capable; in wpa_ap_get_peer_spp_msg()
184 *spp_req = sta->wpa_sm->spp_sup.require; in wpa_ap_get_peer_spp_msg()
322 static bool hostap_sta_join(void **sta, u8 *bssid, u8 *wpa_ie, u8 wpa_ie_len, u8 *rsnxe, u8 rsnxe_l… in hostap_sta_join() argument
[all …]
Desp_wps.c823 os_memcpy(config->sta.ssid, sm->creds[0].ssid, sm->creds[0].ssid_len); in wps_finish()
824 os_memcpy(config->sta.password, sm->creds[0].key, sm->creds[0].key_len); in wps_finish()
825 os_memcpy(config->sta.bssid, sm->bssid, ETH_ALEN); in wps_finish()
830 config->sta.threshold.authmode = WIFI_AUTH_WPA_PSK; in wps_finish()
833 config->sta.bssid_set = 0; in wps_finish()
834 config->sta.sae_pwe_h2e = 0; in wps_finish()
1628 os_memcpy(wifi_config.sta.bssid, sm->bssid, ETH_ALEN); in wifi_wps_scan_done()
1629 os_memcpy(wifi_config.sta.ssid, (char *)sm->creds[0].ssid, sm->creds[0].ssid_len); in wifi_wps_scan_done()
1630 wifi_config.sta.bssid_set = 1; in wifi_wps_scan_done()
1631 wifi_config.sta.channel = sm->channel; in wifi_wps_scan_done()
[all …]
Desp_common.c181 if (config->sta.bssid_set) { in clear_bssid_flag()
182 config->sta.bssid_set = 0; in clear_bssid_flag()
562 os_memcpy(config->sta.bssid, bss->bssid, ETH_ALEN); in wpa_supplicant_connect()
563 config->sta.bssid_set = 1; in wpa_supplicant_connect()
Desp_dpp.c219 os_memcpy(wifi_cfg->sta.ssid, conf->ssid, conf->ssid_len); in esp_dpp_handle_config_obj()
224 os_memcpy(wifi_cfg->sta.password, conf->passphrase, in esp_dpp_handle_config_obj()
225 sizeof(wifi_cfg->sta.password)); in esp_dpp_handle_config_obj()
227 wifi_cfg->sta.pmf_cfg.required = true; in esp_dpp_handle_config_obj()
/hal_espressif-latest/components/esp_wifi/src/
Dwifi_default_ap.c25 memcpy(wifi_sta_ip_mac_list->sta[i].mac, wifi_sta_list->sta[i].mac, 6); in esp_wifi_ap_get_sta_list_with_ip()
26 memset(&wifi_sta_ip_mac_list->sta[i].ip, 0, sizeof(esp_ip4_addr_t)); in esp_wifi_ap_get_sta_list_with_ip()
28 return esp_netif_dhcps_get_clients_by_mac(ap, num, wifi_sta_ip_mac_list->sta); in esp_wifi_ap_get_sta_list_with_ip()
/hal_espressif-latest/components/esp_wifi/include/
Desp_wifi_ap_get_sta_list.h21 esp_netif_pair_mac_ip_t sta[ESP_WIFI_MAX_CONN_NUM]; /**< Connected stations */ member
Desp_wifi_types.h371 wifi_sta_config_t sta; /**< configuration of STA */ member
398 wifi_sta_info_t sta[ESP_WIFI_MAX_CONN_NUM]; /**< station list */ member
Desp_wifi.h951 esp_err_t esp_wifi_ap_get_sta_list(wifi_sta_list_t *sta);
/hal_espressif-latest/components/wpa_supplicant/src/eapol_auth/
Deapol_auth_sm.c30 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 1)
32 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 0)
38 #define abortAuth() sm->eapol->cb.abort_auth(sm->eapol->conf.ctx, sm->sta)
39 #define txKey() sm->eapol->cb.tx_key(sm->eapol->conf.ctx, sm->sta)
104 sm->eapol->cb.eapol_send(sm->eapol->conf.ctx, sm->sta, in eapol_auth_tx_canned_eap()
133 sm->eapol->cb.eapol_send(sm->eapol->conf.ctx, sm->sta, in eapol_auth_tx_req()
239 sm->eapol->cb.finished(sm->eapol->conf.ctx, sm->sta, 0, in SM_STATE()
297 sm->eapol->cb.finished(sm->eapol->conf.ctx, sm->sta, 0, in SM_STATE()
312 sm->eapol->cb.finished(sm->eapol->conf.ctx, sm->sta, 1, in SM_STATE()
619 sm->eapol->cb.eapol_event(sm->eapol->conf.ctx, sm->sta, in SM_STATE()
[all …]
Deapol_auth_sm_i.h169 void *sta; /* station context pointer to use in callbacks */ member
/hal_espressif-latest/zephyr/port/wifi/
Dwifi_stubs.c1039 esp_err_t esp_wifi_ap_get_sta_list(wifi_sta_list_t *sta) in esp_wifi_ap_get_sta_list() argument
1041 ARG_UNUSED(sta); in esp_wifi_ap_get_sta_list()
/hal_espressif-latest/components/esp_wifi/
DKconfig532 Enable this option with BTM and RRM enabled in sta config
/hal_espressif-latest/components/wpa_supplicant/src/rsn_supp/
Dwpa.c2385 sm->pmf_cfg = wifi_cfg.sta.pmf_cfg; in wpa_set_bss()