From 7450c1287d2d68fb576477bf84454a9a6405cc92 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Wed, 5 Mar 2014 16:19:53 -0800 Subject: [PATCH] DFS: Add extra debugging messages This might help someone realize why their hostapd config isn't working properly. Signed-off-by: Ben Greear --- src/ap/dfs.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/ap/dfs.c b/src/ap/dfs.c index e00da51b0..0f262ceb2 100644 --- a/src/ap/dfs.c +++ b/src/ap/dfs.c @@ -288,8 +288,19 @@ static int dfs_get_start_chan_idx(struct hostapd_iface *iface) } } - if (res == -1) - wpa_printf(MSG_DEBUG, "DFS chan_idx seems wrong: -1"); + if (res == -1) { + wpa_printf(MSG_DEBUG, + "DFS chan_idx seems wrong; num-ch: %d ch-no: %d conf-ch-no: %d 11n: %d sec-ch: %d vht-oper-width: %d", + mode->num_channels, channel_no, iface->conf->channel, + iface->conf->ieee80211n, + iface->conf->secondary_channel, + iface->conf->vht_oper_chwidth); + + for (i = 0; i < mode->num_channels; i++) { + wpa_printf(MSG_DEBUG, "Available channel: %d", + mode->channels[i].chan); + } + } return res; }