]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add wpa_deny_ptk0_rekey to AP get_config() output
authorAlexander Wetzel <alexander@wetzel-home.de>
Sun, 23 Feb 2020 21:15:52 +0000 (22:15 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 23 Feb 2020 21:58:19 +0000 (23:58 +0200)
Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
hostapd/ctrl_iface.c

index f380926b3d880e042c565ffc00f7ac85bba59da9..6d2ecbc9c2759236482636e0fe87ed47b40c9e3e 100644 (file)
@@ -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;
 }