Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp607741rdb; Tue, 31 Oct 2023 17:48:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHt8u+4x1W94N/ajBFtfnYIcRNTzoBacONw9s6ztD5ffAjIOt97xnJ4NHFsbE5fGrqHfifs X-Received: by 2002:a05:6a21:47c8:b0:17f:aedb:38a1 with SMTP id as8-20020a056a2147c800b0017faedb38a1mr11913067pzc.62.1698799734336; Tue, 31 Oct 2023 17:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698799734; cv=none; d=google.com; s=arc-20160816; b=HlTZh6M9afc8ZCf3fzj4RUYkrxUJT7KcsTUbmeUTKlrcPMVAjA0uzLGUy/40JSKDQH ON0JUVyHqpnh56oRkJDjd8fBzldTfQY2PA/4r+x52TvGxylJFXr4AOdBB2BrsHqspLoY soezC13BFUSVpPNQnBHK6/NGezDJEGe6MHm7Yc4REo489tQY6zTiByl/ZR8Go679Gu8u ZJPjUHu+VQQMN49BrGMh1KK//IM6q2ESJGIx5Yz6IbmcONVPW8ewnPS697lC9C/XXJ+G Viwk/uArtsLKr46lY5NaAXwtQ1OIZG5vbsqceC1ZXm9m3GgQ2c1n55/gqxkxe6ByGycq O7gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=krcUBipPhRRIhkQtcjyeEZ21nU5dF4Zxe+w9M7us19o=; fh=pZpLv3JBu7ewThcXtBU3x3uGUeTqUHmHtpmV6AvLzGM=; b=VP8n8lV/Ok7O2bKhyFvzfTDQ76RE5BqyoJjwDC824kZW/eA9zhxhF3jYV5QMTaztKd 2uqLYLD6Ptqp/0cg5O+iFuEb2lmp9Anfl4i8s+Zte9378yt2jLO76woORvo2ZIzzXAZr RmM3O4oqRZ6ibdbMZsdCzkdq39KwMrZwjarqF2Usl5xN6jwAJ3xLMV46KFvqepLaNKsT tLgL+fuJoyPXFNQlxb5v2nC5HMYDZXv9wbqZYpwZUylysUzY4knheAyZMDwoq1qEJ5BQ uSYsow2Uvgp6QKmNJOzSQHynuPw9DE0fotBvw/GvhlxKLKhJxTsSGgGcqGT5U+Ejs1sN Yx9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id nu15-20020a17090b1b0f00b0027763ca82e9si1901389pjb.91.2023.10.31.17.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 17:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id CF209802644B; Tue, 31 Oct 2023 17:48:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236795AbjKAAsm convert rfc822-to-8bit (ORCPT + 52 others); Tue, 31 Oct 2023 20:48:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231947AbjKAAsl (ORCPT ); Tue, 31 Oct 2023 20:48:41 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BCACEA for ; Tue, 31 Oct 2023 17:48:35 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3A10mJhQ5803123, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.93/5.92) with ESMTPS id 3A10mJhQ5803123 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Nov 2023 08:48:19 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.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.2507.17; Wed, 1 Nov 2023 08:48:20 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 1 Nov 2023 08:48:19 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7]) by RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7%5]) with mapi id 15.01.2375.007; Wed, 1 Nov 2023 08:48:19 +0800 From: Ping-Ke Shih To: Dmitry Antipov CC: Kalle Valo , "linux-wireless@vger.kernel.org" Subject: RE: [PATCH 1/2] wifi: rtw88: simplify rtw_chip_cfg_csi_rate() Thread-Topic: [PATCH 1/2] wifi: rtw88: simplify rtw_chip_cfg_csi_rate() Thread-Index: AQHaCxP/7YRshr6njkC7FTt89gksa7BkopFg Date: Wed, 1 Nov 2023 00:48:19 +0000 Message-ID: <41e756e2184e4b1fa3422fa5c682cf91@realtek.com> References: <20231030093144.82504-1-dmantipov@yandex.ru> In-Reply-To: <20231030093144.82504-1-dmantipov@yandex.ru> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-originating-ip: [172.21.69.94] x-kse-serverinfo: RTEXMBS01.realtek.com.tw, 9 x-kse-antivirus-attachment-filter-interceptor-info: license violation Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 17:48:51 -0700 (PDT) > -----Original Message----- > From: Dmitry Antipov > Sent: Monday, October 30, 2023 5:32 PM > To: Ping-Ke Shih > Cc: Kalle Valo ; linux-wireless@vger.kernel.org; Dmitry Antipov > Subject: [PATCH 1/2] wifi: rtw88: simplify rtw_chip_cfg_csi_rate() > > Since fix rate flag in 'rtw_dynamic_csi_rate()' is a hardcoded > zero and actually unused in an underlying 'rtw_bf_cfg_csi_rate()', > simplify 'rtw_chip_cfg_csi_rate()' by dropping last argument and > adjust '(*cfg_csi_rate)()' of 'struct rtw_chip_ops' accordingly. > > Briefly tested on the following USB dongle: > > usb 3-6: new high-speed USB device number 7 using xhci_hcd > usb 3-6: New USB device found, idVendor=0bda, idProduct=b812, bcdDevice=2.10 > usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > usb 3-6: Product: USB3.0 802.11ac 1200M Adapter > usb 3-6: Manufacturer: Realtek > usb 3-6: SerialNumber: 123456 > rtw_8822bu 3-6:1.0: Firmware version 27.2.0, H2C version 13 > usbcore: registered new interface driver rtw_8822bu > > Signed-off-by: Dmitry Antipov > --- > drivers/net/wireless/realtek/rtw88/bf.c | 2 +- > drivers/net/wireless/realtek/rtw88/bf.h | 9 +++++---- > drivers/net/wireless/realtek/rtw88/main.c | 4 +--- > drivers/net/wireless/realtek/rtw88/main.h | 2 +- > 4 files changed, 8 insertions(+), 9 deletions(-) > [...] > diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c > index 4a33d2e47f33..4ea2f09709b0 100644 > --- a/drivers/net/wireless/realtek/rtw88/main.c > +++ b/drivers/net/wireless/realtek/rtw88/main.c > @@ -170,7 +170,6 @@ struct rtw_watch_dog_iter_data { > static void rtw_dynamic_csi_rate(struct rtw_dev *rtwdev, struct rtw_vif *rtwvif) > { > struct rtw_bf_info *bf_info = &rtwdev->bf_info; > - u8 fix_rate_enable = 0; rtw88 is still active and possible to tune this parameter for certain circumstances, and this parameter is helpful to understand current configuration, so I would tend to not merge this patchset. Ping-Ke