Lines Matching refs:dpp_auth
59 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_qr_code()
75 wpabuf_head(hapd->dpp_auth->resp_msg), in hostapd_dpp_qr_code()
76 wpabuf_len(hapd->dpp_auth->resp_msg)); in hostapd_dpp_qr_code()
174 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_resp_retry_timeout()
193 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_resp_retry()
208 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_auth_resp_retry()
209 hapd->dpp_auth = NULL; in hostapd_dpp_auth_resp_retry()
494 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_tx_status()
501 if (!hapd->dpp_auth) { in hostapd_dpp_tx_status()
516 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_tx_status()
517 hapd->dpp_auth = NULL; in hostapd_dpp_tx_status()
522 if (hapd->dpp_auth->remove_on_tx_status) { in hostapd_dpp_tx_status()
537 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_tx_status()
538 hapd->dpp_auth = NULL; in hostapd_dpp_tx_status()
544 if (!hapd->dpp_auth) { in hostapd_dpp_tx_status()
585 if (!hapd->dpp_auth_ok_on_ack && hapd->dpp_auth->neg_freq > 0 && in hostapd_dpp_tx_status()
586 hapd->dpp_auth->curr_freq != hapd->dpp_auth->neg_freq) { in hostapd_dpp_tx_status()
589 hapd->dpp_auth->curr_freq, in hostapd_dpp_tx_status()
590 hapd->dpp_auth->neg_freq); in hostapd_dpp_tx_status()
593 if (hapd->dpp_auth->neg_freq != in hostapd_dpp_tx_status()
598 hapd->dpp_auth->neg_freq, hapd->iface->freq); in hostapd_dpp_tx_status()
610 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_reply_wait_timeout()
636 hapd->dpp_auth = NULL; in hostapd_dpp_reply_wait_timeout()
683 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_conf_wait_timeout()
694 hapd->dpp_auth = NULL; in hostapd_dpp_auth_conf_wait_timeout()
720 if (!hapd->dpp_auth) in hostapd_dpp_init_timeout()
729 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_auth_init_next()
754 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_auth_init_next()
755 hapd->dpp_auth = NULL; in hostapd_dpp_auth_init_next()
811 wpabuf_head(hapd->dpp_auth->req_msg), in hostapd_dpp_auth_init_next()
812 wpabuf_len(hapd->dpp_auth->req_msg)); in hostapd_dpp_auth_init_next()
923 if (!tcp && hapd->dpp_auth) { in hostapd_dpp_auth_init()
936 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_auth_init()
967 hapd->dpp_auth = auth; in hostapd_dpp_auth_init()
1105 if (hapd->dpp_auth) { in hostapd_dpp_rx_auth_req()
1112 hapd->dpp_auth = dpp_auth_req_rx(hapd->iface->interfaces->dpp, in hostapd_dpp_rx_auth_req()
1116 if (!hapd->dpp_auth) { in hostapd_dpp_rx_auth_req()
1120 hostapd_dpp_set_testing_options(hapd, hapd->dpp_auth); in hostapd_dpp_rx_auth_req()
1121 if (dpp_set_configurator(hapd->dpp_auth, in hostapd_dpp_rx_auth_req()
1123 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_rx_auth_req()
1124 hapd->dpp_auth = NULL; in hostapd_dpp_rx_auth_req()
1127 os_memcpy(hapd->dpp_auth->peer_mac_addr, src, ETH_ALEN); in hostapd_dpp_rx_auth_req()
1131 MAC2STR(src), hapd->dpp_auth->curr_freq, in hostapd_dpp_rx_auth_req()
1133 hostapd_drv_send_action(hapd, hapd->dpp_auth->curr_freq, 0, in hostapd_dpp_rx_auth_req()
1134 src, wpabuf_head(hapd->dpp_auth->resp_msg), in hostapd_dpp_rx_auth_req()
1135 wpabuf_len(hapd->dpp_auth->resp_msg)); in hostapd_dpp_rx_auth_req()
1243 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_build_new_key()
1261 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_gas_resp_cb()
1347 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_gas_resp_cb()
1348 hapd->dpp_auth = NULL; in hostapd_dpp_gas_resp_cb()
1354 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_start_gas_client()
1388 dpp_notify_auth_success(hapd->dpp_auth, initiator); in hostapd_dpp_auth_success()
1393 if (hapd->dpp_auth->configurator) { in hostapd_dpp_auth_success()
1395 hapd->dpp_auth->auth_success = 0; in hostapd_dpp_auth_success()
1401 if (!hapd->dpp_auth->configurator) in hostapd_dpp_auth_success()
1410 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_rx_auth_resp()
1462 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_rx_auth_conf()
1494 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_config_result_wait_timeout()
1503 hapd->dpp_auth = NULL; in hostapd_dpp_config_result_wait_timeout()
1511 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_conn_status_result_wait_timeout()
1521 hapd->dpp_auth = NULL; in hostapd_dpp_conn_status_result_wait_timeout()
1567 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_rx_conf_result()
1614 hapd->dpp_auth = NULL; in hostapd_dpp_rx_conf_result()
1638 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_rx_conn_status_result()
1662 hapd->dpp_auth = NULL; in hostapd_dpp_rx_conn_status_result()
1707 if (hapd->dpp_auth) { in hostapd_dpp_rx_presence_announcement()
1731 hapd->dpp_auth = auth; in hostapd_dpp_rx_presence_announcement()
1733 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_rx_presence_announcement()
1734 hapd->dpp_auth = NULL; in hostapd_dpp_rx_presence_announcement()
1743 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_reconfig_reply_wait_timeout()
1751 hapd->dpp_auth = NULL; in hostapd_dpp_reconfig_reply_wait_timeout()
1767 if (hapd->dpp_auth) { in hostapd_dpp_rx_reconfig_announcement()
1824 hapd->dpp_auth = auth; in hostapd_dpp_rx_reconfig_announcement()
1845 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_rx_reconfig_announcement()
1846 hapd->dpp_auth = NULL; in hostapd_dpp_rx_reconfig_announcement()
1856 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_rx_reconfig_auth_resp()
1887 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_rx_reconfig_auth_resp()
1888 hapd->dpp_auth = NULL; in hostapd_dpp_rx_reconfig_auth_resp()
3078 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_gas_req_handler()
3102 dpp_notify_auth_success(hapd->dpp_auth, 1); in hostapd_dpp_gas_req_handler()
3127 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_gas_status_handler()
3169 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_gas_status_handler()
3170 hapd->dpp_auth = NULL; in hostapd_dpp_gas_status_handler()
3355 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_stop()
3356 hapd->dpp_auth = NULL; in hostapd_dpp_stop()
3532 dpp_auth_deinit(hapd->dpp_auth); in hostapd_dpp_deinit()
3533 hapd->dpp_auth = NULL; in hostapd_dpp_deinit()