Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp639144pxb; Wed, 8 Sep 2021 09:00:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9goGawt5bf37zzwsoHbXd1IctOOG2kbsHELmaNlzLHeQL2D3GDNCNBV+MZoo67cpZXYbd X-Received: by 2002:a17:907:aa4:: with SMTP id bz4mr588696ejc.97.1631116843591; Wed, 08 Sep 2021 09:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631116843; cv=none; d=google.com; s=arc-20160816; b=1JWYGNNs2our5SiFoBnfXQ5d8P1cw91Q1Ompm8Ptq3YfDP0C/o278Xzgz6HjOm0+wH bCYGl3n/MrU/Lh7QnnSibB2aDRPyakwBrcD/rYCBfafsGHxhA2s4pS6IGHuDSmF+Rhrd tGk24bsgfJ8n2N8qgJfqztyPJSC5/nbL+qGrBHIA5nD8mFZm8gFRimCCC3VOJUnY/216 p5b2RBmBLdPOBBcrOBuHRep8a7ii4EeSj1dGZ/mUj/gZQiM50Ax/GvaIu6y+VQG28tYx 4hUfHtt8NqOr99qJLakYI+3Sa8qFbP+yUxYTSbIDNeIZvA0o16prqkTY+FIJT73e3j4R m53w== 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 :message-id:date:subject:to:from:dkim-signature; bh=bwUJ0mOLIES2TymxULs5+K2zH3KosYkF47cSDVR8Su8=; b=F/9KqdTIqHZap8ELv0OInF0zjHurCdzWfvgMLFXyQcChYz45juBc8fGl9uT8r6B/D2 t+WX7fz12/YUeRkykuojoRfCADYcq2Y86r3yBBeyo0HsT1ww7dlBi3SqneOFypntmYK+ +LVIOooG4R0zaU36ZG8dpPSQsky894vlNLtAeg27idGd4XgJFFOZ9Ez443pqRusXHLoF x47CvgAn7uVq2EdFT0GyPWn2uq+JhzWtoDQ96dNaQwbK4r5vjgo6aJePmZBS2SPWuIwC zePc6ztSJl5JAf8IbmFvQLAKjRvsH0NUgZtSv2FcEy+6kGXi8YSMPKsJN0RhkbH1OWJL Rw9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=MA3pW4IB; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 26si2828802ejk.661.2021.09.08.09.00.08; Wed, 08 Sep 2021 09:00:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=MA3pW4IB; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235528AbhIHP7z (ORCPT + 99 others); Wed, 8 Sep 2021 11:59:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235639AbhIHP7x (ORCPT ); Wed, 8 Sep 2021 11:59:53 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C70EAC061575 for ; Wed, 8 Sep 2021 08:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bwUJ0mOLIES2TymxULs5+K2zH3KosYkF47cSDVR8Su8=; b=MA3pW4IBVeY71VpaeNFxAaYG8z 42vFgBx/x8Bw6qHzsKiyKb33XdzUO3bBMpckAXvKP0yZBEK5O3nev7R0R5AqbHG1+KRn4504jsXac THBq8RenZslN7EzgKTPNzuGkCIs2Wt8Fhlf9xRKU/masG5PmnexjulNtn3a5DBeGOo4w=; Received: from p4ff13206.dip0.t-ipconnect.de ([79.241.50.6] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mNzyF-0004pm-Kk for linux-wireless@vger.kernel.org; Wed, 08 Sep 2021 17:58:43 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH] mt76: mt7915: fix WMM index on DBDC cards Date: Wed, 8 Sep 2021 17:58:41 +0200 Message-Id: <20210908155841.72052-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org WMM index range needs to be split between both PHYs if a second PHY exists. The condition for that was accidentally written as checking if the vif PHY is the secondary one Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7915/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c index 748ea70ea12e..a19e68668c65 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c @@ -215,7 +215,7 @@ static int mt7915_add_interface(struct ieee80211_hw *hw, mvif->phy = phy; mvif->band_idx = ext_phy; - if (ext_phy) + if (dev->mt76.phy2) mvif->wmm_idx = ext_phy * (MT7915_MAX_WMM_SETS / 2) + mvif->idx % (MT7915_MAX_WMM_SETS / 2); else -- 2.30.1