Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp35289rwr; Wed, 19 Apr 2023 03:03:48 -0700 (PDT) X-Google-Smtp-Source: AKy350ZCVZjkua3LI7FQVr9RlCEJK/U3eEKDqv/4wpVyd8NVvp86wEuyUl8OkbWRxRemym30RiMz X-Received: by 2002:a05:6a20:431a:b0:ef:e240:b564 with SMTP id h26-20020a056a20431a00b000efe240b564mr3265986pzk.47.1681898627782; Wed, 19 Apr 2023 03:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681898627; cv=none; d=google.com; s=arc-20160816; b=UtP4hscXP7LduML25fIEYneBw21bShNhth62S9OeqNFYD4FkjNdhDIS4Fp3bAzscrD YRkXHzu/qiFAT8fhQ0HQtslDPkTfKexoP0n1ehJUjXB5F6UVJUxiNx/l66xbnFQwFMze AEyhKlo9JoR9wGJ7rH8//cahPk7Y4NmbktsXRDNc2gMiI0PHkoqp7R9itBVzaYKOnFFl 0Ph8CHWwyKKlkgLTvitENIeb2+NoyO4TmCasJgklzJ0gWsfAvJi1aO+RbCNhnByNrII7 Gu2kHgawtT0RKU+3YzjdoATzmzqIAK+kavhwz1cHlmqrn5JSDIte8miHpQ06Rtp2ZYZ8 bcHA== 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:dkim-signature :dkim-signature:from; bh=/IcqGDAf6SRQuUK8yLvYZYjJ1wvcwdftC4hnhgYc6TM=; b=AG1Gteq6xuGD3tM7J8POaemKR2yijeD5BvV3ufaNBA+jexsgpeJC2WHfYNnzS+HgNr yQRhA9YG6jCBkosndUx4OU7fwPqT37gQlnI3dK0QdmFu1ApsFeeJ0AVkoQq4J8AnN1En rh5TSZvgdCh8m0qKZKeh4y2G+kqquDbaFPtJalEMF/92+xUUBkn4ViJR90uN3j6gH1H4 WMTN9gcXJs51CGydAaxmXtnyAxfVuSHND1xQC2VFOf3ux2aPcx2Jqy2fUBq1GIb8TKuN BFhSVJ0mP9EDTfe7c7ZDb4UxG9IIcKkvYME5iAU1QTxPoQVoS7kwNIohFhEaaPLw2MBO Evnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=chhkwflr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=4qv8Z7fp; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020aa797b5000000b0063b56b7ba82si15406932pfq.189.2023.04.19.03.03.33; Wed, 19 Apr 2023 03:03:47 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=chhkwflr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=4qv8Z7fp; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231741AbjDSKCb (ORCPT + 64 others); Wed, 19 Apr 2023 06:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232659AbjDSKCR (ORCPT ); Wed, 19 Apr 2023 06:02:17 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63BAA40EE for ; Wed, 19 Apr 2023 03:02:15 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1681898531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/IcqGDAf6SRQuUK8yLvYZYjJ1wvcwdftC4hnhgYc6TM=; b=chhkwflrd0x0HJN+Kod2cDKPJAtECU0yneCO04/2FvxdHDmYTL8p6FYqNoDHHTFXC41Ivb ZT8vnq6FFZhZ9Z902pZuhDJ5nZCSF4jQZYk5zaKU+r/PASDlYEi/+MwzTOg4RgDM+jKuo8 r4Yd7H4g5ZUrDfaGwlNt9AvcroPJFxc0c9sOyMoKMZ/PlGCN+CfBLznGiz0TSb4XYR1RoP R7vUU/sQ5kb/7YIO2Vl8Xu614ERDbNFTLd8lyNFNceUlZa2Sb6OfJMI4mmKq6H8169sh9d mmNhidtPAh4MSgvZ/fOCyEYPCrVeVNKVUW/W122xbTBoHn6ZnyNkLkvULJeW4Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1681898531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/IcqGDAf6SRQuUK8yLvYZYjJ1wvcwdftC4hnhgYc6TM=; b=4qv8Z7fpaONixnS+23PljquJKy0V8DeLe1fU7iJxLpmkS7eb721m/81IAWtf65luZghxue 0aQgTYghb00ER1Cg== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v2 05/18] wifi: rtl8xxxu: Allow setting rts threshold to -1 Date: Wed, 19 Apr 2023 12:01:32 +0200 Message-Id: <20230419100145.159191-6-martin.kaistra@linutronix.de> In-Reply-To: <20230419100145.159191-1-martin.kaistra@linutronix.de> References: <20230419100145.159191-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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 6a354165224a8..60b50a57da284 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -6585,7 +6585,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