Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2752963pxb; Mon, 6 Sep 2021 04:46:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEqmcVDGsBPkzmbYppG+AZbjj0r3o8DeTQ4MU1ugjAkrMGxYPG4OeHyfD20jBq+wio/1GN X-Received: by 2002:a92:d58e:: with SMTP id a14mr4059824iln.208.1630928766007; Mon, 06 Sep 2021 04:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630928766; cv=none; d=google.com; s=arc-20160816; b=Pwdrtme5XYay6IL/OotpMAKwAhtzD9GjpSejlA7WYhPj7kaFskPbuQwUiIpW6bhDwG 0JC3Vn/64F0sUBFtu0uePXi/et2OO0rJOC7DKLhE5/pZfhBlMjbRT8+jFYw22mLmwYlR 441b0s2awmjB+9sigaeg26w+DG9yyqcfHo4wS81krgSLHiy65Rx0AQWKtzgWMSI1At87 xkzepMAkSjHJxUKoWZYyiSBsePZZSTOYUE8aN7O3DzzH5BHf1k0SEhgOTM+uaMQEthob jV7tKwiKAVy5zQJRGKZMsAYA4fdd/QFE+YRlo7P/e313RarQj3qsfsSRml55ioOI/+7K 08Lw== 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=XGlnLiVw35CoXK2aQfiFM+3XwGQnWa3AYxWCCuMZAC4=; b=FZAZqzaczgX/gVnztVWrHCiSV2HQ7FoFX2vfPunX/bd5qaMs1GinixSxtvn3SgpWKx Igtds6JHCIdQJ5GLAWGboTN+wLYZmItOsbmxMrEafALhnDLYdfP/0Mh33UsvtaPpu4s6 a0fdB4F0c5nLszdu3t+cwqrZkgVtsxbSH4R/12QkEgfvTLGCveI5KyG6TJtSqZC9iUiq H3AHtyN611Fk3Nw1ZmBEFmpEMkR2i/Qm4TD9/xD22h6fQVpFwTh81JBsjFkQhtg6U8F9 7qKCJBp7RxoeRSYp8OlGRDAMR4sUuXixZtSvO2/tu1GSTMfVYHz19arjnv/mszI+8Ppb zL0A== 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 f7si7178795ilq.58.2021.09.06.04.45.46; Mon, 06 Sep 2021 04:46:05 -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 S241356AbhIFLqP (ORCPT + 99 others); Mon, 6 Sep 2021 07:46:15 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38842 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S240647AbhIFLqO (ORCPT ); Mon, 6 Sep 2021 07:46:14 -0400 X-UUID: dee9cc243b794c80ae8b9c22e60b3caa-20210906 X-UUID: dee9cc243b794c80ae8b9c22e60b3caa-20210906 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 87741492; Mon, 06 Sep 2021 19:45:07 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 6 Sep 2021 19:45:06 +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; Mon, 6 Sep 2021 19:45:06 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v2 6/8] mt76: mt7915: fix muar_idx in mt7915_mcu_alloc_sta_req() Date: Mon, 6 Sep 2021 19:44:21 +0800 Message-ID: <20210906114423.13646-6-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210906114423.13646-1-shayne.chen@mediatek.com> References: <20210906114423.13646-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 --- 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 a801df6e6996..229ba3c469d1 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -571,7 +571,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