Skip to contentSkip to conversation

mt76x2: eeprom: fix typo in mt76x2_get_power_info_5g()

PATCH In review Lorenzo Bianconi 4 participants 6 messages Dec 14, 2017 – Jan 8, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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")
---
 drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c +1 -1
index 440b7e7d73a9..29dc52ef629d 100644
@@ -524,7 +524,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;
Signature · 1 line
2.13.6
#3 lore raw
In reply to Lorenzo Bianconi
Quoted 14 lines · Lorenzo Bianconi

Fix typo in 5GHz power vs channel eeprom parsing

Fixes 7bc04215a66b ("mt76: add driver code for MT76x2e")
---
 drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c +0 -0
index 440b7e7d73a9..29dc52ef629d 100644

drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c mt76x2_get_power_info_5g(struct mt76x2_dev *dev, struct mt76x2_tx_power_info *t, · line 530

Quoted 8 lines
drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c +1 -1
@@ -524,7 +524,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;

any possibility of adding:

#4 lore raw
Quoted 25 lines · Colin Ian King
Quoted 14 lines · Lorenzo Bianconi

Fix typo in 5GHz power vs channel eeprom parsing

Fixes 7bc04215a66b ("mt76: add driver code for MT76x2e")
---
 drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c +0 -0
index 440b7e7d73a9..29dc52ef629d 100644

drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c mt76x2_get_power_info_5g(struct mt76x2_dev *dev, struct mt76x2_tx_power_info *t, · line 530

Quoted 8 lines
drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c +1 -1
@@ -524,7 +524,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;

any possibility of adding:

Quoted 1 line

Sure, I'll add that during commit.

Signature · 1 line
Kalle Valo
#5 lore raw
Quoted 7 lines · Kalle Valo
Quoted 5 lines · Colin Ian King
Quoted 4 lines · Lorenzo Bianconi

Fix typo in 5GHz power vs channel eeprom parsing

Fixes 7bc04215a66b ("mt76: add driver code for MT76x2e")

[...]

Quoted 5 lines
Quoted 3 lines

any possibility of adding:

Sure, I'll add that during commit.

Actually patchwork added that automatically based on your email, just as it does with Acked-by. Very nice!

Signature · 1 line
Kalle Valo
#6 lore raw
In reply to Lorenzo Bianconi
Quoted 6 lines · Lorenzo Bianconi

Fix typo in 5GHz power vs channel eeprom parsing

Fixes 7bc04215a66b ("mt76: add driver code for MT76x2e")

Patch applied to wireless-drivers-next.git, thanks.

c3929a980b16 mt76x2: eeprom: fix typo in mt76x2_get_power_info_5g()

Signature · 3 lines
https://patchwork.kernel.org/patch/10111813/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches