Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4449261imw; Tue, 19 Jul 2022 06:52:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tbofyPdk1WOXydqmDtriyHNrvV28ktlsFbxrHHj+dXswmovfqiRb+AyPt4Wwuoh8IHPtvj X-Received: by 2002:a05:6402:b26:b0:43a:6c93:f4e3 with SMTP id bo6-20020a0564020b2600b0043a6c93f4e3mr43789211edb.327.1658238737964; Tue, 19 Jul 2022 06:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238737; cv=none; d=google.com; s=arc-20160816; b=YAiWvhH9KcbGy2prcVG4mYFrvVY00VzExdhvM79dFr2nWLuPpH23lz+qFS4lSUSp0v kCwRyduCMx6PJk4OA6c+R3sxnLvlkqSCJylR/Q15tXgeBgPDpf6bogeupZifGOuL/uAo sMos844Mh62S65RLnO1wKLxggf9AvzkTQd/o0UQcJswC0Dutqb5vSToSguVhJ873Ab3w qgNTbuRBgJz9DX6CnNekrAdbP8NRnhT3k78iY1vM5Fk46atMdPaHplAUIQufDiS3RxgN GdQo1ZH2I8hiIpq1/AWJPd73eR3hdqhjjM2knD/fcLEnX0FdTwnEjuKhjE0TeIP4cf32 10NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9hTl5Upr+wXkLhsg7mEcXDx4lats3U3vXCl0yi620w0=; b=IkTOVyyimKjw4N/L1t7QkE8S4WPuzZ78oANmsielypQsFpKiMtYf2dLoHNDEtPeXBU 1GuhYOO5l9Tw8Lw59rFA4LAdtUoNa3Km2rozCzWzTuAAWzPoMyBGZ+QS0gjK+tCvNKa3 qaXwTioS3jfKKbEaUzeBGRSzBXwYb4BtoDKFOqSr9F9SeanryDrL//qAJ4QJ7ZylM1N3 ulZrQ5HdqFEuRoSX6vRJUhtMWATmVurzgcG4Q5b9GSGu0rghssBvHO4Umnefh8CxlOV/ VdFzqktyy4hqVU8Gc9EIT6GLcrI3TxfmxNKCSQ9eG1KHuxIYHWbS7Q/S7l5+hg3V3kzT QlKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iAaf9new; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn21-20020a17090794d500b00712018edf25si22030031ejc.687.2022.07.19.06.51.53; Tue, 19 Jul 2022 06:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iAaf9new; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240177AbiGSMbV (ORCPT + 99 others); Tue, 19 Jul 2022 08:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240210AbiGSM2x (ORCPT ); Tue, 19 Jul 2022 08:28:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFC8066BA2; Tue, 19 Jul 2022 05:10:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BC37661746; Tue, 19 Jul 2022 12:10:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E6E7C341C6; Tue, 19 Jul 2022 12:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232648; bh=tN+Yms2lOPAuzEgL9UFe3c+rrRIeWkblCZ6G8JUZFis=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iAaf9newImqn/mETYPximiSpfpsfCsXyAVbecelzP/L+FQSY+mAdkXg5OonJSS+Au tzx6eCanQbwkG7juBjRo+wLs4r/KxOL5YA7AiDev1tszY+3oxccvqyKqb4X8E6C/iy cNv/zvK6j2wkJLp5jsrQJz49Lv+JAmyKSG5mhVX8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau , Johannes Berg Subject: [PATCH 5.15 017/167] wifi: mac80211: fix queue selection for mesh/OCB interfaces Date: Tue, 19 Jul 2022 13:52:29 +0200 Message-Id: <20220719114658.410007643@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114656.750574879@linuxfoundation.org> References: <20220719114656.750574879@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Felix Fietkau commit 50e2ab39291947b6c6c7025cf01707c270fcde59 upstream. When using iTXQ, the code assumes that there is only one vif queue for broadcast packets, using the BE queue. Allowing non-BE queue marking violates that assumption and txq->ac == skb_queue_mapping is no longer guaranteed. This can cause issues with queue handling in the driver and also causes issues with the recent ATF change, resulting in an AQL underflow warning. Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau Link: https://lore.kernel.org/r/20220702145227.39356-1-nbd@nbd.name Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/mac80211/wme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/mac80211/wme.c +++ b/net/mac80211/wme.c @@ -147,8 +147,8 @@ u16 __ieee80211_select_queue(struct ieee bool qos; /* all mesh/ocb stations are required to support WME */ - if (sdata->vif.type == NL80211_IFTYPE_MESH_POINT || - sdata->vif.type == NL80211_IFTYPE_OCB) + if (sta && (sdata->vif.type == NL80211_IFTYPE_MESH_POINT || + sdata->vif.type == NL80211_IFTYPE_OCB)) qos = true; else if (sta) qos = sta->sta.wme;