]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Include secondary channel config in no-hw-channel-found message
authorJouni Malinen <j@w1.fi>
Sun, 14 Feb 2021 17:31:14 +0000 (19:31 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Feb 2021 17:31:14 +0000 (19:31 +0200)
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>
src/ap/hw_features.c

index aef59ffb1e058875cf820a88f08a9c42ef2d561d..9c02f036fe7e8e37d7205af80ab4c3116d59f945 100644 (file)
@@ -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,