Lines Matching refs:dpp_auth
41 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_qr_code()
57 wpabuf_head(hapd->dpp_auth->resp_msg), in hostapd_dpp_qr_code()
58 wpabuf_len(hapd->dpp_auth->resp_msg)); in hostapd_dpp_qr_code()
69 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_resp_retry_timeout()
88 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_resp_retry()
103 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_auth_resp_retry()
104 hapd->dpp_auth = NULL; in hostapd_dpp_auth_resp_retry()
125 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_tx_status()
132 if (!hapd->dpp_auth) { in hostapd_dpp_tx_status()
142 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_tx_status()
143 hapd->dpp_auth = NULL; in hostapd_dpp_tx_status()
148 if (hapd->dpp_auth->remove_on_tx_status) { in hostapd_dpp_tx_status()
157 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_tx_status()
158 hapd->dpp_auth = NULL; in hostapd_dpp_tx_status()
187 if (!hapd->dpp_auth_ok_on_ack && hapd->dpp_auth->neg_freq > 0 && in hostapd_dpp_tx_status()
188 hapd->dpp_auth->curr_freq != hapd->dpp_auth->neg_freq) { in hostapd_dpp_tx_status()
191 hapd->dpp_auth->curr_freq, in hostapd_dpp_tx_status()
192 hapd->dpp_auth->neg_freq); in hostapd_dpp_tx_status()
195 if (hapd->dpp_auth->neg_freq != in hostapd_dpp_tx_status()
200 hapd->dpp_auth->neg_freq, hapd->iface->freq); in hostapd_dpp_tx_status()
212 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_reply_wait_timeout()
238 hapd->dpp_auth = NULL; in hostapd_dpp_reply_wait_timeout()
303 if (!hapd->dpp_auth) in hostapd_dpp_init_timeout()
312 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_init_next()
337 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_auth_init_next()
338 hapd->dpp_auth = NULL; in hostapd_dpp_auth_init_next()
392 wpabuf_head(hapd->dpp_auth->req_msg), in hostapd_dpp_auth_init_next()
393 wpabuf_len(hapd->dpp_auth->req_msg)); in hostapd_dpp_auth_init_next()
452 if (hapd->dpp_auth) { in hostapd_dpp_auth_init()
459 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_auth_init()
462 hapd->dpp_auth = dpp_auth_init(hapd->msg_ctx, peer_bi, own_bi, in hostapd_dpp_auth_init()
466 if (!hapd->dpp_auth) in hostapd_dpp_auth_init()
468 hostapd_dpp_set_testing_options(hapd, hapd->dpp_auth); in hostapd_dpp_auth_init()
470 hapd->dpp_auth, cmd) < 0) { in hostapd_dpp_auth_init()
471 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_auth_init()
472 hapd->dpp_auth = NULL; in hostapd_dpp_auth_init()
476 hapd->dpp_auth->neg_freq = neg_freq; in hostapd_dpp_auth_init()
479 os_memcpy(hapd->dpp_auth->peer_mac_addr, peer_bi->mac_addr, in hostapd_dpp_auth_init()
575 if (hapd->dpp_auth) { in hostapd_dpp_rx_auth_req()
582 hapd->dpp_auth = dpp_auth_req_rx(hapd->msg_ctx, hapd->dpp_allowed_roles, in hostapd_dpp_rx_auth_req()
585 if (!hapd->dpp_auth) { in hostapd_dpp_rx_auth_req()
589 hostapd_dpp_set_testing_options(hapd, hapd->dpp_auth); in hostapd_dpp_rx_auth_req()
591 hapd->dpp_auth, in hostapd_dpp_rx_auth_req()
593 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_rx_auth_req()
594 hapd->dpp_auth = NULL; in hostapd_dpp_rx_auth_req()
597 os_memcpy(hapd->dpp_auth->peer_mac_addr, src, ETH_ALEN); in hostapd_dpp_rx_auth_req()
601 MAC2STR(src), hapd->dpp_auth->curr_freq, in hostapd_dpp_rx_auth_req()
603 hostapd_drv_send_action(hapd, hapd->dpp_auth->curr_freq, 0, in hostapd_dpp_rx_auth_req()
604 src, wpabuf_head(hapd->dpp_auth->resp_msg), in hostapd_dpp_rx_auth_req()
605 wpabuf_len(hapd->dpp_auth->resp_msg)); in hostapd_dpp_rx_auth_req()
687 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_gas_resp_cb()
759 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_gas_resp_cb()
760 hapd->dpp_auth = NULL; in hostapd_dpp_gas_resp_cb()
766 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_start_gas_client()
811 if (hapd->dpp_auth->configurator) { in hostapd_dpp_auth_success()
813 hapd->dpp_auth->auth_success = 0; in hostapd_dpp_auth_success()
819 if (!hapd->dpp_auth->configurator) in hostapd_dpp_auth_success()
828 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_rx_auth_resp()
880 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_rx_auth_conf()
912 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_config_result_wait_timeout()
921 hapd->dpp_auth = NULL; in hostapd_dpp_config_result_wait_timeout()
928 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_rx_conf_result()
955 hapd->dpp_auth = NULL; in hostapd_dpp_rx_conf_result()
1431 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_gas_req_handler()
1461 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_gas_status_handler()
1489 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_gas_status_handler()
1490 hapd->dpp_auth = NULL; in hostapd_dpp_gas_status_handler()
1628 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_stop()
1629 hapd->dpp_auth = NULL; in hostapd_dpp_stop()
1719 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_deinit()
1720 hapd->dpp_auth = NULL; in hostapd_dpp_deinit()