[OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

Chuanhong Guo gch981213 at gmail.com
Wed Feb 4 06:44:44 EST 2015


From: 郭传鈜 <gch981213 at gmail.com>

2ghz should be disabled on this router.
And I think 'mediatek,mtd-eeprom' should be defined as<&factory 32768> instead of <&factory 0x8000> according to WHR-1166D.dts
Actually I didn't have this router.But I think this is the reason that the MT7612E radio always gets a random MAC address on this router.

BTW,Roger,could you please test if this patch can fix the MAC address problem you told in your mail? 

Signed-off-by: 郭传鈜 <gch981213 at gmail.com>
---
 target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts b/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
index fda3325..647ecad 100644
--- a/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
+++ b/target/linux/ramips/dts/XIAOMI-MIWIFI-MINI.dts
@@ -101,7 +101,8 @@
 			mt76 at 0,0 {
 				reg = <0x0000 0 0 0 0>;
 				device_type = "pci";
-				mediatek,mtd-eeprom = <&factory 0x8000>;
+				mediatek,mtd-eeprom = <&factory 32768>;
+				mediatek,2ghz = <0>;
 			};
 		};
 	};
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list