aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2014-03-05 08:23:42 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-28 21:02:45 (GMT)
commitbbbacbf2f8c27ac163853600971d1a1a28dddee3 (patch)
treee69167e09009c524538aaf2ae6c1198da0b37c47 /src/ap/ap_drv_ops.c
parent095ded5dd54da02db6c6bf95219f81852250822a (diff)
downloadhostap-bbbacbf2f8c27ac163853600971d1a1a28dddee3.zip
hostap-bbbacbf2f8c27ac163853600971d1a1a28dddee3.tar.gz
hostap-bbbacbf2f8c27ac163853600971d1a1a28dddee3.tar.bz2
DFS: Print CAC info in ctrl_iface STATUS command
Print CAC time and CAC left time in control interface STATUS command. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
-rw-r--r--src/ap/ap_drv_ops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 9abcd7c..6d3ae5a 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -774,8 +774,10 @@ int hostapd_start_dfs_cac(struct hostapd_iface *iface, int mode, int freq,
}
res = hapd->driver->start_dfs_cac(hapd->drv_priv, &data);
- if (!res)
+ if (!res) {
iface->cac_started = 1;
+ os_get_reltime(&iface->dfs_cac_start);
+ }
return res;
}