Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1071951pxb; Fri, 1 Oct 2021 02:54:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR/lx0qJCxYvbEu3N81TmSGw9T9Uc8CaEej81Xoew+1zn/Wg775N9B+TnH9IjC3r045K65 X-Received: by 2002:a17:902:ab93:b0:13d:e3b5:7ec2 with SMTP id f19-20020a170902ab9300b0013de3b57ec2mr8615176plr.26.1633082075611; Fri, 01 Oct 2021 02:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633082075; cv=none; d=google.com; s=arc-20160816; b=QLlnPQtfDPEnXZQoH9OgiDF8wlgx5CZKh/d5nn9TCdGUB+aukVkkfMS9Q0MXty5hws x/Nx+uo8J149vjU9/MnXWwjFmHDtTgvbXXWI3moo9i1/bkr0UO2i0eu2nBvmpTKl2y0X kJhyBGbbwO3XVbIHb3eIQBioqtjmD/ejTTSrC06JjFFbKuGoW9hDZ1m16davtnw9tgs8 azQcXe607uZQkiV5rFbhNW8I+VG6Rq4xLIrh9KKfJU7rzEh/hVzmtnA7R6n901WvpwCE 50UVWeWyS8UztCYUky8cOLPEXCkMf1w52s2E4K0ZB2FGBEsl+IO0/nSzGW/+kTfmx2Ak It+w== 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=+wPnztY4eSu6TQdZy0ilr/2+MSX2ZxYAJPXgx2nt++c=; b=ovnUJJG1f7xMNBPMPLaUX0p89JOFWJyx6iPP8DfRKGR8goOra9xOKpqJ6uRe731Jmj A5Nk/fLISMRm7va+mzkT0ykiax5i5Y1vu7J5RROxNJv+aEpI1jv9MSInTHpKRHk5XTR2 F6N/nT6MF7MAlssvHZsybgbNPrexWVRO1fbuFfgZ6CJsUtdETQwsA8JaboG8AcCW0H+5 F0uoq8joI6tQSBTR9+4b/HLEKIissQUip4SUqTQwS/c3NxOCpbqszQGKbwfib06TLvzv 9JTd6eQ16d8V7rjaTrwrOzghSQK+eUp+8GaladFNR5isKeGsl6Uf7olhF8j4v7rVRtM4 kWxw== 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 e4si6420997plo.22.2021.10.01.02.54.23; Fri, 01 Oct 2021 02:54:35 -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 S1353181AbhJAJzt (ORCPT + 77 others); Fri, 1 Oct 2021 05:55:49 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34184 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S238512AbhJAJzr (ORCPT ); Fri, 1 Oct 2021 05:55:47 -0400 X-UUID: 841280a9963a47b0a5d32b08ca124a88-20211001 X-UUID: 841280a9963a47b0a5d32b08ca124a88-20211001 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 881772478; Fri, 01 Oct 2021 17:54:01 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Fri, 1 Oct 2021 17:54:01 +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, 1 Oct 2021 17:54:01 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , "Evelyn Tsai" , linux-mediatek , Shayne Chen Subject: [PATCH v5 6/8] mt76: mt7915: fix muar_idx in mt7915_mcu_alloc_sta_req() Date: Fri, 1 Oct 2021 17:53:53 +0800 Message-ID: <20211001095355.10598-6-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20211001095355.10598-1-shayne.chen@mediatek.com> References: <20211001095355.10598-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 5fa92966c257..be875f100c6f 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -585,7 +585,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