Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4324481rdb; Thu, 28 Dec 2023 19:20:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFndhgapWS9it4wcApZBef/8RTgGe0zdxN2hSQ01uCTzOpQ9+pSLKpMQ6l7u01JRIrkVvU/ X-Received: by 2002:a05:6a00:bd4:b0:6d9:8f4f:5526 with SMTP id x20-20020a056a000bd400b006d98f4f5526mr4713385pfu.36.1703820027502; Thu, 28 Dec 2023 19:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703820027; cv=none; d=google.com; s=arc-20160816; b=YfW8aKRfQegaIsHhfZy8EqfsggldaTk+ZfZafm9UJWLjk3vDRNO4yGxkE5zZFvQHqD pXM97JTjeqSeik1lKf4+ZUDMYLQtg8N8rAxrJc1Vf0A5WSmWY9rwbSAHEGl6sv/feaYa M3QXSvTRxOC4hufzlyRBjSaWVTT3HIWNoDrCNWoP+m+ezZurW7oF6te6gtg2o+vzRRBO MHgD21AxxmUsol71Dy11HO+OPy2WF2SE+p5gP2pB/NvfWX+4yG9p9Co69jMptCBGFM5M Hb11fzTzzd1gJjnIPT2210oUn3rm48yVxOoE3d5f0ovrd0WBgT8h5BBzsXBQERL93Swr N6Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zDWDn9oBv1U+3xvwbXPmm8vBhm6pjyap2Yx2ddY1yCs=; fh=xmX3nUiCDRywM7GN/jnkxEI0WXifvWaaBmhMyTMYa4c=; b=QuGJWLvW3oxWagtWbFdDmFW01X9QP6TcOuzsXpFrZKGIN4ieMj7P3bh9OkPeUHSGJA ua1xMtcmWm4NBz2hc/9kFuQLQ1Tu+q8fmTtWt8O07I9Yy6HTxknEkN0APz/mM8FKNWba VO9ioQOWDliJDfUmZ5BrKayp0OYM7yTKjMfEQ6XZ17peffdJGeaFKVOiilPyHZCgy6Zx NBKcryNTJzYTEo22KbDVe/tN01kPpkmTSFCpKt/Dy1Ztj8OnBkx0pPjcXByXlezLhVNX i3ZnvjLGX7UtL+jtBsN+HLBqMBzWrHe57RuKx3cgcsHdyUrcMDvO55Mu6b4SGEUi7cqA ULnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=csAqMFR0; spf=pass (google.com: domain of linux-wireless+bounces-1327-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bs6-20020a632806000000b005cdfd48bfbesi10948362pgb.561.2023.12.28.19.20.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 19:20:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1327-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=csAqMFR0; spf=pass (google.com: domain of linux-wireless+bounces-1327-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 64741287426 for ; Fri, 29 Dec 2023 03:10:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E90B063C6; Fri, 29 Dec 2023 03:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="csAqMFR0" X-Original-To: linux-wireless@vger.kernel.org Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DAC64434 for ; Fri, 29 Dec 2023 03:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: b582871ca5f711ee9e680517dc993faa-20231229 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=zDWDn9oBv1U+3xvwbXPmm8vBhm6pjyap2Yx2ddY1yCs=; b=csAqMFR0bnmErjAl4SchZ/nv/FWFVPy9h47hU+3tM4BcTUhcWan7Li8ZEZ3B3vwLXuH4VUQmyan3ViGXpvoXM5V3AloVYFI7qmAXSGXZMxEFEPDPQTXUFB723AUX6+gLZsw/y+BUr6RhzMs+9I4G1hc3yDAmH7sccRjWyJKRZBg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:144171d2-1de1-4c95-8a98-71560f2dd6a0,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:5d391d7,CLOUDID:3a03c97e-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: b582871ca5f711ee9e680517dc993faa-20231229 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 390894595; Fri, 29 Dec 2023 11:09:41 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 29 Dec 2023 11:09:40 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 29 Dec 2023 11:09:40 +0800 From: Mingyen Hsieh To: , CC: , , , , , , , , , , , , , , Ming Yen Hsieh Subject: [PATCH v2 01/10] wifi: mt76: mt7925: fix connect to 80211b mode fail in 2Ghz band Date: Fri, 29 Dec 2023 11:09:28 +0800 Message-ID: <20231229030937.22605-2-mingyen.hsieh@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20231229030937.22605-1-mingyen.hsieh@mediatek.com> References: <20231229030937.22605-1-mingyen.hsieh@mediatek.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain From: Ming Yen Hsieh Driver should setting correct phy mode to firmware when in legacy mode. Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips") Signed-off-by: Ming Yen Hsieh --- drivers/net/wireless/mediatek/mt76/mt7925/mcu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c index c5fd7116929b..1fc9ecb96bc4 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c @@ -1460,12 +1460,10 @@ mt7925_mcu_sta_phy_tlv(struct sk_buff *skb, struct tlv *tlv; u8 af = 0, mm = 0; - if (!sta->deflink.ht_cap.ht_supported && !sta->deflink.he_6ghz_capa.capa) - return; - tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_PHY, sizeof(*phy)); phy = (struct sta_rec_phy *)tlv; phy->phy_type = mt76_connac_get_phy_mode_v2(mvif->phy->mt76, vif, chandef->chan->band, sta); + phy->basic_rate = cpu_to_le16((u16)vif->bss_conf.basic_rates); if (sta->deflink.ht_cap.ht_supported) { af = sta->deflink.ht_cap.ampdu_factor; mm = sta->deflink.ht_cap.ampdu_density; -- 2.18.0