Skip to content

Commit

Permalink
staging: wfx: fix case where RTS threshold is 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jérôme Pouiller authored and Greg Kroah-Hartman committed Jan 16, 2020
1 parent 9b90910 commit 4e1514c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/wfx/hif_tx_mib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4e1514c

Please sign in to comment.