mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 09:09:55 -04:00
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 <martin.kaistra@linutronix.de> Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230428150833.218605-6-martin.kaistra@linutronix.de
This commit is contained in:
committed by
Kalle Valo
parent
f5db4d11fd
commit
20d5951548
@@ -6655,7 +6655,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;
|
||||
|
||||
Reference in New Issue
Block a user