Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2770066pxb; Mon, 18 Oct 2021 01:10:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrnfJbRCC8lGf/HBNnqpdcKT/i5siOkyYDkbA9ly3R90GwASZLKBoGUq9Bf+nZKfydHcgt X-Received: by 2002:a50:d085:: with SMTP id v5mr41908654edd.75.1634544638023; Mon, 18 Oct 2021 01:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634544638; cv=none; d=google.com; s=arc-20160816; b=pS7fg26EUmXRHU1LTPFksjDgk+MVbs1Tmnpl5KJqogtT61t3WWANy8ZKzOIkuHCegp uMlOSr7vE01Yd12LKhlSDNsx1FwdbXIDLYm2KppK+SD/QEcQRQAPL+a2A2S6i35rvf5Y t82EJQhSZfDMJ1wo1y3xhhE61+ECwBHj00Mhk+LUtIbuDNoogZEoJMNPWcDd1rZjcMUq RDdmvJ94Qj2PQ73cgLtOeYeIWgcy8bvPryiYnFtqQCJhoDOMIaYM9QaVf6FyDAmcV3ah tkc5irCJCl8okwh/EiGBpgKm/Qb/Kfre10bEjMlAkD+8QEjOAi9jCiuS/H1xtwwalexN pj1g== 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=eni6cIoXLOwlb9svB5AAj7YAX6T/N5BvVuTaPqISvQY=; b=mWHlyD9HnwxEMGTF3tc/G1yS0qkat9W9ZFe9NSpj0Rzi3ZivmmkJy9cpB7qJyjJX/Z E5lX2GQWPN2ggiv+J0ZP7fwj3Iii3X4DJeEYcApd492MLlfUJLAWcrE+S+0CHTUPKCUy Il8dlWyK+7jLwioE7kpg1X7AC0tGix9jKsICduoar9Gb07Di510fHRiLqeMYJF+OQT+E jJge01IvuoHoYVA7akDbJdlRCHLR/pudpvgBnauaXEkv9DEP3DCS658eTqwmdfOAT2W4 WWLSK10fyKvB5XPOQviIZypTDjKISLKJMRiCGNPfJHO4IzJCu6zYynTL4EfjphklnXdh vYgw== 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 m19si18033354edc.218.2021.10.18.01.10.23; Mon, 18 Oct 2021 01:10:38 -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 S231251AbhJRIKg (ORCPT + 64 others); Mon, 18 Oct 2021 04:10:36 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:49422 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230392AbhJRIKf (ORCPT ); Mon, 18 Oct 2021 04:10:35 -0400 X-UUID: 2a059aff2da1453a9b5617dc794183fd-20211018 X-UUID: 2a059aff2da1453a9b5617dc794183fd-20211018 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1078444345; Mon, 18 Oct 2021 16:08:21 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 18 Oct 2021 16:08:19 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 18 Oct 2021 16:08:19 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v7 6/8] mt76: mt7915: fix muar_idx in mt7915_mcu_alloc_sta_req() Date: Mon, 18 Oct 2021 16:07:04 +0800 Message-ID: <20211018080706.11401-6-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211018080706.11401-1-shayne.chen@mediatek.com> References: <20211018080706.11401-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 4e48c06bd467..f32e124b1a0f 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.29.2