Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp437106rwb; Thu, 6 Oct 2022 22:00:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dvg2pd2e3kkktiKWqsNBELpQzmk4a8B/lzbudvNYTcs3FjKqEbaN2xpvB4hg6xKT49+gu X-Received: by 2002:a17:907:3ea7:b0:782:fe85:a2e with SMTP id hs39-20020a1709073ea700b00782fe850a2emr2589114ejc.550.1665118841133; Thu, 06 Oct 2022 22:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665118841; cv=none; d=google.com; s=arc-20160816; b=h1PGQoxiR4Pig7AMqlW6RHzQzIZyxIC+1U6autSN7clTdwciOhfMQvs/T2gtpCJwiB cUlRR9tltZwnf1dOEFfquslIfvWJzXF4gE6z3RzY+BXZMtqvNMw+B/I+y1NF+2LmAD9l XkP5BNlHUc9Fd6QkRzwbWG13XT9wzpxLeB8kuOvWdfylrlsyNfingKtegosaKQO4Tb86 qCWufte/Rwx/PLzfChcSzXYdXI33mA+FWCzb2kY3i+ztrl5GZfG/DPXbs5HPcRkZEwGz T5CO6RlzRAn/pYk+/+M5NcoPqfjUICRoU68+dDn/klAvAtm9xG5rJP5MWkJdKwjsE+W6 UP7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=pDsxFthMpDSJQDCL8ubfvOIl5eFjLWw3gSI6HjTT28Y=; b=rGImKEekjOoVHRPas+ft2/JBSzllsmO6mWaJIIWfuwr2FC4uYC3ZwT0B8y2wGeINbN 59uXEpmh/Azr/KhThNjtkGt1y+rSrj/b6UueQCY2ddfFp6onnk0aPv3wV8jo0zgDBOS/ 9ugl/U5t3idMWqkNw0Bn2TT1iRTPUKqrJtMuQWzwPgpJluZXnkT7HXXJkIRJQjiOWBjI cMitrR9DM9Ns3Ny10ra1y/kVJyn8vZAJXUQ3wsMqETzEyUITDXT6KJ+q3RFbMueiXNpg 3YItGKZWAGVlWnULM2QVN46iVuwY+ZTAcmAEdYxA2no1gNsRoJrlgZAY/a/G831XnBz8 7a/A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga12-20020a1709070c0c00b0076f061ffab4si1496548ejc.51.2022.10.06.22.00.26; Thu, 06 Oct 2022 22:00:40 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229491AbiJGE7Z (ORCPT + 61 others); Fri, 7 Oct 2022 00:59:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiJGE7W (ORCPT ); Fri, 7 Oct 2022 00:59:22 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6BCC8112AA0 for ; Thu, 6 Oct 2022 21:59:20 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2974wj083015222, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 2974wj083015222 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 7 Oct 2022 12:58:45 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 7 Oct 2022 12:59:13 +0800 Received: from localhost (172.21.69.188) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 7 Oct 2022 12:59:13 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 2/2] wifi: rtw89: fix wrong bandwidth settings after scan Date: Fri, 7 Oct 2022 12:59:00 +0800 Message-ID: <20221007045900.10823-2-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221007045900.10823-1-pkshih@realtek.com> References: <20221007045900.10823-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.188] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: trusted connection X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 10/07/2022 04:26:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIyLzEwLzcgpFekyCAxMjoyNDowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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: Po-Hao Huang Set channel in driver side to configure Tx power and channel index correctly after scan. Before this, beacons with bandwidth larger than 20M bandwidth will be dropped by mac80211 due to frequency mismatch. Signed-off-by: Po-Hao Huang Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/fw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/realtek/rtw89/fw.c b/drivers/net/wireless/realtek/rtw89/fw.c index bdcc7af737ea2..d21f87e25ae1f 100644 --- a/drivers/net/wireless/realtek/rtw89/fw.c +++ b/drivers/net/wireless/realtek/rtw89/fw.c @@ -2773,6 +2773,7 @@ void rtw89_hw_scan_complete(struct rtw89_dev *rtwdev, struct ieee80211_vif *vif, if (rtwvif->net_type != RTW89_NET_TYPE_NO_LINK) rtw89_store_op_chan(rtwdev, false); + rtw89_set_channel(rtwdev); } void rtw89_hw_scan_abort(struct rtw89_dev *rtwdev, struct ieee80211_vif *vif) -- 2.25.1