From 6b59e63f0ecc5f85a3a95a6f76d3c7681f94e748 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 14 Feb 2021 19:31:14 +0200 Subject: [PATCH] Include secondary channel config in no-hw-channel-found message This makes the error message easier to understand if the AP mode setup failure is caused by invalid secondary channel configuration while the primary channel is valid. Signed-off-by: Jouni Malinen --- src/ap/hw_features.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ap/hw_features.c b/src/ap/hw_features.c index aef59ffb1..9c02f036f 100644 --- a/src/ap/hw_features.c +++ b/src/ap/hw_features.c @@ -994,9 +994,9 @@ static void hostapd_notify_bad_chans(struct hostapd_iface *iface) hostapd_logger(iface->bss[0], NULL, HOSTAPD_MODULE_IEEE80211, HOSTAPD_LEVEL_WARNING, - "Configured channel (%d) or frequency (%d) not found from the channel list of the current mode (%d) %s", + "Configured channel (%d) or frequency (%d) (secondary_channel=%d) not found from the channel list of the current mode (%d) %s", iface->conf->channel, - iface->freq, + iface->freq, iface->conf->secondary_channel, iface->current_mode->mode, hostapd_hw_mode_txt(iface->current_mode->mode)); hostapd_logger(iface->bss[0], NULL, HOSTAPD_MODULE_IEEE80211,