[openwrt/openwrt] ramips: update WLAN MAC address of JCG Y2
LEDE Commits
lede-commits at lists.infradead.org
Sat Mar 12 22:43:05 PST 2022
mans0n pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/7fa227ead5246cfa61b38888b2394d433ad66f36
commit 7fa227ead5246cfa61b38888b2394d433ad66f36
Author: Chukun Pan <amadeus at jmu.edu.cn>
AuthorDate: Mon Jan 10 12:28:40 2022 +0800
ramips: update WLAN MAC address of JCG Y2
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 at jmu.edu.cn>
---
.../ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
index 9a002d24c8..f2daac990b 100644
--- a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
+++ b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
@@ -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|\
More information about the lede-commits
mailing list