Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2225969imw; Wed, 6 Jul 2022 02:13:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uDKqCLfrchQC9oaDq77e9kxX0xIKuJMFXQRJuUeFXd2On7nWdHS7OvWq05vfPIYIVmnfZm X-Received: by 2002:a17:906:7c0c:b0:6f9:1fc:ebf3 with SMTP id t12-20020a1709067c0c00b006f901fcebf3mr37923023ejo.403.1657098829566; Wed, 06 Jul 2022 02:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657098829; cv=none; d=google.com; s=arc-20160816; b=tncE0qPzAMOl+Ah6VKh6MKMvdgOsH7bPAOyioS7DVEqyuwH3XheF5wlyNvoadXi9fW JQ18gpLvKFVYSWu9UtnbQrx/wtJZPIotyXjVfNPDzDTegFGziCQ6tsSCKOfP9K48Y/WN 2RzQfuQcs7hfqQ6hkuUeT6WblOrgoMVGeVZdC3ONO23qoRioxACLRzZKChtKYNCXrE23 lv4CbJcXmV8Lzcm1Ev9HSLCnEpCWs4/NouzwZw0VzBPa0kaCdQnBWmn7TWcw97K452Uo gkfaiYdtuxSchUW3ouMa+NnAcwdBSYzYH9IGnsfQLIr1BO5rWqS2qzhaX4MH4RVN3/jy 0C/w== 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=3823YOK4IFbm7xagfpp8cYGEfA4uo0c400a439st63M=; b=Kr5hQuksbBkcaSj4YrCpCQdag8MCt4IdMAkNHOtDesRcTZ880ZbhF88oX1Ctl3JIQF GiwOElZgd/489ppcr2YBgHLrRRY4Sfc5kS7XxIweOSJybNeamMfOU1f7cICUB3H3mkBQ 82yYbeSuQxyKmodWgjbPdaH2w5ZCwO6vQ/uT8RA0vWwsSUWOD960FsDnbJmN8Tq+kCQS wZinyUcoLGbN+goqdZSf8kCVy/YyG/OXxH9BA6Avz7mztIiucdCk6gq+miWW368xm00H v+7jWgj3WloLHTfq76nlIoX7wK9ycmUh8ehvy9Ol+u0kF/S1QET24F7gNY9aQtv6O2DX mb0Q== 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 go41-20020a1709070da900b0072af3c1acf4si3285333ejc.134.2022.07.06.02.13.30; Wed, 06 Jul 2022 02:13:49 -0700 (PDT) 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 S233155AbiGFJNZ (ORCPT + 66 others); 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 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 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); -- 2.18.0