Add inactive_msec into STA output
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 8 Apr 2016 15:38:50 +0000 (18:38 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 8 Apr 2016 21:30:49 +0000 (00:30 +0300)
This allows external programs to fetch the driver inactivity value for a
specific STA ("STA <addr>" hostapd control interface command).

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ctrl_iface_ap.c

index 317b238..8a9965b 100644 (file)
@@ -36,9 +36,9 @@ static int hostapd_get_sta_tx_rx(struct hostapd_data *hapd,
                return 0;
 
        ret = os_snprintf(buf, buflen, "rx_packets=%lu\ntx_packets=%lu\n"
-                         "rx_bytes=%llu\ntx_bytes=%llu\n",
+                         "rx_bytes=%llu\ntx_bytes=%llu\ninactive_msec=%lu\n",
                          data.rx_packets, data.tx_packets,
-                         data.rx_bytes, data.tx_bytes);
+                         data.rx_bytes, data.tx_bytes, data.inactive_msec);
        if (os_snprintf_error(buflen, ret))
                return 0;
        return ret;