Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1543720iob; Thu, 5 May 2022 03:47:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjKBGTmjvn5mvX5rof5v7UNDWFvIDieEdjQhvdFxgug0h62Pf8OrnjLK8n6DE4F1MuUKDh X-Received: by 2002:aa7:8e44:0:b0:50c:fc0e:8d25 with SMTP id d4-20020aa78e44000000b0050cfc0e8d25mr25757587pfr.81.1651747622063; Thu, 05 May 2022 03:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651747622; cv=none; d=google.com; s=arc-20160816; b=ucylgE8r7+XFt9Vcoxo8J/ysVuAD5TYaI2Jl3o7pOHYkbZEehRRpdQsZ+TaLMCMmo+ XHJf7maxsEsV/Eorinhqv480VP6ZYNwTGFuVun9+B2BJt/abdDEzb/x9cJjwz7oA2Bov fymMC+8FQToTCBiyw6xdhiKUnJi+oiQ4iEsv/TIN8rFFhZ7+vUKDGzDPxoqG4iBSdCkw VtT5cgAMeuEXaMR2LoUzre5A0NVrkOJwNqtNNKERc+xwowuPp0mW6iIshSufv1YUKwFJ E6abZrEOf4XLLOAR0L6Qr/0U5Z/+PALNtLZkzHhhMJMezCHoDj4edV3G8gTqCiDNPvCx WJrQ== 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 :message-id:date:subject:cc:to:from:authenticated-by; bh=RsAlir/FRMDGmGfIymUXKWSHVrNWWORq2D0XW7XHQsU=; b=tuxBFTMnGIRfVTLJaVlW1e8IMjQx94CrOEe+s2FWwnMsovXEgdsCjDO33MpihqxUut Wy8OkV+ksQKLH7U1SFwDBMPNG1No1ESaeG6Ewv6eLadNYS/DuFVEhtl+l1XKSEZtDb/k nQpq4VREROoHodEYFyDfn0q91ra+VsMY4hZtMfJWhETQ3antKF4yR0XmxrmzkdghopA6 OqcnWry9ahtAMgFcRJvZDHHP+gnIdcnf8JUYvwxLx3KdYqXwSnIrN5YgI6gKj8P4gPJe b/DBehSj5Fy3uMS7Lx7jmt1OVlCubsQZN+ei3hZZK+EPsNvMU4RhPA49UPPw5dM8CyLo SsMA== 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 u2-20020a654c02000000b003816043f04bsi1256683pgq.576.2022.05.05.03.46.45; Thu, 05 May 2022 03:47:01 -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 S241340AbiEEJLu (ORCPT + 68 others); Thu, 5 May 2022 05:11:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351732AbiEEJLt (ORCPT ); Thu, 5 May 2022 05:11:49 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D85754BBBA for ; Thu, 5 May 2022 02:08:07 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 24597rq66014998, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36504.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 24597rq66014998 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 5 May 2022 17:07:53 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36504.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 5 May 2022 17:07:53 +0800 Received: from localhost (172.16.17.21) 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.2308.21; Thu, 5 May 2022 17:07:52 +0800 From: Ping-Ke Shih To: , CC: , Subject: [PATCH] rtw88: adjutst adaptivity option to 1 Date: Thu, 5 May 2022 17:07:45 +0800 Message-ID: <20220505090745.158892-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.17.21] 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: 05/05/2022 08:48: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?Q2xlYW4sIGJhc2VzOiAyMDIyLzUvNSCkV6TIIDA3OjUwOjAw?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36504.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,T_SCC_BODY_TEXT_LINE 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: Chin-Yen Lee Fine tune algorithm of adaptivity sensitivity to avoid disconnecting from AP suddenly in field. Signed-off-by: Chin-Yen Lee Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw88/fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw88/fw.c b/drivers/net/wireless/realtek/rtw88/fw.c index e344e058f9432..090610e48d08c 100644 --- a/drivers/net/wireless/realtek/rtw88/fw.c +++ b/drivers/net/wireless/realtek/rtw88/fw.c @@ -1786,7 +1786,7 @@ void rtw_fw_adaptivity(struct rtw_dev *rtwdev) SET_H2C_CMD_ID_CLASS(h2c_pkt, H2C_CMD_ADAPTIVITY); SET_ADAPTIVITY_MODE(h2c_pkt, dm_info->edcca_mode); - SET_ADAPTIVITY_OPTION(h2c_pkt, 2); + SET_ADAPTIVITY_OPTION(h2c_pkt, 1); SET_ADAPTIVITY_IGI(h2c_pkt, dm_info->igi_history[0]); SET_ADAPTIVITY_L2H(h2c_pkt, dm_info->l2h_th_ini); SET_ADAPTIVITY_DENSITY(h2c_pkt, dm_info->scan_density); -- 2.25.1