Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp964526pxm; Thu, 3 Mar 2022 07:56:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHYIehPlt78Usuuvps2l/p3E1qUqaY5h7qjjrZrVR6uzyXIiyDWWct5xHkObr+MBa2xwi/ X-Received: by 2002:a17:906:1be1:b0:6ce:b0a8:17d with SMTP id t1-20020a1709061be100b006ceb0a8017dmr26953554ejg.413.1646323006888; Thu, 03 Mar 2022 07:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646323006; cv=none; d=google.com; s=arc-20160816; b=ajtHEIjIzbx5D8DnEj3bk8dd8imDL8yvD0JAAZu6CQcKjHVjCf2bubvsOqrwj6DUup ruVn72Z9/eVCwgG98NRE5hL19CtBuaw/HzQgpHaVlm2Joqf4NTWv9MWbtriCC+OT2E9N 1kxM0s35P8H8Rx/iE3hWDmx7gZJABIbAXSmcTMbCNjJd/njFFehv0J1JfgkyjuNRyBhq MBmy4yjf3asDftQFLYPvxQysoBR50dSR9ZVxANDEo+Tt+fjTht+o9L6MifR+CWoiP2Vc HPC5xSG59JVPzmaAtjdRLZZ4yGKW4dkhAnm5qavgNzrh5ta3GB6M2QvjE+73DhZN+Uf1 YAFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=9HijSd3jiJUZRNsGVEmB0LK4ZCV6wCourFsYtR98T5o=; b=ksIi1gsYCOF5BqvnEbg3GIe2D2tpNIC1IeN1i2PbAM38ZnHUedFFqcWJ1kXJGrIR/h fpP/p5SuOk5Qi4ndbiuSxkTYWjRZtseP5njJXjx+DGWrfDMfavHUYklvf8DXsd+zkqKT H3UASrjw3duNJrugzNqP+phEi/gtU3gGxVVK7DX2Mz4uBTZrNGpLNMSzxjagrMjkKI8/ mJkXGlWcASoPi6DrczwewK+BlungaMISBs/1w7vKUBq8LH4zY189U1XYlNg1uhqNc7Fn Czu213SywlTVccVcI+7aGcJ4uCV0k7y+pn1NjOeRJHMyN3LGTPe0pU20J13+lkJKNH8l vQlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg19-20020a170907a41300b006cfd1ebf35dsi1447839ejc.565.2022.03.03.07.56.23; Thu, 03 Mar 2022 07:56:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232629AbiCCLHw (ORCPT + 72 others); Thu, 3 Mar 2022 06:07:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232648AbiCCLHr (ORCPT ); Thu, 3 Mar 2022 06:07:47 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F191817CC46 for ; Thu, 3 Mar 2022 03:06:57 -0800 (PST) X-UUID: cc0b184aa421402c834cac32d6c4407b-20220303 X-UUID: cc0b184aa421402c834cac32d6c4407b-20220303 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1085005617; Thu, 03 Mar 2022 19:06:53 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 3 Mar 2022 19:06:52 +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; Thu, 3 Mar 2022 19:06:52 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , Bo Jiao , linux-mediatek , Shayne Chen Subject: [PATCH 1/3] mt76: mt7915: set band1 TGID field in tx descriptor Date: Thu, 3 Mar 2022 19:05:33 +0800 Message-ID: <20220303110535.30640-1-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Set proper group index of tx descriptor for band1. Signed-off-by: Shayne Chen --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index 1da551f..aecf7eb 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -1215,8 +1215,7 @@ void mt7915_mac_write_txwi(struct mt7915_dev *dev, __le32 *txwi, FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) | FIELD_PREP(MT_TXD1_OWN_MAC, omac_idx); - if ((ext_phy || band_idx) && - q_idx >= MT_LMAC_ALTX0 && q_idx <= MT_LMAC_BCN0) + if (ext_phy || band_idx) val |= MT_TXD1_TGID; txwi[1] = cpu_to_le32(val); -- 2.25.1