Home
last modified time | relevance | path

Searched refs:hapd (Results 1 – 17 of 17) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/src/ap/
Dwps_hostapd.c64 static int wps_stop_registrar(struct hostapd_data *hapd, void *ctx) in wps_stop_registrar() argument
67 if (hapd != data->current_hapd && hapd->wps != NULL) in wps_stop_registrar()
68 wps_registrar_complete(hapd->wps->registrar, data->uuid_e, in wps_stop_registrar()
73 void hostapd_wps_eap_completed(struct hostapd_data *hapd) in hostapd_wps_eap_completed() argument
81 struct hostapd_data *hapd = ctx; in hostapd_wps_reg_success_cb() local
86 wpa_msg(hapd->msg_ctx, MSG_INFO, WPS_EVENT_REG_SUCCESS MACSTR " %s", in hostapd_wps_reg_success_cb()
88 data.current_hapd = hapd; in hostapd_wps_reg_success_cb()
92 wps_stop_registrar(hapd, &data); in hostapd_wps_reg_success_cb()
100 struct hostapd_data *hapd = eloop_data; in hostapd_wps_reenable_ap_pin() local
102 if (hapd->conf->ap_setup_locked) in hostapd_wps_reenable_ap_pin()
[all …]
Dwps_hostapd.h14 int hostapd_init_wps(struct hostapd_data *hapd, struct wps_data *wps_data, struct wps_context *wps);
15 int hostapd_init_wps_complete(struct hostapd_data *hapd);
16 void hostapd_deinit_wps(struct hostapd_data *hapd);
17 void hostapd_update_wps(struct hostapd_data *hapd);
18 void hostapd_wps_eap_completed(struct hostapd_data *hapd);
19 int hostapd_wps_add_pin(struct hostapd_data *hapd, const u8 *pin);
20 int hostapd_wps_button_pushed(struct hostapd_data *hapd,
22 int hostapd_wps_cancel(struct hostapd_data *hapd);
23 int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
25 void hostapd_wps_ap_pin_disable(struct hostapd_data *hapd);
[all …]
Dsta_info.c24 void hostapd_wps_eap_completed(struct hostapd_data *hapd);
26 int ap_for_each_sta(struct hostapd_data *hapd, in ap_for_each_sta() argument
27 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument
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()
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 …]
Dsta_info.h93 int ap_for_each_sta(struct hostapd_data *hapd,
94 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);
100 void hostapd_free_stas(struct hostapd_data *hapd);
102 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta,
104 void ap_sta_no_session_timeout(struct hostapd_data *hapd,
106 struct sta_info * ap_sta_add(struct hostapd_data *hapd, const u8 *addr);
107 void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta,
[all …]
Dieee802_11.c34 static const char * sae_get_password(struct hostapd_data *hapd, in sae_get_password() argument
43 password = hapd->conf->ssid.wpa_passphrase; in sae_get_password()
44 pt = hapd->conf->ssid.pt; in sae_get_password()
55 static struct wpabuf *auth_build_sae_commit(struct hostapd_data *hapd, in auth_build_sae_commit() argument
69 if (rx_id && hapd->conf->sae_pwe != SAE_PWE_FORCE_HUNT_AND_PECK) in auth_build_sae_commit()
76 password = sae_get_password(hapd, sta, rx_id, &pt); in auth_build_sae_commit()
83 sae_prepare_commit_pt(sta->sae, pt, hapd->own_addr, sta->addr, in auth_build_sae_commit()
89 sae_prepare_commit(hapd->own_addr, sta->addr, in auth_build_sae_commit()
111 static struct wpabuf *auth_build_sae_confirm(struct hostapd_data *hapd, in auth_build_sae_confirm() argument
130 static int auth_sae_send_commit(struct hostapd_data *hapd, in auth_sae_send_commit() argument
[all …]
Deap_user_db.c135 eap_user_sqlite_get(struct hostapd_data *hapd, const u8 *identity, in eap_user_sqlite_get() argument
168 bin_clear_free(hapd->tmp_eap_user.identity, in eap_user_sqlite_get()
169 hapd->tmp_eap_user.identity_len); in eap_user_sqlite_get()
170 bin_clear_free(hapd->tmp_eap_user.password, in eap_user_sqlite_get()
171 hapd->tmp_eap_user.password_len); in eap_user_sqlite_get()
172 os_memset(&hapd->tmp_eap_user, 0, sizeof(hapd->tmp_eap_user)); in eap_user_sqlite_get()
173 hapd->tmp_eap_user.phase2 = phase2; in eap_user_sqlite_get()
174 hapd->tmp_eap_user.identity = os_zalloc(identity_len + 1); in eap_user_sqlite_get()
175 if (hapd->tmp_eap_user.identity == NULL) in eap_user_sqlite_get()
177 os_memcpy(hapd->tmp_eap_user.identity, identity, identity_len); in eap_user_sqlite_get()
[all …]
Dieee802_1x.c32 static void ieee802_1x_finished(struct hostapd_data *hapd,
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()
65 static void handle_eap_response(struct hostapd_data *hapd, in handle_eap_response() argument
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
139 return eapol_auth_alloc(hapd->eapol_auth, sta->addr, flags, in ieee802_1x_alloc_eapol_sm()
154 void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf, in ieee802_1x_receive() argument
164 sta = ap_get_sta(hapd, sa); in ieee802_1x_receive()
[all …]
Dieee802_1x.h20 void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf,
23 void ieee802_1x_free_station(struct hostapd_data *hapd, struct sta_info *sta);
24 int ieee802_1x_init(struct hostapd_data *hapd);
26 ieee802_1x_alloc_eapol_sm(struct hostapd_data *hapd, struct sta_info *sta);
Dieee802_11.h13 int auth_sae_queued_addr(struct hostapd_data *hapd, const u8 *addr);
14 int auth_sae_queue(struct hostapd_data *hapd, u8 *buf, size_t len, u8 *bssid, u16 status, u32 auth_…
15 int handle_auth_sae(struct hostapd_data *hapd, struct sta_info *sta,
Dhostapd.h32 int (*ctrl_iface_init)(struct hostapd_data *hapd);
33 void (*ctrl_iface_deinit)(struct hostapd_data *hapd);
169 hostapd_get_eap_user(struct hostapd_data *hapd, const u8 *identity,
Dpmksa_cache_auth.h65 void pmksa_cache_to_eapol_data(struct hostapd_data *hapd,
Dwpa_auth.c128 struct hostapd_data *hapd = (struct hostapd_data *)esp_wifi_get_hostap_private_internal(); in wpa_auth_get_psk() local
130 if (!hapd){ in wpa_auth_get_psk()
135 struct sta_info *sta = ap_get_sta(hapd, addr); in wpa_auth_get_psk()
148 return (u8*)hostapd_get_psk(hapd->conf, addr, prev_psk); in wpa_auth_get_psk()
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/
Desp_hostap.c44 struct hostapd_data *hapd = NULL; in hostap_init() local
51 hapd = (struct hostapd_data *)os_zalloc(sizeof(struct hostapd_data)); in hostap_init()
53 if (hapd == NULL) { in hostap_init()
57 hapd->conf = (struct hostapd_bss_config *)os_zalloc(sizeof(struct hostapd_bss_config)); in hostap_init()
59 if (hapd->conf == NULL) { in hostap_init()
60 os_free(hapd); in hostap_init()
70 hapd->conf->sae_pwe = esp_wifi_get_config_sae_pwe_h2e_internal(WIFI_IF_AP); in hostap_init()
71 auth_conf->sae_pwe = hapd->conf->sae_pwe; in hostap_init()
120 hapd->conf->sae_anti_clogging_threshold = SAE_ANTI_CLOGGING_THRESHOLD; in hostap_init()
145 memcpy(hapd->conf->ssid.ssid, ssid->ssid, ssid->len); in hostap_init()
[all …]
Desp_wpa_main.c143 struct hostapd_data *hapd = (struct hostapd_data *)esp_wifi_get_hostap_private_internal(); in wpa_ap_get_wpa_ie() local
145 if (!hapd || !hapd->wpa_auth || !hapd->wpa_auth->wpa_ie) { in wpa_ap_get_wpa_ie()
149 *ie_len = hapd->wpa_auth->wpa_ie_len; in wpa_ap_get_wpa_ie()
150 return hapd->wpa_auth->wpa_ie; in wpa_ap_get_wpa_ie()
155 struct hostapd_data *hapd = (struct hostapd_data *)hapd_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()
290 static int check_n_add_wps_sta(struct hostapd_data *hapd, struct sta_info *sta_info, u8 *ies, u8 ie… in check_n_add_wps_sta() argument
[all …]
Desp_wpa3.c452 struct hostapd_data *hapd = (struct hostapd_data *)esp_wifi_get_hostap_private_internal(); in wpa3_process_rx_commit() local
455 frm = dl_list_first(&hapd->sae_commit_queue, in wpa3_process_rx_commit()
464 sta = ap_get_sta(hapd, frm->bssid); in wpa3_process_rx_commit()
466 sta = ap_sta_add(hapd, frm->bssid); in wpa3_process_rx_commit()
470 if (esp_send_sae_auth_reply(hapd, frm->bssid, frm->bssid, WLAN_AUTH_SAE, 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()
484 ap_free_sta(hapd, sta); in wpa3_process_rx_commit()
505 struct hostapd_data *hapd = (struct hostapd_data *)esp_wifi_get_hostap_private_internal(); in wpa3_process_rx_confirm() local
512 sta = ap_get_sta(hapd, frm->bssid); in wpa3_process_rx_confirm()
519 …ret = handle_auth_sae(hapd, sta, frm->msg, frm->len, frm->bssid, frm->auth_transaction, frm->statu… in wpa3_process_rx_confirm()
[all …]
Desp_hostpad_wps.c43 struct hostapd_data *hapd = hostapd_get_hapd_data(); in wifi_ap_wps_init() local
45 if (!hapd || gWpsSm) { in wifi_ap_wps_init()
83 hostapd_init_wps(hapd, sm->wps, sm->wps_ctx); in wifi_ap_wps_init()
Desp_wpa3_i.h60 int esp_send_sae_auth_reply(struct hostapd_data *hapd,