Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp311866pxb; Thu, 9 Sep 2021 01:15:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeq9JZaSMS7oMzRPWzkjKyDQyjTMD9hiKnTtpy0ZNeKqVMToR17mM/Txm5Pn9So/dLGGfu X-Received: by 2002:a92:690b:: with SMTP id e11mr1369274ilc.321.1631175341788; Thu, 09 Sep 2021 01:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631175341; cv=none; d=google.com; s=arc-20160816; b=SWWvZRtwaoePawh8qJ/IrwaiIYFCuHL4AWXPL480GTus4jjYlvB6Ekw1NpKccs7QFC b7YMZVDMUuAtqCz/D0/HSzkhYb4OaKrkRbdfLAemfqvDIOZ5khAqdJQUoWF9loC/5cmP QWj8IHGU1IIw5Ljr+V7Uo8YBQTY2PXWgNTfv/+W66ZGhQGraKQ0PbnnZQ1ydBTQsCeHq vVoKTFfUmfnF5v3YEA+tPxH9jj0oR1gnKEutgtFmoJ1ed40ZsC1R4nbdnLf/mW5zbqrR ag8/2LUGlVkRriMElVTSBrR1YtKprS6u8X5fPOvnGNJZqGOk0cJOsp2s6yPRHQ77+Tzg KOeg== 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=BsPyq9MqmJuoN58xWk9HbeIO6UnnZ3+CLuwLCrRLhuUpTt639WemmozFBC4G6u6ufJ B27yvV2lzXtSAYW7zZ5JB75/eBxzpb9aGKZMjFQL/oy+MBUe4nPz1KJTIaVhTePee1/V dzdi9plA1b0LmXE3btGT1xTWc9AVmiH4QyeSLwysT6rXkuV0kSQhK/XIWnFRCn32BH83 RhYYmExQ+/u1eeK2aUYw8aZhsD+FkN3iD5bDO/J6661Z0L+fNhU+Lh51MHBJ+gAz7XNo FLy8DhegjuqU9os3eKlLhpsragVEcqGGjJVYe6vH9Z2q9h/kI/U7zNKZZe6eSu8cBFMM iW6A== 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 g3si987024ile.29.2021.09.09.01.15.29; Thu, 09 Sep 2021 01:15:41 -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 S231189AbhIIIQd (ORCPT + 99 others); Thu, 9 Sep 2021 04:16:33 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:42630 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230509AbhIIIQc (ORCPT ); Thu, 9 Sep 2021 04:16:32 -0400 X-UUID: c85713ad30a74ddcadbe313a1a778ce5-20210909 X-UUID: c85713ad30a74ddcadbe313a1a778ce5-20210909 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 431139519; Thu, 09 Sep 2021 16:15:19 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 9 Sep 2021 16:15:19 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 9 Sep 2021 16:15:18 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH v4 6/8] mt76: mt7915: fix muar_idx in mt7915_mcu_alloc_sta_req() Date: Thu, 9 Sep 2021 16:15:10 +0800 Message-ID: <20210909081512.5037-6-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210909081512.5037-1-shayne.chen@mediatek.com> References: <20210909081512.5037-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