mt76x2: fix tssi initialization for 5GHz band
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Tue, 3 Apr 2018 14:45:31 +0000 (16:45 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Apr 2018 17:28:30 +0000 (20:28 +0300)
Fix mcu initial configuration for tssi calibration on 5GHz band

Fixes: 7bc04215a66b ("mt76: add driver code for MT76x2e")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x2_phy.c

index fcc37eb7ce0b41e9bedbe1bd0e4592f006043ba2..f28c55746cea579a1c9d0a381b507a0531084439 100644 (file)
@@ -180,7 +180,7 @@ mt76x2_phy_tssi_init_cal(struct mt76x2_dev *dev)
        if (mt76x2_channel_silent(dev))
                return false;
 
-       if (chan->band == NL80211_BAND_2GHZ)
+       if (chan->band == NL80211_BAND_5GHZ)
                flag |= BIT(0);
 
        if (mt76x2_ext_pa_enabled(dev, chan->band))