aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2014-03-05 08:21:20 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-05 21:59:04 (GMT)
commit1f37483416052fa29e1076de187dfdd1bc8549e3 (patch)
tree849fa53baa3345ca213f8ba4c90691d4a46e9e1a /src/ap/ap_drv_ops.c
parent354c903f8e47ae0fb41fb54ecc018e61d9573506 (diff)
downloadhostap-1f37483416052fa29e1076de187dfdd1bc8549e3.zip
hostap-1f37483416052fa29e1076de187dfdd1bc8549e3.tar.gz
hostap-1f37483416052fa29e1076de187dfdd1bc8549e3.tar.bz2
DFS: Print error in case CAC fails
Previously, we printed this message as a debug one, which was confusing in case verbose debug messages were disabled. User could think CAC started but never ended. Add more parameterss to DFS_EVENT_CAC_START, so external programs can more easily check what was wrong in case of errors. 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 b8b260a..5ba48c9 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -767,8 +767,10 @@ int hostapd_start_dfs_cac(struct hostapd_iface *iface, int mode, int freq,
vht_enabled, sec_channel_offset,
vht_oper_chwidth, center_segment0,
center_segment1,
- iface->current_mode->vht_capab))
+ iface->current_mode->vht_capab)) {
+ wpa_printf(MSG_ERROR, "Can't set freq params");
return -1;
+ }
res = hapd->driver->start_dfs_cac(hapd->drv_priv, &data);
if (!res)