]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WMM AC: Do not write ERROR level log entries when WMM AC is not in use
authorJouni Malinen <j@w1.fi>
Sat, 8 Dec 2018 14:48:33 +0000 (16:48 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 8 Dec 2018 14:48:33 +0000 (16:48 +0200)
These two wpa_printf() calls with MSG_ERROR level could be reached when
connecting without (Re)Association Response frame elements being
available. That would be the case for wired connections and IBSS. Those
cases are not supposed to use WMM AC in the first place, so do not
confuse logs with ERROR messages in them for normal conditions.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wmm_ac.c

index a88cc46f39560d7072ca0b0138bf47cc084690d2..1b78c5f612e7ef593df3d4533a2d5fddd8c5d4ef 100644 (file)
@@ -471,13 +471,8 @@ static int wmm_ac_init(struct wpa_supplicant *wpa_s, const u8 *ies,
                return -1;
        }
 
-       if (!ies) {
-               wpa_printf(MSG_ERROR, "WMM AC: Missing IEs");
-               return -1;
-       }
-
-       if (!(wmm_params->info_bitmap & WMM_PARAMS_UAPSD_QUEUES_INFO)) {
-               wpa_printf(MSG_DEBUG, "WMM AC: Missing U-APSD configuration");
+       if (!ies || !(wmm_params->info_bitmap & WMM_PARAMS_UAPSD_QUEUES_INFO)) {
+               /* WMM AC not in use for this connection */
                return -1;
        }