Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1908883pxv; Fri, 16 Jul 2021 22:06:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWAwhimBCfp6HDRzohnZnMk/jLIzXRDd1eOAm1mChpj8ucvy2JrO3TrqvS4z+TpwFzfqvb X-Received: by 2002:a05:6402:35c7:: with SMTP id z7mr19630380edc.36.1626498406717; Fri, 16 Jul 2021 22:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626498406; cv=none; d=google.com; s=arc-20160816; b=dlrWyhrqaeMUugdXfs+jameiHnegrJXFob0kuS/EUjiv6HGZDoplSpimChQtjTS2lG xswTky+/8iURImDulfdJTyy+fiWf5gAovTaeQ+sm3n82focmDhHf+MP8YQPHLymDKSkI ksUz4RkejZzmSr+EI+Obvip7BKqadIYAYBfH9iNl1PVlfLHGUUCkVJ+dsDlqzrEs/Zcc HoykXJ12vrXjfAFL2HqcJMqQni/owQiV1R6yq2sCwvYf+BqyNCTIAlhhKRnxp4EM9Tw1 7GG31pNwNP0JERGqPzl6SabrGhFtuZhUWi/X9ftdDSrbaEAF9yXwwSia8HimTkMIvcgp CAqQ== 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=V0UsDHBeWeuRRCtenO/2FsUeJw9bQ1BHIH3JYc3XJNk=; b=ZVJ5fqhpIoIevjRhD4r/E3AuoevWHRV+0ldMsAmbFkywjvbktf2bXoeeAnyASqD7hS +kGmx1lQ8bx42LiKwuHpx2Ir7wx3WI+ztX2m8pHYSHE9qJaMEv0rAIccrjnDdd4NOSpX qy1oo56S+PdXtf0sPNCPLMGtFrMbnxTpxvZFO6UuBsAaPggwiHyMaxZmGI1+Mg9uO2NC woLo8E71BQyxj9/FIxN7KmamTE17nTW8ZRrj2V5dLnSyOYMDwgHuV3sSEGEz0r+42kXh lR28yZw5dfIt24CemX34q2c3ica/pZ4LjROwUiH/xwJxVtwjdK8Ii18Ju93JsNSicukq tLYQ== 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 a15si15144954edr.257.2021.07.16.22.06.09; Fri, 16 Jul 2021 22:06:46 -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 S229969AbhGQFIy (ORCPT + 99 others); Sat, 17 Jul 2021 01:08:54 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:57572 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229379AbhGQFIx (ORCPT ); Sat, 17 Jul 2021 01:08:53 -0400 X-UUID: 4bac9da557fb49bbb0b782025786bb0c-20210717 X-UUID: 4bac9da557fb49bbb0b782025786bb0c-20210717 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2067164601; Sat, 17 Jul 2021 13:05:53 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 17 Jul 2021 13:05:51 +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; Sat, 17 Jul 2021 13:05:52 +0800 From: Ryder Lee To: Felix Fietkau CC: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , Sean Wang , , , Ryder Lee Subject: [PATCH 1/2] mt76: mt7915: send EAPOL frames at lowest rate Date: Sat, 17 Jul 2021 13:05:48 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The firmware rate control may choose the high rate for EAPOL frames, so checking IEEE80211_TX_CTL_USE_MINRATE to use the lowest TX rate. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index 2462704094b0..d47dd0f96bdb 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -869,7 +869,8 @@ mt7915_mac_write_txwi_80211(struct mt7915_dev *dev, __le32 *txwi, txwi[3] &= ~cpu_to_le32(MT_TXD3_PROTECT_FRAME); } - if (!ieee80211_is_data(fc) || multicast) + if (!ieee80211_is_data(fc) || multicast || + info->flags & IEEE80211_TX_CTL_USE_MINRATE) val |= MT_TXD2_FIX_RATE; txwi[2] |= cpu_to_le32(val); -- 2.18.0