]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Make debug print clearer for AP/mesh mode secondary channel issues
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 13 Dec 2016 13:09:15 +0000 (15:09 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 13 Dec 2016 13:09:15 +0000 (15:09 +0200)
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>
src/ap/hw_features.c

index 16887acdfef49e27e5c561b4379f57f2408056f9..d66ff4b179c0321b9fe152f746100c8be24cf3f2 100644 (file)
@@ -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;
 }