mt76: mt7603: add upper limit for dynamic sensitivity minimum receive power
authorFelix Fietkau <nbd@nbd.name>
Sat, 22 Feb 2020 09:02:21 +0000 (10:02 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 17 Mar 2020 16:13:59 +0000 (17:13 +0100)
commit633348f2ca7eb0e8ac285ece3332973978807485
treea6c5798ebd0f6eff39c9664d6c0b99b49b344225
parent1a7d3f47931ff721ac4459a6166db99e33fd28b7
mt76: mt7603: add upper limit for dynamic sensitivity minimum receive power

If the minimum power is raised too much, it can make it impossible for weaker
clients to connect, and there are some scenarios where the false detects will
not go down no matter how much the sensitivity is adjusted.
Fixes connectivity issues in some rare cases

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c
drivers/net/wireless/mediatek/mt76/mt7603/init.c
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h