mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x0: correct type for eeprom gain value
Change type to u8 to allow sanity check agaist 0xff; Reported-by: Dan Carpenter <[email protected]> Fixes: e87b5039511a ("mt76x0: eeprom files") Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
1cb65d573f
commit
4fe2b16a93
+1
-1
@@ -241,7 +241,7 @@ mt76x0_set_rf_freq_off(struct mt76x0_dev *dev, u8 *eeprom)
|
||||
static void
|
||||
mt76x0_set_lna_gain(struct mt76x0_dev *dev, u8 *eeprom)
|
||||
{
|
||||
s8 gain;
|
||||
u8 gain;
|
||||
|
||||
dev->ee->lna_gain_2ghz = eeprom[MT_EE_LNA_GAIN_2GHZ];
|
||||
dev->ee->lna_gain_5ghz[0] = eeprom[MT_EE_LNA_GAIN_5GHZ_0];
|
||||
|
||||
Reference in New Issue
Block a user