Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4442914imw; Tue, 19 Jul 2022 06:45:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1um7n6vGdmqqtXPHFbs2BdKTggAaOlqy0C7PiIVd50RmCabbknzy0SGtDPk6ni/OpQ4e6Ho X-Received: by 2002:a05:6402:428a:b0:42e:8f7e:1638 with SMTP id g10-20020a056402428a00b0042e8f7e1638mr44355546edc.228.1658238321607; Tue, 19 Jul 2022 06:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238321; cv=none; d=google.com; s=arc-20160816; b=DuiUfzbcgpFwK/4kr4VdasTo61V/+VimY3ingi5EKBPGAJuGaplfGaYJU3HPwPzUBh qlYp+YF1lZEHNVFKc2MQh+aOQZ/WZTS9fQLkiyAFmaF7YTs5nyg0K2BZtwpN4IsnUGXE zFimSOsgVggxS8yyl4rqBw0FyrtCmKuRMWNi2tnAxDlDOhdjyCq41Yutk+bpPyIM2O+W 4hzocw8NPgraSzhmZ51XEH9ZaY1QPZW7htsMf+Wpeo6+J/K2QXUNRuU7yXRro9AwsDxf CxmCErPQMbmMSb+7rwZDryfJxG6efaUFNCygn7k4btYfQUaCv+BqyoyCpMZbWXGxpoTP joag== 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=3LnYUpg9g0u5R2ZiCoQg/5g2ZJIJs7NNxoOj2Xq1TiA=; b=qEpOMHHwIS+B44noFSj7C+wMUGmPGJ5yqyHvgLk+7lz2S9K6aReLWjfnUe/ihuKBdY TQ2uA8jqnRh1AYrLBdfrPNuJqHCqk4oFzp7DoDvUoZagl1KqDZ3o/8QIuC/I8QY0u49n mFtQZ7kBafUnOwzIqmv6MwgWpa2PITIAvOzIbQW6KLQ/7J8LrSVdH6rtnyAwKqB5gpWS Y2atRU5rwtjk4u9X7pEo/gJsEfF2EzpuBhV4lbkUcHhaEDV0ZPGa4ziQ/HIv0BlC1++f zzlSUY/xcB6Ofd3OBcKk5q87q4BkO4wBrZ1unE+QIM9ln5xLDq4nKKvxRijfmr5TRSzy td9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fBuyECkg; 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 f12-20020a50a6cc000000b0043574c5a72fsi20829303edc.360.2022.07.19.06.44.56; Tue, 19 Jul 2022 06:45:21 -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=fBuyECkg; 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 S238505AbiGSMI4 (ORCPT + 99 others); Tue, 19 Jul 2022 08:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238497AbiGSMId (ORCPT ); Tue, 19 Jul 2022 08:08:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFBC14F684; Tue, 19 Jul 2022 05:01:41 -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 ams.source.kernel.org (Postfix) with ESMTPS id 786A3B81B2D; Tue, 19 Jul 2022 12:01:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2ACAC341CA; Tue, 19 Jul 2022 12:01:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232098; bh=/my4v/HU8VMnNL9gKGTkimP7O5T3PmVUw7+vM4Tz0gI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fBuyECkgD70UvVg3a1dUPNeYTXMRZGRHlqXkiqL2Umg++iB0uQuI5yrJhM/bF0mlL epmj6qXBrZQLpEolBXsiY7cii/YbK+GHLFPf9zbsBx85cPz4ykHxBwwfJUdxBs9Hsr 5J/oCKtmZ9isFnXQP8xqhsvJC2np3ZHoYnFjAlAo= 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.4 12/71] wifi: mac80211: fix queue selection for mesh/OCB interfaces Date: Tue, 19 Jul 2022 13:53:35 +0200 Message-Id: <20220719114553.412822463@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114552.477018590@linuxfoundation.org> References: <20220719114552.477018590@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 @@ -145,8 +145,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;