Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp352457pxb; Wed, 8 Sep 2021 02:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSesuctsHfQbKJBymnstfme4l5RYemc5YnEYP9zqYjhKCIA3Mg3dveGEQKwN3Ecpt87zAV X-Received: by 2002:a17:906:1350:: with SMTP id x16mr3182093ejb.391.1631094266013; Wed, 08 Sep 2021 02:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631094266; cv=none; d=google.com; s=arc-20160816; b=eZ3TwlLGGjnZqHo22JX0Yae/mrYXYWcPPY4KmXs+09ht931vjZXtCEWM5nxVMIqbd1 qQsC6tb0QHRcQXnc/cqcWijb36kLrVb4C29gMUxZ2VxCIZNzrWYntLCeoVhVwkbon5je e5ljJHtiBzOqf1kRAsk2hjzSlr46Su7pHrhXeBup4t1TCPup0MstTbGqkh3fDDZRNvQE hL4V9MptgA6ff4LOoEA6KGd7eeJg5rR9KdDmMtACaC/jQ3of+SFw1CQDpZIHIBRBHAmf avY6+cDujPvmiuXdPQW9WYlMG7+soe0GmV2KpajOLZTpcl+dnNY951V/DWf2ICVWN+S8 TM0g== 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=X8JIQmScEio41WBVk+tSWP8MqSpZ6CsWme2ENaW82DJoBRRKs/cwyvBnuTD/2GTHow /9OnIWqycKdAA60UO1hLq+yqBei4qUQLK9XuZOPv7eo/SUfrRP2bDTWxbukLzvH5DAYY N5u7QCjHBxjDsYzyimcBKgiSyDzqXwwyLjx1Scc4M6jxrqo8DGvesM/7k2ws4EBEW2Yj +UyIe5tcAA4q6YT6Fc5hUInAgt3IRV7oUxasxn/BKpXqYr/Lbn4LMMtd+CtjtYncBZw6 lt1T3Ce9OB2EW0N68Nq1SwGEmNNHDvXuj27QxlUft+1wOE4FCfa0NTTpno+0P8ItQAP6 Nt3Q== 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 n27si1643630ejl.103.2021.09.08.02.43.43; Wed, 08 Sep 2021 02:44:26 -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 S1348591AbhIHJoI (ORCPT + 99 others); Wed, 8 Sep 2021 05:44:08 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:42724 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1348132AbhIHJoH (ORCPT ); Wed, 8 Sep 2021 05:44:07 -0400 X-UUID: 5950f9b97ac14332a87268dcae4435b7-20210908 X-UUID: 5950f9b97ac14332a87268dcae4435b7-20210908 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 629483263; Wed, 08 Sep 2021 17:42:56 +0800 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 8 Sep 2021 17:42:55 +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; Wed, 8 Sep 2021 17:42:55 +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; Wed, 8 Sep 2021 17:42:55 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v3 6/8] mt76: mt7915: fix muar_idx in mt7915_mcu_alloc_sta_req() Date: Wed, 8 Sep 2021 17:41:42 +0800 Message-ID: <20210908094144.25641-6-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210908094144.25641-1-shayne.chen@mediatek.com> References: <20210908094144.25641-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