diff mbox series

[1/3] wpa_supplicant: expose DPP config object AKM

Message ID 20210208153207.108755-1-kazikcz@gmail.com
State Accepted
Headers show
Series [1/3] wpa_supplicant: expose DPP config object AKM | expand

Commit Message

MichaƂ Kazior Feb. 8, 2021, 3:32 p.m. UTC
From: Michal Kazior <michal@plume.com>

Hostapd was already exposing this. There's no
reason not to expose it in wpa_supplicant.

This allows 3rd party apps interacting with the
control interface to handle DPP events to get
configs instead of needing to dance around with
update_config=1 and save_config.

Signed-off-by: Michal Kazior <michal@plume.com>
---
 wpa_supplicant/dpp_supplicant.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jouni Malinen Feb. 9, 2021, 8:04 p.m. UTC | #1
On Mon, Feb 08, 2021 at 03:32:05PM +0000, Michal Kazior wrote:
> Hostapd was already exposing this. There's no
> reason not to expose it in wpa_supplicant.
> 
> This allows 3rd party apps interacting with the
> control interface to handle DPP events to get
> configs instead of needing to dance around with
> update_config=1 and save_config.

Thanks, patch 1 and 2 applied.
diff mbox series

Patch

diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c
index 910602e34..01e7fce26 100644
--- a/wpa_supplicant/dpp_supplicant.c
+++ b/wpa_supplicant/dpp_supplicant.c
@@ -1441,6 +1441,8 @@  static int wpas_dpp_handle_config_obj(struct wpa_supplicant *wpa_s,
 				      struct dpp_config_obj *conf)
 {
 	wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_CONF_RECEIVED);
+	wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_CONFOBJ_AKM "%s",
+		dpp_akm_str(conf->akm));
 	if (conf->ssid_len)
 		wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_CONFOBJ_SSID "%s",
 			wpa_ssid_txt(conf->ssid, conf->ssid_len));