From: Jouni Malinen Date: Sun, 14 Feb 2021 17:31:14 +0000 (+0200) Subject: Include secondary channel config in no-hw-channel-found message X-Git-Tag: hostap_2_10~574 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b59e63f0ecc5f85a3a95a6f76d3c7681f94e748;p=thirdparty%2Fhostap.git 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 --- 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,