]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ACS: Include frequency in info messages
authorstijn@linux-ipv6.be <stijn@linux-ipv6.be>
Tue, 30 Aug 2022 11:45:11 +0000 (14:45 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 16 Sep 2022 18:39:47 +0000 (21:39 +0300)
The ACS info messages frequently appear for multiple channels. Without
the actual frequency in the messages, they are not very informative.
Add the frequency to them to improve this.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
src/ap/acs.c

index 7ca87960c3ea34c9615e0b4020ec65edb5ef0b9e..d06e55f5d5eaae48735e98ccfdb37624d12968d1 100644 (file)
@@ -420,19 +420,24 @@ static int acs_usable_bw160_chan(const struct hostapd_channel_data *chan)
 static int acs_survey_is_sufficient(struct freq_survey *survey)
 {
        if (!(survey->filled & SURVEY_HAS_NF)) {
-               wpa_printf(MSG_INFO, "ACS: Survey is missing noise floor");
+               wpa_printf(MSG_INFO,
+                          "ACS: Survey for freq %d is missing noise floor",
+                          survey->freq);
                return 0;
        }
 
        if (!(survey->filled & SURVEY_HAS_CHAN_TIME)) {
-               wpa_printf(MSG_INFO, "ACS: Survey is missing channel time");
+               wpa_printf(MSG_INFO,
+                          "ACS: Survey for freq %d is missing channel time",
+                          survey->freq);
                return 0;
        }
 
        if (!(survey->filled & SURVEY_HAS_CHAN_TIME_BUSY) &&
            !(survey->filled & SURVEY_HAS_CHAN_TIME_RX)) {
                wpa_printf(MSG_INFO,
-                          "ACS: Survey is missing RX and busy time (at least one is required)");
+                          "ACS: Survey for freq %d is missing RX and busy time (at least one is required)",
+                          survey->freq);
                return 0;
        }