[PATCH] ramips: mt7621: fix R6850 EEPROM offsets

Adrian Schmutzler mail at adrianschmutzler.de
Fri Mar 12 21:01:18 GMT 2021


Hi,

> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org]
> On Behalf Of Stijn Segers
> Sent: Freitag, 12. März 2021 12:45
> To: openwrt-devel at lists.openwrt.org
> Cc: mail at david-bauer.net; Bernt Ø . Thorvaldsen
> <bernt.thorvaldsen at gmail.com>
> 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.

Best

Adrian

> 
> [1]  https://forum.openwrt.org/t/netgear-r6850-very-low-transmit-power-
> on-5ghz/90984
> 
> Signed-off-by: Stijn Segers <foss at volatilesystems.org>
> Tested-by: Bernt Ø. Thorvaldsen <bernt.thorvaldsen at gmail.com>
> ---
>  .../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 at 0,0 {
> +		compatible = "mediatek,mt76";
> +		reg = <0x0 0 0 0 0>;
> +		mediatek,mtd-eeprom = <&factory 0x28000>;
> +		ieee80211-freq-limit = <5000000 6000000>;
> +	};
> +};
> +
> +&pcie1 {
> +	wifi at 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
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210312/a297f224/attachment.sig>


More information about the openwrt-devel mailing list