]> git.baikalelectronics.ru Git - kernel.git/commit
mt76x02: do not enable RTS/CTS by default
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 12 Mar 2019 12:32:07 +0000 (13:32 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 19 Mar 2019 15:37:25 +0000 (17:37 +0200)
commit454b8d3102694fd7abed834a6bdc8d4fbcd72818
tree43651c6216a1e0eda9f93e00372d942c4d330022
parentc221b277aaf928d269a3e6ab69bcc444442093ae
mt76x02: do not enable RTS/CTS by default

My commit 6447f1dd6362 ("mt76x02: set protection according to ht
operation element") enabled by default RTS/CTS protection for OFDM
and CCK traffic, because MT_TX_RTS_CFG_THRESH is configured to non
0xffff by initvals and .set_rts_threshold callback is not called by
mac80211 on initialization, only on user request or during
ieee80211_reconfig() (suspend/resuem or restart_hw).

Enabling RTS/CTS cause some problems when sending probe request
frames by hcxdumptool penetration tool, but I expect it can cause
other issues on different scenarios.

Restore previous setting of RTS/CTS being disabled by default for
OFDM/CCK by changing MT_TX_RTS_CFG_THRESH initvals to 0xffff.

Fixes: 6447f1dd6362 ("mt76x02: set protection according to ht operation element")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x0/initvals.h
drivers/net/wireless/mediatek/mt76/mt76x2/init.c
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c