Hi Adrian,

Op vrijdag 12 maart 2021 om 22u01 schreef Adrian Schmutzler <[email protected]>:
Hi,

 -----Original Message-----
 From: openwrt-devel [mailto:[email protected]]
 On Behalf Of Stijn Segers
 Sent: Freitag, 12. März 2021 12:45
 To: [email protected]
 Cc: [email protected]; Bernt Ø . Thorvaldsen
 <[email protected]>
 Subject: [PATCH] ramips: mt7621: fix R6850 EEPROM offsets

The Netgear R6850 has its EEPROM data sitting at 0x28000 for the 5 GHz radio and at 0x20000 for the 2,4 GHz radio. See forum topic for a hex dump [1].

The commit title/message does not really fit the code changes here.
You are adding full pcieX block, not just swapping EEPROM data. Please update to make clear what's going on.


I was advised to override the whole block on IRC, rather than just overriding the &wifi block EEPROM property.
So just overriding that is enough?

Thanks

Stijn


Best

Adrian


[1] https://forum.openwrt.org/t/netgear-r6850-very-low-transmit-power-
 on-5ghz/90984

 Signed-off-by: Stijn Segers <[email protected]>
 Tested-by: Bernt Ø. Thorvaldsen <[email protected]>
 ---
.../linux/ramips/dts/mt7621_netgear_r6850.dts | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)

 diff --git a/target/linux/ramips/dts/mt7621_netgear_r6850.dts
 b/target/linux/ramips/dts/mt7621_netgear_r6850.dts
 index 78e9093216..313fecf936 100644
 --- a/target/linux/ramips/dts/mt7621_netgear_r6850.dts
 +++ b/target/linux/ramips/dts/mt7621_netgear_r6850.dts
 @@ -6,3 +6,21 @@
        compatible = "netgear,r6850", "mediatek,mt7621-soc";
        model = "Netgear R6850";
  };
 +
 +&pcie0 {
 +      wifi@0,0 {
 +              compatible = "mediatek,mt76";
 +              reg = <0x0 0 0 0 0>;
 +              mediatek,mtd-eeprom = <&factory 0x28000>;
 +              ieee80211-freq-limit = <5000000 6000000>;
 +      };
 +};
 +
 +&pcie1 {
 +      wifi@0,0 {
 +              compatible = "mediatek,mt76";
 +              reg = <0x0 0 0 0 0>;
 +              mediatek,mtd-eeprom = <&factory 0x20000>;
 +              ieee80211-freq-limit = <2400000 2500000>;
 +      };
 +};
 --
 2.30.1


 _______________________________________________
 openwrt-devel mailing list
 [email protected]
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to