From a5944db04a9454862d3e427fc2a5d1f69b12f61f Mon Sep 17 00:00:00 2001 From: Alexander Wetzel Date: Sun, 23 Feb 2020 22:15:52 +0100 Subject: [PATCH] Add wpa_deny_ptk0_rekey to AP get_config() output Signed-off-by: Alexander Wetzel --- hostapd/ctrl_iface.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index f380926b3..6d2ecbc9c 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -1287,6 +1287,14 @@ static int hostapd_ctrl_iface_get_config(struct hostapd_data *hapd, pos += ret; } + if (hapd->conf->wpa && hapd->conf->wpa_deny_ptk0_rekey) { + ret = os_snprintf(pos, end - pos, "wpa_deny_ptk0_rekey=%d\n", + hapd->conf->wpa_deny_ptk0_rekey); + if (os_snprintf_error(end - pos, ret)) + return pos - buf; + pos += ret; + } + return pos - buf; }