From: stijn@linux-ipv6.be Date: Tue, 30 Aug 2022 11:45:11 +0000 (+0300) Subject: ACS: Include frequency in info messages X-Git-Tag: hostap_2_11~1693 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f77c0f914a4d47d890ed8ad5db59cb4eabbad4ec;p=thirdparty%2Fhostap.git 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 --- 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; }