]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Add Beacon interval and DTIM period into STATUS command
authorbhagavathi perumal s <bperumal@qti.qualcomm.com>
Fri, 6 Oct 2017 15:03:25 +0000 (20:33 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 31 Oct 2017 09:45:29 +0000 (11:45 +0200)
Signed-off-by: bhagavathi perumal s <bperumal@qti.qualcomm.com>
src/ap/ctrl_iface_ap.c

index 3ff45c40cce6fc60d6913301ecd98e2f767ff4fc..1b0aaa9274ef933518a1aefe022b23fd9a9db185 100644 (file)
@@ -646,13 +646,17 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
                          "channel=%u\n"
                          "secondary_channel=%d\n"
                          "ieee80211n=%d\n"
-                         "ieee80211ac=%d\n",
+                         "ieee80211ac=%d\n"
+                         "beacon_int=%u\n"
+                         "dtim_period=%d\n",
                          iface->conf->channel,
                          iface->conf->ieee80211n && !hapd->conf->disable_11n ?
                          iface->conf->secondary_channel : 0,
                          iface->conf->ieee80211n && !hapd->conf->disable_11n,
                          iface->conf->ieee80211ac &&
-                         !hapd->conf->disable_11ac);
+                         !hapd->conf->disable_11ac,
+                         iface->conf->beacon_int,
+                         hapd->conf->dtim_period);
        if (os_snprintf_error(buflen - len, ret))
                return len;
        len += ret;