aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wfx/hif_tx_mib.h
diff options
context:
space:
mode:
authorJérôme Pouiller <jerome.pouiller@silabs.com>2020-01-15 13:55:05 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-16 20:59:51 +0100
commit4e1514c940fc64e7fb922a9390742f8e28a460ae (patch)
treed57fb43e671334075532a30c823fa1d10d66d432 /drivers/staging/wfx/hif_tx_mib.h
parentstaging: wfx: do not update uapsd if not necessary (diff)
downloadlinux-dev-4e1514c940fc64e7fb922a9390742f8e28a460ae.tar.xz
linux-dev-4e1514c940fc64e7fb922a9390742f8e28a460ae.zip
staging: wfx: fix case where RTS threshold is 0
If RTS threshold is 0, it currently disables RTS. It should mean "enabled for every frames". Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200115135338.14374-44-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wfx/hif_tx_mib.h')
-rw-r--r--drivers/staging/wfx/hif_tx_mib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wfx/hif_tx_mib.h b/drivers/staging/wfx/hif_tx_mib.h
index ccea3f15a34d..bf3769c2a9b6 100644
--- a/drivers/staging/wfx/hif_tx_mib.h
+++ b/drivers/staging/wfx/hif_tx_mib.h
@@ -391,7 +391,7 @@ static inline int hif_wep_default_key_id(struct wfx_vif *wvif, int val)
static inline int hif_rts_threshold(struct wfx_vif *wvif, int val)
{
struct hif_mib_dot11_rts_threshold arg = {
- .threshold = cpu_to_le32(val > 0 ? val : 0xFFFF),
+ .threshold = cpu_to_le32(val >= 0 ? val : 0xFFFF),
};
return hif_write_mib(wvif->wdev, wvif->id,