Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6423659rwl; Wed, 22 Mar 2023 10:22:58 -0700 (PDT) X-Google-Smtp-Source: AK7set9Y0OMpRBusJeJsC9rno/WJQVcLRR0YyziEeOVbu/7mdYnTfHh/YGUE8MyychDwOXcJl2gy X-Received: by 2002:a17:906:9446:b0:8b0:ad0b:7ab8 with SMTP id z6-20020a170906944600b008b0ad0b7ab8mr7394001ejx.14.1679505777757; Wed, 22 Mar 2023 10:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679505777; cv=none; d=google.com; s=arc-20160816; b=SYT8w0pR/3F3ckdAi24seljmLSxrGewZRKD/voW4jLsFTdJObndLcuE2zuc62mbuJd k8opgGsW4rM5T5dq0nsFr8vIuH14v2biGV6fwxGac8Y4PAivnV/0m3N4vrrvv6uTP2Wq /WBahwwoE+2KRkZWrifxuMJomANsbljFFsxtn4a5rvh7PKfepRovTdIFdWSxMnAliO8M OBDaArXSallasovLwBqx8Mx3PzmXhSB2OBEP+MKv52jwPXGvboIjxKEe9pMTHF+M23Ej hfCvGObgqE5PJUzRkCP7wrttxmIFTKq6tKAbj5Dl8CKZoxdIEd1rDEaGNvoP0IEQj1BZ Z6+A== 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=1xAvpC4TCARjPnoyt9sroIuRnOYaccB3ZahHvfk/vGg=; b=doh6kxlAODheWu8wo0N4QfVfE0SJikO91wlJkPs0UOsA8JpQ8ELbAxJmVAk1tOWsaw +LUG1C9MorL9ew+pO7trrdz3RQibb9qmTGjXcz2nt21iG6K1KPiwBECdR8m6H2IfGNSB 4U1fWrysAP2ubRfFgoqjLbj3YB2G16NfjagAmSNv5n6NDsQH/O97IqcDdOCRMlB139G2 pNn8oOXkHInmENehCaJoKrue252M6hcyF5PVUKMh/leByW9qQtbebms3ONpzFujSJ0ag 91ghhz7IcjNS2LJ8u9b9gf7CPxI7MSfNW7FCU3Gv/msWPZieowdxt4qawq5U/6gPi7nc 7YMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OAjT5pot; dkim=neutral (no key) header.i=@linutronix.de; 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 hf8-20020a1709072c4800b009313e7b7273si15416324ejc.649.2023.03.22.10.22.41; Wed, 22 Mar 2023 10:22:57 -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=OAjT5pot; dkim=neutral (no key) header.i=@linutronix.de; 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 S231411AbjCVRUW (ORCPT + 60 others); Wed, 22 Mar 2023 13:20:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231336AbjCVRUF (ORCPT ); Wed, 22 Mar 2023 13:20:05 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7A3C67001 for ; Wed, 22 Mar 2023 10:19:45 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679505551; 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=1xAvpC4TCARjPnoyt9sroIuRnOYaccB3ZahHvfk/vGg=; b=OAjT5potCcJH/zK8+ZaN8EHkUPP+OCCozl5hb6FzP4M1GW2eQQ98yU7w5i+23DVkGekVuG 0kaknpRS29SQ+yuLnQVKnRnd79/pGhiQJEGn2Y4+tasJe1pUgQE98A/l5ZdwL6AKuUdKp6 0o0uuJxIWJI3AnMq5GbBmJLnWwpnHGpOxpSRIyfZ9VQkqpoQ1eybitgBG7F6B2mTWqVz8L LqphqBKz2h7nIHeo9J3pdq73Z8+MWhN/izH7RPiQDU+eFkqABSCck2eDZFu/tQ7RNEA17O hqiKedvxypaZUvW6j68HLyVGjV05nfSeGHFDAZJqxQWRbvBin6FfPxnLf4XDZQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679505551; 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=1xAvpC4TCARjPnoyt9sroIuRnOYaccB3ZahHvfk/vGg=; b=9njd6Q7rIdKur7c8VoobsLrFP4Cfdz5LOBe7vg4PciAgL2BsJvRJKGwW1YXw92ran6k3p2 AVm0pHt1nKdPsMCA== 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 Date: Wed, 22 Mar 2023 18:18:56 +0100 Message-Id: <20230322171905.492855-6-martin.kaistra@linutronix.de> In-Reply-To: <20230322171905.492855-1-martin.kaistra@linutronix.de> References: <20230322171905.492855-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 The default setting in hostapd.conf for rts threshold is -1, which means disabled. Allow to set it. Signed-off-by: Martin Kaistra --- 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