mt76x2: eeprom: fix typo in mt76x2_get_power_info_5g()
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Thu, 14 Dec 2017 10:46:02 +0000 (11:46 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:29:40 +0000 (19:29 +0200)
Fix typo in 5GHz power vs channel eeprom parsing

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

index 99049e43ccaf40673c7936deff96d66820181b09..9c9bf3e785ba9633f80a56af8608a92b99adb81e 100644 (file)
@@ -536,7 +536,7 @@ mt76x2_get_power_info_5g(struct mt76x2_dev *dev, struct mt76x2_tx_power_info *t,
 
        if (channel >= 192)
                delta_idx = 4;
-       else if (channel >= 484)
+       else if (channel >= 184)
                delta_idx = 3;
        else if (channel < 44)
                delta_idx = 3;