mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02: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:
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user