From: Alexander Wetzel Date: Sun, 23 Feb 2020 21:15:52 +0000 (+0100) Subject: Add wpa_deny_ptk0_rekey to AP get_config() output X-Git-Tag: hostap_2_10~1753 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5944db04a9454862d3e427fc2a5d1f69b12f61f;p=thirdparty%2Fhostap.git Add wpa_deny_ptk0_rekey to AP get_config() output Signed-off-by: Alexander Wetzel --- 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; }