Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2208805rwl; Sun, 26 Mar 2023 18:23:18 -0700 (PDT) X-Google-Smtp-Source: AKy350YnS8dCobcetR1VNlLu1E74u7VnS4CxlmfLQ8b8oBeVT1S5nqO+54I18VavqeHfFx90Mt0p X-Received: by 2002:a17:906:3e4e:b0:886:7eae:26c4 with SMTP id t14-20020a1709063e4e00b008867eae26c4mr11136030eji.5.1679880198491; Sun, 26 Mar 2023 18:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679880198; cv=none; d=google.com; s=arc-20160816; b=vgLFkn+UrCIngEXZqQ0a9vfy/tSCHPB2PPLzgJAjkoZr2LhRCINQLJlf+mMc/zRoHC u7e+60jnpnMedjLqT/S9+upOWktntDCtSmsxb9/eg+vpMdeg2WRl+QhIm795jRKM/aOn NUziEbUEXCvKOt6KzI5BdRkeHymhQqJwBiQqC8gZdjBPS39oKc25fIDYhnjyRd3Go/mk kf2o7wotNf9IY4BSITdgFORVktCQ1ZaNb3XFJULDFo/j4is7MsJ2LVbiHe2ktUjD445n KNcDRmOf0/DnJY2Qj3kEFdhSNNaZ46s8Asocf6XK/00iX+nd4F0/Eoo4TYwz5ywgQg9Y qMeQ== 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:authenticated-by; bh=x0AdTtWwp2JdB1lw6yKxmZuEyAkrHIvAEsOilqQsbMg=; b=Bl6hmCNlZ2xXSs2dq+//1bmcwbrSmklBfwn5gwuk7/ziCV/u/AGV+pP3Rzo5yY71fm PQwfNpK5u0vGVQPbIUkBERImA0XL8kY2wRpRag+bAFCIIG/nlNwS8GqaAtN/vaezQw8E Udgk7IIPHwaBb5D6dWxdSxIW0ytjJSW3JxkiJ5hx6i6qeohWSctdKuNtUBgySe1faZFI xsg5zxXZz6TjrGbFNr12AwTsaRnY7dqCL/5XKcg1flpzC0ybk2JAoBOA4+t8Sl3VRlHw 15QAkRQWMvJvUb5iPd71XdpAJKs/t4auWac4PJPvgn0mRSG7YM6qnPQwMJKnQkZ7/AMJ W+zA== 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 hu20-20020a170907a09400b0093d9b73f078si8011798ejc.223.2023.03.26.18.23.03; Sun, 26 Mar 2023 18:23:18 -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 S229622AbjC0BVQ convert rfc822-to-8bit (ORCPT + 59 others); Sun, 26 Mar 2023 21:21:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjC0BVQ (ORCPT ); Sun, 26 Mar 2023 21:21:16 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CFD24EFD for ; Sun, 26 Mar 2023 18:21:15 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 32R1KlEoA016127, 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.81/5.90) with ESMTPS id 32R1KlEoA016127 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 27 Mar 2023 09:20:47 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) 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; Mon, 27 Mar 2023 09:21:03 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS02.realtek.com.tw (172.21.6.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Mon, 27 Mar 2023 09:21:03 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02]) by RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02%5]) with mapi id 15.01.2375.007; Mon, 27 Mar 2023 09:21:03 +0800 From: Ping-Ke Shih To: Martin Kaistra , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Kalle Valo , Bitterblue Smith , Sebastian Andrzej Siewior Subject: RE: [RFC PATCH 05/14] wifi: rtl8xxxu: Allow setting rts threshold to -1 Thread-Topic: [RFC PATCH 05/14] wifi: rtl8xxxu: Allow setting rts threshold to -1 Thread-Index: AQHZXOKjefBUpiiY8Uifr5J2vjo5yq8N2vQw Date: Mon, 27 Mar 2023 01:21:03 +0000 Message-ID: References: <20230322171905.492855-1-martin.kaistra@linutronix.de> <20230322171905.492855-6-martin.kaistra@linutronix.de> In-Reply-To: <20230322171905.492855-6-martin.kaistra@linutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS02.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 > -----Original Message----- > From: Martin Kaistra > Sent: Thursday, March 23, 2023 1:19 AM > To: linux-wireless@vger.kernel.org > Cc: Jes Sorensen ; Kalle Valo ; Ping-Ke Shih > ; Bitterblue Smith ; Sebastian Andrzej Siewior > > Subject: [RFC PATCH 05/14] wifi: rtl8xxxu: Allow setting rts threshold to -1 > > The default setting in hostapd.conf for rts threshold is -1, which means > disabled. Allow to set it. > > Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih > --- > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > index f8380a2d51ae2..b233c66a7a5a8 100644 > --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > @@ -6592,7 +6592,7 @@ static void rtl8xxxu_configure_filter(struct ieee80211_hw *hw, > > static int rtl8xxxu_set_rts_threshold(struct ieee80211_hw *hw, u32 rts) > { > - if (rts > 2347) > + if (rts > 2347 && rts != (u32)-1) > return -EINVAL; > > return 0; > -- > 2.30.2