ramips: update WLAN MAC address of JCG Y2
authorChukun Pan <amadeus@jmu.edu.cn>
Mon, 10 Jan 2022 04:28:40 +0000 (12:28 +0800)
committerSungbo Eo <mans0n@gorani.run>
Sun, 13 Mar 2022 03:39:58 +0000 (12:39 +0900)
MAC addresses on OEM firmware:
  04:xx:xx:xx:xx:c8  factory 0x4     wlan2g
  06:xx:xx:xx:xx:c8  [not on flash]  wlan5g

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac

index 9a002d24c81e3a7cd52c32ec358fc9031e388bdf..f2daac990bbcaa3b9339aec40f4a297aa745b557 100644 (file)
@@ -43,6 +43,10 @@ case "$board" in
                [ "$PHYNBR" = "1" ] && \
                        macaddr_setbit_la "$(mtd_get_mac_binary Factory 0x4)" > /sys${DEVPATH}/macaddress
                ;;
+       jcg,y2)
+               [ "$PHYNBR" = "1" ] && \
+                       macaddr_setbit_la "$(mtd_get_mac_binary factory 0x4)" > /sys${DEVPATH}/macaddress
+               ;;
        linksys,e5600|\
        linksys,ea6350-v4|\
        linksys,ea7300-v1|\