mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt7603: disable dynamic sensitivity adjustment by default
The vendor driver also does not enable it, and it has been shown to cause some issues. It can be re-enabled for testing through debugfs Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -53,4 +53,6 @@ void mt7603_init_debugfs(struct mt7603_dev *dev)
|
||||
mt7603_reset_read);
|
||||
debugfs_create_devm_seqfile(dev->mt76.dev, "radio", dir,
|
||||
mt7603_radio_read);
|
||||
debugfs_create_bool("dynamic_sensitivity", 0600, dir,
|
||||
&dev->dynamic_sensitivity);
|
||||
}
|
||||
|
||||
@@ -1641,6 +1641,9 @@ mt7603_false_cca_check(struct mt7603_dev *dev)
|
||||
int min_signal;
|
||||
u32 val;
|
||||
|
||||
if (!dev->dynamic_sensitivity)
|
||||
return;
|
||||
|
||||
val = mt76_rr(dev, MT_PHYCTRL_STAT_PD);
|
||||
pd_cck = FIELD_GET(MT_PHYCTRL_STAT_PD_CCK, val);
|
||||
pd_ofdm = FIELD_GET(MT_PHYCTRL_STAT_PD_OFDM, val);
|
||||
|
||||
@@ -124,6 +124,7 @@ struct mt7603_dev {
|
||||
u8 ed_strict_mode;
|
||||
u8 ed_strong_signal;
|
||||
|
||||
bool dynamic_sensitivity;
|
||||
s8 sensitivity;
|
||||
|
||||
u8 beacon_mask;
|
||||
|
||||
Reference in New Issue
Block a user