From: Jouni Malinen Date: Tue, 13 Dec 2016 13:09:15 +0000 (+0200) Subject: Make debug print clearer for AP/mesh mode secondary channel issues X-Git-Tag: hostap_2_7~2022 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cebda0e3e50b28cd81f9780c6797fb8a98f4d167;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c index 16887acdf..d66ff4b17 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; }