Searched defs:wpa_auth (Results 1 - 19 of 19) sorted by relevance

/external/wpa_supplicant_8/hostapd/src/ap/
H A Dpeerkey_auth.c16 #include "wpa_auth.h"
25 struct wpa_authenticator *wpa_auth = eloop_ctx;
50 static void wpa_smk_send_error(struct wpa_authenticator *wpa_auth, argument
59 wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG,
74 __wpa_send_eapol(wpa_auth, sm,
81 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, argument
106 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) ==
111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK,
113 /* FIX: wpa_stsl_remove(wpa_auth, neg); */
133 wpa_auth_logger(wpa_auth, searc
145 wpa_send_smk_m4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk) argument
198 wpa_send_smk_m5(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk, const u8 *peer) argument
255 wpa_smk_m3(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument
326 wpa_smk_error(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument
369 wpa_stsl_remove(struct wpa_authenticator *wpa_auth, struct wpa_stsl_negotiation *neg) argument
[all...]
H A Dwpa_auth_ie.c16 #include "wpa_auth.h"
323 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) argument
330 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) {
331 res = wpa_write_rsn_ie(&wpa_auth->conf,
338 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) {
339 res = wpa_write_mdie(&wpa_auth->conf, pos,
346 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) {
347 res = wpa_write_wpa_ie(&wpa_auth->conf,
354 os_free(wpa_auth->wpa_ie);
355 wpa_auth
401 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len) argument
[all...]
H A Dhostapd.h89 struct wpa_authenticator *wpa_auth; member in struct:hostapd_data
H A Dwpa_auth_ft.c19 #include "wpa_auth.h"
25 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, argument
28 if (wpa_auth->cb.send_ether == NULL)
31 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB,
36 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, argument
39 if (wpa_auth->cb.send_ft_action == NULL)
41 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst,
47 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, cons argument
183 wpa_ft_store_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0, const u8 *pmk_r0_name, int pairwise) argument
208 wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0_name, u8 *pmk_r0, int *pairwise) argument
233 wpa_ft_store_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1, const u8 *pmk_r1_name, int pairwise) argument
258 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, int *pairwise) argument
283 wpa_ft_pull_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *s1kh_id, const u8 *r0kh_id, size_t r0kh_id_len, const u8 *pmk_r0_name) argument
375 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
702 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
1142 wpa_ft_rrb_rx_request(struct wpa_authenticator *wpa_auth, const u8 *current_ap, const u8 *sta_addr, const u8 *body, size_t len) argument
1204 wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1288 wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1354 wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1428 wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1548 wpa_ft_generate_pmk_r1(struct wpa_authenticator *wpa_auth, struct wpa_ft_pmk_r0_sa *pmk_r0, struct ft_remote_r1kh *r1kh, const u8 *s1kh_id, int pairwise) argument
1584 wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
[all...]
H A Dwpa_auth_i.h25 struct wpa_authenticator *wpa_auth; member in struct:wpa_state_machine
190 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
192 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr,
194 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
199 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
202 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
207 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth,
209 void wpa_smk_error(struct wpa_authenticator *wpa_auth,
211 void wpa_smk_m1(struct wpa_authenticator *wpa_auth,
213 void wpa_smk_m3(struct wpa_authenticator *wpa_auth,
[all...]
H A Dwpa_auth.c23 #include "wpa_auth.h"
37 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth,
40 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth,
42 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth,
58 struct wpa_authenticator *wpa_auth, const u8 *addr)
60 if (wpa_auth->cb.mic_failure_report)
61 wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr);
65 static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, argument
69 if (wpa_auth
57 wpa_auth_mic_failure_report( struct wpa_authenticator *wpa_auth, const u8 *addr) argument
74 wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) argument
83 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *prev_psk) argument
92 wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) argument
101 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
113 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
123 wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) argument
133 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument
143 wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) argument
153 wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) argument
162 wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *fmt, ...) argument
187 wpa_sta_disconnect(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
215 struct wpa_authenticator *wpa_auth = eloop_ctx; local
235 struct wpa_authenticator *wpa_auth = eloop_ctx; local
256 struct wpa_authenticator *wpa_auth = eloop_ctx; local
276 struct wpa_authenticator *wpa_auth = ctx; local
300 wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
330 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) argument
389 struct wpa_authenticator *wpa_auth; local
445 wpa_init_keys(struct wpa_authenticator *wpa_auth) argument
462 wpa_deinit(struct wpa_authenticator *wpa_auth) argument
499 wpa_reconfig(struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf) argument
528 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
544 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument
674 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument
723 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument
754 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument
1212 struct wpa_authenticator *wpa_auth = eloop_ctx; local
1222 __wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr, int force_version) argument
1386 wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr) argument
1609 wpa_group_ensure_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2119 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local
2351 wpa_gtk_update(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2383 wpa_group_gtk_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2431 wpa_group_setkeys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2466 wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2490 wpa_group_setkeysdone(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2505 wpa_group_sm_step(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2581 wpa_gtk_rekey(struct wpa_authenticator *wpa_auth) argument
2633 wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen) argument
2793 wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) argument
2852 wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) argument
2877 wpa_auth_pmksa_add_preauth(struct wpa_authenticator *wpa_auth, const u8 *pmk, size_t len, const u8 *sta_addr, int session_timeout, struct eapol_state_machine *eapol) argument
2895 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) argument
2946 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument
[all...]
/external/wpa_supplicant_8/src/ap/
H A Dpeerkey_auth.c16 #include "wpa_auth.h"
25 struct wpa_authenticator *wpa_auth = eloop_ctx;
50 static void wpa_smk_send_error(struct wpa_authenticator *wpa_auth, argument
59 wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG,
74 __wpa_send_eapol(wpa_auth, sm,
81 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, argument
106 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) ==
111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK,
113 /* FIX: wpa_stsl_remove(wpa_auth, neg); */
133 wpa_auth_logger(wpa_auth, searc
145 wpa_send_smk_m4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk) argument
198 wpa_send_smk_m5(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk, const u8 *peer) argument
255 wpa_smk_m3(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument
326 wpa_smk_error(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument
369 wpa_stsl_remove(struct wpa_authenticator *wpa_auth, struct wpa_stsl_negotiation *neg) argument
[all...]
H A Dwpa_auth_ie.c16 #include "wpa_auth.h"
323 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) argument
330 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) {
331 res = wpa_write_rsn_ie(&wpa_auth->conf,
338 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) {
339 res = wpa_write_mdie(&wpa_auth->conf, pos,
346 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) {
347 res = wpa_write_wpa_ie(&wpa_auth->conf,
354 os_free(wpa_auth->wpa_ie);
355 wpa_auth
401 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len) argument
[all...]
H A Dhostapd.h89 struct wpa_authenticator *wpa_auth; member in struct:hostapd_data
H A Dwpa_auth_ft.c19 #include "wpa_auth.h"
25 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, argument
28 if (wpa_auth->cb.send_ether == NULL)
31 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB,
36 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, argument
39 if (wpa_auth->cb.send_ft_action == NULL)
41 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst,
47 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, cons argument
183 wpa_ft_store_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0, const u8 *pmk_r0_name, int pairwise) argument
208 wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0_name, u8 *pmk_r0, int *pairwise) argument
233 wpa_ft_store_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1, const u8 *pmk_r1_name, int pairwise) argument
258 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, int *pairwise) argument
283 wpa_ft_pull_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *s1kh_id, const u8 *r0kh_id, size_t r0kh_id_len, const u8 *pmk_r0_name) argument
375 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
702 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
1142 wpa_ft_rrb_rx_request(struct wpa_authenticator *wpa_auth, const u8 *current_ap, const u8 *sta_addr, const u8 *body, size_t len) argument
1204 wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1288 wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1354 wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1428 wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1548 wpa_ft_generate_pmk_r1(struct wpa_authenticator *wpa_auth, struct wpa_ft_pmk_r0_sa *pmk_r0, struct ft_remote_r1kh *r1kh, const u8 *s1kh_id, int pairwise) argument
1584 wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
[all...]
H A Dwpa_auth_i.h25 struct wpa_authenticator *wpa_auth; member in struct:wpa_state_machine
190 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
192 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr,
194 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
199 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
202 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
207 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth,
209 void wpa_smk_error(struct wpa_authenticator *wpa_auth,
211 void wpa_smk_m1(struct wpa_authenticator *wpa_auth,
213 void wpa_smk_m3(struct wpa_authenticator *wpa_auth,
[all...]
H A Dwpa_auth.c23 #include "wpa_auth.h"
37 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth,
40 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth,
42 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth,
58 struct wpa_authenticator *wpa_auth, const u8 *addr)
60 if (wpa_auth->cb.mic_failure_report)
61 wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr);
65 static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, argument
69 if (wpa_auth
57 wpa_auth_mic_failure_report( struct wpa_authenticator *wpa_auth, const u8 *addr) argument
74 wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) argument
83 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *prev_psk) argument
92 wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) argument
101 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
113 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
123 wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) argument
133 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument
143 wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) argument
153 wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) argument
162 wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *fmt, ...) argument
187 wpa_sta_disconnect(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
215 struct wpa_authenticator *wpa_auth = eloop_ctx; local
235 struct wpa_authenticator *wpa_auth = eloop_ctx; local
256 struct wpa_authenticator *wpa_auth = eloop_ctx; local
276 struct wpa_authenticator *wpa_auth = ctx; local
300 wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
330 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) argument
389 struct wpa_authenticator *wpa_auth; local
445 wpa_init_keys(struct wpa_authenticator *wpa_auth) argument
462 wpa_deinit(struct wpa_authenticator *wpa_auth) argument
499 wpa_reconfig(struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf) argument
528 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
544 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument
674 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument
723 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument
754 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument
1212 struct wpa_authenticator *wpa_auth = eloop_ctx; local
1222 __wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr, int force_version) argument
1386 wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr) argument
1609 wpa_group_ensure_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2119 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local
2351 wpa_gtk_update(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2383 wpa_group_gtk_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2431 wpa_group_setkeys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2466 wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2490 wpa_group_setkeysdone(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2505 wpa_group_sm_step(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2581 wpa_gtk_rekey(struct wpa_authenticator *wpa_auth) argument
2633 wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen) argument
2793 wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) argument
2852 wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) argument
2877 wpa_auth_pmksa_add_preauth(struct wpa_authenticator *wpa_auth, const u8 *pmk, size_t len, const u8 *sta_addr, int session_timeout, struct eapol_state_machine *eapol) argument
2895 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) argument
2946 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dpeerkey_auth.c16 #include "wpa_auth.h"
25 struct wpa_authenticator *wpa_auth = eloop_ctx;
50 static void wpa_smk_send_error(struct wpa_authenticator *wpa_auth, argument
59 wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG,
74 __wpa_send_eapol(wpa_auth, sm,
81 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, argument
106 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) ==
111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK,
113 /* FIX: wpa_stsl_remove(wpa_auth, neg); */
133 wpa_auth_logger(wpa_auth, searc
145 wpa_send_smk_m4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk) argument
198 wpa_send_smk_m5(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key, struct wpa_eapol_ie_parse *kde, const u8 *smk, const u8 *peer) argument
255 wpa_smk_m3(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument
326 wpa_smk_error(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_key *key) argument
369 wpa_stsl_remove(struct wpa_authenticator *wpa_auth, struct wpa_stsl_negotiation *neg) argument
[all...]
H A Dwpa_auth_ie.c16 #include "wpa_auth.h"
323 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) argument
330 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) {
331 res = wpa_write_rsn_ie(&wpa_auth->conf,
338 if (wpa_key_mgmt_ft(wpa_auth->conf.wpa_key_mgmt)) {
339 res = wpa_write_mdie(&wpa_auth->conf, pos,
346 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) {
347 res = wpa_write_wpa_ie(&wpa_auth->conf,
354 os_free(wpa_auth->wpa_ie);
355 wpa_auth
401 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len) argument
[all...]
H A Dhostapd.h89 struct wpa_authenticator *wpa_auth; member in struct:hostapd_data
H A Dwpa_auth_ft.c19 #include "wpa_auth.h"
25 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, argument
28 if (wpa_auth->cb.send_ether == NULL)
31 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB,
36 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, argument
39 if (wpa_auth->cb.send_ft_action == NULL)
41 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst,
47 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, cons argument
183 wpa_ft_store_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0, const u8 *pmk_r0_name, int pairwise) argument
208 wpa_ft_fetch_pmk_r0(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r0_name, u8 *pmk_r0, int *pairwise) argument
233 wpa_ft_store_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1, const u8 *pmk_r1_name, int pairwise) argument
258 wpa_ft_fetch_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *spa, const u8 *pmk_r1_name, u8 *pmk_r1, int *pairwise) argument
283 wpa_ft_pull_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *s1kh_id, const u8 *r0kh_id, size_t r0kh_id_len, const u8 *pmk_r0_name) argument
375 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
702 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
1142 wpa_ft_rrb_rx_request(struct wpa_authenticator *wpa_auth, const u8 *current_ap, const u8 *sta_addr, const u8 *body, size_t len) argument
1204 wpa_ft_rrb_rx_pull(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1288 wpa_ft_rrb_rx_resp(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1354 wpa_ft_rrb_rx_push(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1428 wpa_ft_rrb_rx(struct wpa_authenticator *wpa_auth, const u8 *src_addr, const u8 *data, size_t data_len) argument
1548 wpa_ft_generate_pmk_r1(struct wpa_authenticator *wpa_auth, struct wpa_ft_pmk_r0_sa *pmk_r0, struct ft_remote_r1kh *r1kh, const u8 *s1kh_id, int pairwise) argument
1584 wpa_ft_push_pmk_r1(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
[all...]
H A Dwpa_auth_i.h25 struct wpa_authenticator *wpa_auth; member in struct:wpa_state_machine
190 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
192 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr,
194 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
199 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
202 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
207 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth,
209 void wpa_smk_error(struct wpa_authenticator *wpa_auth,
211 void wpa_smk_m1(struct wpa_authenticator *wpa_auth,
213 void wpa_smk_m3(struct wpa_authenticator *wpa_auth,
[all...]
H A Dwpa_auth.c23 #include "wpa_auth.h"
37 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth,
40 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth,
42 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth,
58 struct wpa_authenticator *wpa_auth, const u8 *addr)
60 if (wpa_auth->cb.mic_failure_report)
61 wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr);
65 static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, argument
69 if (wpa_auth
57 wpa_auth_mic_failure_report( struct wpa_authenticator *wpa_auth, const u8 *addr) argument
74 wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) argument
83 wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *prev_psk) argument
92 wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) argument
101 wpa_auth_set_key(struct wpa_authenticator *wpa_auth, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) argument
113 wpa_auth_get_seqnum(struct wpa_authenticator *wpa_auth, const u8 *addr, int idx, u8 *seq) argument
123 wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) argument
133 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument
143 wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) argument
153 wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) argument
162 wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *fmt, ...) argument
187 wpa_sta_disconnect(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
215 struct wpa_authenticator *wpa_auth = eloop_ctx; local
235 struct wpa_authenticator *wpa_auth = eloop_ctx; local
256 struct wpa_authenticator *wpa_auth = eloop_ctx; local
276 struct wpa_authenticator *wpa_auth = ctx; local
300 wpa_group_init_gmk_and_counter(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
330 wpa_group_init(struct wpa_authenticator *wpa_auth, int vlan_id, int delay_init) argument
389 struct wpa_authenticator *wpa_auth; local
445 wpa_init_keys(struct wpa_authenticator *wpa_auth) argument
462 wpa_deinit(struct wpa_authenticator *wpa_auth) argument
499 wpa_reconfig(struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf) argument
528 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr) argument
544 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument
674 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument
723 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument
754 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument
1212 struct wpa_authenticator *wpa_auth = eloop_ctx; local
1222 __wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr, int force_version) argument
1386 wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr) argument
1609 wpa_group_ensure_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2119 struct wpa_authenticator *wpa_auth = sm->wpa_auth; local
2351 wpa_gtk_update(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2383 wpa_group_gtk_init(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2431 wpa_group_setkeys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2466 wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2490 wpa_group_setkeysdone(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2505 wpa_group_sm_step(struct wpa_authenticator *wpa_auth, struct wpa_group *group) argument
2581 wpa_gtk_rekey(struct wpa_authenticator *wpa_auth) argument
2633 wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen) argument
2793 wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) argument
2852 wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) argument
2877 wpa_auth_pmksa_add_preauth(struct wpa_authenticator *wpa_auth, const u8 *pmk, size_t len, const u8 *sta_addr, int session_timeout, struct eapol_state_machine *eapol) argument
2895 wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) argument
2946 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument
[all...]
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
H A Ddriver_broadcom.c532 int wpa_auth; local
558 wpa_auth = 1;
562 wpa_auth = 2;
566 wpa_auth = 255;
576 broadcom_ioctl(drv, WLC_SET_WPA_AUTH, &wpa_auth,
577 sizeof(wpa_auth)) < 0 ||

Completed in 1243 milliseconds