DPP2: Chirping in wpa_supplicant Enrollee
Add a new wpa_supplicant control interface command "DPP_CHIRP own=<BI ID> iter=<count>" to request chirping, i.e., sending of Presence Announcement frames, to be started. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
1f0226770c
commit
562f77144c
7 changed files with 307 additions and 0 deletions
|
@ -131,6 +131,7 @@ struct dpp_global {
|
|||
struct dl_list tcp_init; /* struct dpp_connection */
|
||||
void *cb_ctx;
|
||||
int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth);
|
||||
void (*remove_bi)(void *ctx, struct dpp_bootstrap_info *bi);
|
||||
#endif /* CONFIG_DPP2 */
|
||||
};
|
||||
|
||||
|
@ -10333,6 +10334,10 @@ static int dpp_bootstrap_del(struct dpp_global *dpp, unsigned int id)
|
|||
if (id && bi->id != id)
|
||||
continue;
|
||||
found = 1;
|
||||
#ifdef CONFIG_DPP2
|
||||
if (dpp->remove_bi)
|
||||
dpp->remove_bi(dpp->cb_ctx, bi);
|
||||
#endif /* CONFIG_DPP2 */
|
||||
dl_list_del(&bi->list);
|
||||
dpp_bootstrap_info_free(bi);
|
||||
}
|
||||
|
@ -10903,6 +10908,7 @@ struct dpp_global * dpp_global_init(struct dpp_global_config *config)
|
|||
#ifdef CONFIG_DPP2
|
||||
dpp->cb_ctx = config->cb_ctx;
|
||||
dpp->process_conf_obj = config->process_conf_obj;
|
||||
dpp->remove_bi = config->remove_bi;
|
||||
#endif /* CONFIG_DPP2 */
|
||||
|
||||
dl_list_init(&dpp->bootstrap);
|
||||
|
|
|
@ -602,6 +602,7 @@ struct dpp_global_config {
|
|||
void *msg_ctx;
|
||||
void *cb_ctx;
|
||||
int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth);
|
||||
void (*remove_bi)(void *ctx, struct dpp_bootstrap_info *bi);
|
||||
};
|
||||
|
||||
struct dpp_global * dpp_global_init(struct dpp_global_config *config);
|
||||
|
|
|
@ -187,6 +187,7 @@ extern "C" {
|
|||
#define DPP_EVENT_PKEX_T_LIMIT "DPP-PKEX-T-LIMIT "
|
||||
#define DPP_EVENT_INTRO "DPP-INTRO "
|
||||
#define DPP_EVENT_CONF_REQ_RX "DPP-CONF-REQ-RX "
|
||||
#define DPP_EVENT_CHIRP_STOPPED "DPP-CHIRP-STOPPED "
|
||||
|
||||
/* MESH events */
|
||||
#define MESH_GROUP_STARTED "MESH-GROUP-STARTED "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue