From: Petr Štetiar Date: Mon, 11 May 2020 08:16:51 +0000 (+0200) Subject: nl80211: Change AKM suite limit from warning to debug print X-Git-Tag: hostap_2_10~1302 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e1a1301074a652c65ece8ef32761e5b9d0481a8;p=thirdparty%2Fhostap.git nl80211: Change AKM suite limit from warning to debug print Commit dd74ddd0dff6 ("nl80211: Handle AKM suite selectors for AP configuration") added warning log message "nl80211: Not enough room for all AKM suites (num_suites=X > NL80211_MAX_NR_AKM_SUITES)" which in some cases fills logs every 3 seconds, so fix this by increasing the log message level to debug. Reported-by: Stefan Lippers-Hollmann Ref: https://patchwork.ozlabs.org/project/openwrt/patch/20200504130757.12736-1-ynezz@true.cz/#2429246 Fixes: dd74ddd0dff6 ("nl80211: Handle AKM suite selectors for AP configuration") Signed-off-by: Petr Štetiar Tested-by: Stefan Lippers-Hollmann --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index bb0768c1c..2790346f4 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -4332,7 +4332,7 @@ static int wpa_driver_nl80211_set_ap(void *priv, num_suites = wpa_key_mgmt_to_suites(params->key_mgmt_suites, suites, ARRAY_SIZE(suites)); if (num_suites > NL80211_MAX_NR_AKM_SUITES) - wpa_printf(MSG_WARNING, + wpa_printf(MSG_DEBUG, "nl80211: Not enough room for all AKM suites (num_suites=%d > NL80211_MAX_NR_AKM_SUITES)", num_suites); else if (num_suites &&