2019-01-22 12:47:59

by Stanislaw Gruszka

[permalink] [raw]
Subject: [PATCH] mt7601u: bump supported EEPROM version

As reported by Michael eeprom 0d is supported and work with the driver.

Dump of /sys/kernel/debug/ieee80211/phy1/mt7601u/eeprom_param
with 0d EEPORM looks like this:

RSSI offset: 0 0
Reference temp: f9
LNA gain: 8
Reg channels: 1-14
Per rate power:
raw:05 bw20:05 bw40:05
raw:05 bw20:05 bw40:05
raw:03 bw20:03 bw40:03
raw:03 bw20:03 bw40:03
raw:04 bw20:04 bw40:04
raw:00 bw20:00 bw40:00
raw:00 bw20:00 bw40:00
raw:00 bw20:00 bw40:00
raw:02 bw20:02 bw40:02
raw:00 bw20:00 bw40:00
Per channel power:
tx_power ch1:09 ch2:09
tx_power ch3:0a ch4:0a
tx_power ch5:0a ch6:0a
tx_power ch7:0b ch8:0b
tx_power ch9:0b ch10:0b
tx_power ch11:0b ch12:0b
tx_power ch13:0b ch14:0b

Reported-and-tested-by: Michael <[email protected]>
Signed-off-by: Stanislaw Gruszka <[email protected]>
---
drivers/net/wireless/mediatek/mt7601u/eeprom.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt7601u/eeprom.h b/drivers/net/wireless/mediatek/mt7601u/eeprom.h
index 662d12703b69..57b503ae63f1 100644
--- a/drivers/net/wireless/mediatek/mt7601u/eeprom.h
+++ b/drivers/net/wireless/mediatek/mt7601u/eeprom.h
@@ -17,7 +17,7 @@

struct mt7601u_dev;

-#define MT7601U_EE_MAX_VER 0x0c
+#define MT7601U_EE_MAX_VER 0x0d
#define MT7601U_EEPROM_SIZE 256

#define MT7601U_DEFAULT_TX_POWER 6
--
1.9.3



2019-01-22 19:37:14

by Jakub Kicinski

[permalink] [raw]
Subject: Re: [PATCH] mt7601u: bump supported EEPROM version

On Tue, 22 Jan 2019 13:47:54 +0100, Stanislaw Gruszka wrote:
> As reported by Michael eeprom 0d is supported and work with the driver.
>
> Dump of /sys/kernel/debug/ieee80211/phy1/mt7601u/eeprom_param
> with 0d EEPORM looks like this:
>
> RSSI offset: 0 0
> Reference temp: f9
> LNA gain: 8
> Reg channels: 1-14
> Per rate power:
> raw:05 bw20:05 bw40:05
> raw:05 bw20:05 bw40:05
> raw:03 bw20:03 bw40:03
> raw:03 bw20:03 bw40:03
> raw:04 bw20:04 bw40:04
> raw:00 bw20:00 bw40:00
> raw:00 bw20:00 bw40:00
> raw:00 bw20:00 bw40:00
> raw:02 bw20:02 bw40:02
> raw:00 bw20:00 bw40:00
> Per channel power:
> tx_power ch1:09 ch2:09
> tx_power ch3:0a ch4:0a
> tx_power ch5:0a ch6:0a
> tx_power ch7:0b ch8:0b
> tx_power ch9:0b ch10:0b
> tx_power ch11:0b ch12:0b
> tx_power ch13:0b ch14:0b
>
> Reported-and-tested-by: Michael <[email protected]>
> Signed-off-by: Stanislaw Gruszka <[email protected]>

Acked-by: Jakub Kicinski <[email protected]>

2019-02-01 12:28:44

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH] mt7601u: bump supported EEPROM version

Stanislaw Gruszka <[email protected]> wrote:

> As reported by Michael eeprom 0d is supported and work with the driver.
>
> Dump of /sys/kernel/debug/ieee80211/phy1/mt7601u/eeprom_param
> with 0d EEPORM looks like this:
>
> RSSI offset: 0 0
> Reference temp: f9
> LNA gain: 8
> Reg channels: 1-14
> Per rate power:
> raw:05 bw20:05 bw40:05
> raw:05 bw20:05 bw40:05
> raw:03 bw20:03 bw40:03
> raw:03 bw20:03 bw40:03
> raw:04 bw20:04 bw40:04
> raw:00 bw20:00 bw40:00
> raw:00 bw20:00 bw40:00
> raw:00 bw20:00 bw40:00
> raw:02 bw20:02 bw40:02
> raw:00 bw20:00 bw40:00
> Per channel power:
> tx_power ch1:09 ch2:09
> tx_power ch3:0a ch4:0a
> tx_power ch5:0a ch6:0a
> tx_power ch7:0b ch8:0b
> tx_power ch9:0b ch10:0b
> tx_power ch11:0b ch12:0b
> tx_power ch13:0b ch14:0b
>
> Reported-and-tested-by: Michael <[email protected]>
> Signed-off-by: Stanislaw Gruszka <[email protected]>
> Acked-by: Jakub Kicinski <[email protected]>

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

3bd1505fed71 mt7601u: bump supported EEPROM version

--
https://patchwork.kernel.org/patch/10775455/

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