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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2021-02-14 19:31:14 +02:00
parent 7a7e45ae68
commit 6b59e63f0e

View file

@ -994,9 +994,9 @@ static void hostapd_notify_bad_chans(struct hostapd_iface *iface)
hostapd_logger(iface->bss[0], NULL, hostapd_logger(iface->bss[0], NULL,
HOSTAPD_MODULE_IEEE80211, HOSTAPD_MODULE_IEEE80211,
HOSTAPD_LEVEL_WARNING, 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->conf->channel,
iface->freq, iface->freq, iface->conf->secondary_channel,
iface->current_mode->mode, iface->current_mode->mode,
hostapd_hw_mode_txt(iface->current_mode->mode)); hostapd_hw_mode_txt(iface->current_mode->mode));
hostapd_logger(iface->bss[0], NULL, HOSTAPD_MODULE_IEEE80211, hostapd_logger(iface->bss[0], NULL, HOSTAPD_MODULE_IEEE80211,