From patchwork Wed Jul 6 09:09:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lian Chen X-Patchwork-Id: 12907714 X-Patchwork-Delegate: nbd@nbd.name Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AFE2C433EF for ; Wed, 6 Jul 2022 09:13:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233155AbiGFJNZ (ORCPT ); Wed, 6 Jul 2022 05:13:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233057AbiGFJMT (ORCPT ); Wed, 6 Jul 2022 05:12:19 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF0926109 for ; Wed, 6 Jul 2022 02:09:09 -0700 (PDT) X-UUID: 553721d1e18c45f486d2f2ed5f29829c-20220706 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:f1a0beaf-8f92-40de-a9e0-35c3f1a4ffb3,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:0f94e32,CLOUDID:56b5b186-57f0-47ca-ba27-fe8c57fbf305,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:nil,BEC:nil,COL:0 X-UUID: 553721d1e18c45f486d2f2ed5f29829c-20220706 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 16241970; Wed, 06 Jul 2022 17:09:05 +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; Wed, 6 Jul 2022 17:09:04 +0800 Received: from mcddlt001.gcn.mediatek.inc (10.19.240.15) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 6 Jul 2022 17:09:03 +0800 From: Lian Chen To: Felix Fietkau CC: linux-wireless , Bo Jiao , Sujuan Chen , Shayne Chen , Evelyn Tsai , Lian Chen , linux-mediatek Subject: [PATCH] mt76: address4 null frame using fixed rate to trigger WDS Date: Wed, 6 Jul 2022 17:09:01 +0800 Message-ID: <20220706090901.88929-1-lian.chen@mediatek.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: "lian.chen" WDS function need address4 package to trigger the AP create wlan0.sta. while the address4 null frame is sent at a high rate. the AP can not receive it. so, using fixed rate to trigger WDS flow. Signed-off-by: lian.chen --- drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c index 3ab0dcd..d83ed59 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c @@ -393,7 +393,8 @@ mt76_connac2_mac_write_txwi_80211(struct mt76_dev *dev, __le32 *txwi, } if (!ieee80211_is_data(fc) || multicast || - info->flags & IEEE80211_TX_CTL_USE_MINRATE) + info->flags & IEEE80211_TX_CTL_USE_MINRATE || + (ieee80211_is_nullfunc(fc) && ieee80211_has_a4(fc))) val |= MT_TXD2_FIX_RATE; txwi[2] |= cpu_to_le32(val);