aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-12-13 13:09:15 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-13 13:09:15 (GMT)
commitcebda0e3e50b28cd81f9780c6797fb8a98f4d167 (patch)
tree799a08b43fb84ba019df524d9ead53b0e305781d
parent8344ba12298ed69133738e5a12553af3fd6908bf (diff)
downloadhostap-cebda0e3e50b28cd81f9780c6797fb8a98f4d167.zip
hostap-cebda0e3e50b28cd81f9780c6797fb8a98f4d167.tar.gz
hostap-cebda0e3e50b28cd81f9780c6797fb8a98f4d167.tar.bz2
Make debug print clearer for AP/mesh mode secondary channel issues
If the secondary channel was not found at all, no debug print was shown to indicate that the channel was rejected due to that problem. Print a clearer message indicating which channel was behind the reason to reject channel configuration as unsuitable for AP mode. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--src/ap/hw_features.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c
index 16887ac..d66ff4b 100644
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -785,6 +785,8 @@ static int hostapd_is_usable_chan(struct hostapd_iface *iface,
chan->flag & HOSTAPD_CHAN_RADAR ? " RADAR" : "");
}
+ wpa_printf(MSG_INFO, "Channel %d (%s) not allowed for AP mode",
+ channel, primary ? "primary" : "secondary");
return 0;
}