Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp99391pxb; Fri, 15 Oct 2021 01:18:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+VRzfMER567FQTFqhUtKeqy1mcX3CytP2eiK5Fn5SHmMd3npae0aqTR88mkSESF+tq1x7 X-Received: by 2002:a17:90b:3a81:: with SMTP id om1mr16746960pjb.184.1634285900284; Fri, 15 Oct 2021 01:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634285900; cv=none; d=google.com; s=arc-20160816; b=HYz+z+LajVEw4e+okCqGS++83wFL1wd3hUk4+rjBPgGRtz2jPP2RJoQ3RFFTI/aZoZ AHuK020n0wjvqFFtN11ONhs3reC1O8RMviZMmHyonubUNIajzLzXY2qeyLFBL1LE1DbA nByCk+MigNSrW0Zq9dmv6L4Bu7sNGSCf/6SiFE6AZnAssmrCpBNBUPTIKIqT2dCBqtvZ pYjsJ3z5PWSHlxgUDBO3EWLMnYQTO89rhhgABY/TMkiU6j06fOFlHyCWDTM0Y1PD97WE DIDRjQWEA97mOz6J04mY1F973+d8+BIUEHqfKGLJpagJG3I7+D36Fo9ML2FrFjZaWLcv fEVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=PA7mJYjZCFE4FY/m8tRHAxJBKjYCtjp3ymdldJZXVAw=; b=L3SnFEFzWPaP4ceSng5XSKCZCy7Pf2bZWarR1oM5ALrc9poBHkpNtWVEeWRk2HHogW X3s9PYThePXVcPSrMtQz4XjEBPugTStWaS/N0O9F27q8Y2WG1hYcr0t18ZT0X+EBBiWW l0RkFWzV/N7VNTbFGWcpt1pEoYTMy6wP1ZEl88UOuiIYZ6BGRcUlGhZVQHYkfZLIlsf2 R3XqkhP42CPGcP6Q5yHGJnDEct0HNDjZH1sHpLrrvxKkP+V+NbtOdxxApeI/fr6d1PWG sm9vC34LTZdXVEGYGb2uipqijgIqdiw+0fC3+t7n3/0cNCioxLug+1IKlD/DonsNtepR H1sw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si7220476plk.427.2021.10.15.01.17.41; Fri, 15 Oct 2021 01:18:20 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234324AbhJODcz (ORCPT + 63 others); Thu, 14 Oct 2021 23:32:55 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:47252 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234193AbhJODcu (ORCPT ); Thu, 14 Oct 2021 23:32:50 -0400 X-UUID: dc7bbb54b2f84329b20e61b1d9242d6d-20211015 X-UUID: dc7bbb54b2f84329b20e61b1d9242d6d-20211015 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 30336469; Fri, 15 Oct 2021 11:30:40 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Fri, 15 Oct 2021 11:30:39 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 15 Oct 2021 11:30:39 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v6 6/8] mt76: mt7915: fix muar_idx in mt7915_mcu_alloc_sta_req() Date: Fri, 15 Oct 2021 11:29:36 +0800 Message-ID: <20211015032938.7493-6-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211015032938.7493-1-shayne.chen@mediatek.com> References: <20211015032938.7493-1-shayne.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org For broadcast/multicast wcid, the muar_idx should be 0xe. Fixes: e57b7901469f ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") Signed-off-by: Shayne Chen --- v6: remove line break of fix tag --- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c index cd31cb1..9ad7e8e 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -586,7 +586,7 @@ mt7915_mcu_alloc_sta_req(struct mt7915_dev *dev, struct mt7915_vif *mvif, .bss_idx = mvif->idx, .wlan_idx_lo = msta ? to_wcid_lo(msta->wcid.idx) : 0, .wlan_idx_hi = msta ? to_wcid_hi(msta->wcid.idx) : 0, - .muar_idx = msta ? mvif->omac_idx : 0, + .muar_idx = msta && msta->wcid.sta ? mvif->omac_idx : 0xe, .is_tlv_append = 1, }; struct sk_buff *skb; -- 2.25.1