Browse Source

mt76x2: eeprom: fix typo in mt76x2_get_power_info_5g()

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>
Lorenzo Bianconi 7 years ago
parent
commit
c3929a980b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c

+ 1 - 1
drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c

@@ -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;