From f77c0f914a4d47d890ed8ad5db59cb4eabbad4ec Mon Sep 17 00:00:00 2001 From: "stijn@linux-ipv6.be" Date: Tue, 30 Aug 2022 14:45:11 +0300 Subject: [PATCH] ACS: Include frequency in info messages 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 --- src/ap/acs.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ap/acs.c b/src/ap/acs.c index 7ca87960c..d06e55f5d 100644 --- a/src/ap/acs.c +++ b/src/ap/acs.c @@ -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; } -- 2.47.2