[OpenWrt-Devel] [PATCH] ramips: switch DIR-860L B1 DTS to generic wireless naming convention.

Adrian Schmutzler mail at adrianschmutzler.de
Sun May 31 07:52:33 EDT 2020


Hi,

> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org]
> On Behalf Of Stijn Segers
> Sent: Sonntag, 31. Mai 2020 12:49
> To: openwrt-devel at lists.openwrt.org
> Subject: [OpenWrt-Devel] [PATCH] ramips: switch DIR-860L B1 DTS to generic
> wireless naming convention.
> 
> Switches the DIR-860L B1 DTS to the generic wifi naming convention.
> 
> Signed-off-by: Stijn Segers <foss at volatilesystems.org>
> ---
>  target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
> b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
> index ce747deb28..336e696fe9 100644
> --- a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
> +++ b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts
> @@ -152,17 +152,19 @@
>  };
> 
>  &pcie0 {
> -	wifi0: mt76 at 0,0 {
> +	wifi at 0,0 {
> +		compatible = "mediatek,mt76";
>  		reg = <0x0000 0 0 0 0>;
> -		mediatek,mtd-eeprom = <&radio 0x2000>;
> +		mediatek,mtd-eeprom = <&factory 0x2000>;

This changes the referenced partition node, so you are now reading from a
different location in flash.
I doubt that the calibration data is stored twice on this device? (And even
then, it would make more sense to read from radio ...)

Best

Adrian

>  		ieee80211-freq-limit = <5000000 6000000>;
>  	};
>  };
> 
>  &pcie1 {
> -	wifi1: mt76 at 0,0 {
> +	wifi at 0,0 {
> +		compatible = "mediatek,mt76";
>  		reg = <0x0000 0 0 0 0>;
> -		mediatek,mtd-eeprom = <&radio 0x0>;
> +		mediatek,mtd-eeprom = <&factory 0x0000>;
>  		ieee80211-freq-limit = <2400000 2500000>;
>  	};
>  };
> --
> 2.20.1
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list