diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-12-08 10:25:39 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-02-14 12:06:01 +0300 |
commit | 6a792b1a0332413e16d36c167c96ab3897cb3e04 (patch) | |
tree | dc7239ff8e9b149681626acc15b1d43050b9fe78 /drivers/net/wireless/mediatek/mt76/mt7603/main.c | |
parent | bae76a1eefd4815f73046d66ddfdb2a4987bf952 (diff) | |
download | linux-6a792b1a0332413e16d36c167c96ab3897cb3e04.tar.xz |
mt76: mt7603: set 0 as min coverage_class value
Set 0 as minimum configurable value for coverage_class since mt76 does
not support dynack
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7603/main.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7603/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/main.c b/drivers/net/wireless/mediatek/mt76/mt7603/main.c index eed56165b275..e5776d936c0a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/main.c @@ -642,7 +642,7 @@ mt7603_set_coverage_class(struct ieee80211_hw *hw, s16 coverage_class) { struct mt7603_dev *dev = hw->priv; - dev->coverage_class = coverage_class; + dev->coverage_class = max_t(s16, coverage_class, 0); mt7603_mac_set_timing(dev); } |