ramips: add support for JCG Q20
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index b7a41f038c537f15c0d92eb0960c5f51b0f5e892..427bde4e38f7b7f55309dad79f26cce669db31d7 100644 (file)
@@ -10,6 +10,14 @@ PHYNBR=${DEVPATH##*/phy}
 board=$(board_name)
 
 case "$board" in
+       glinet,gl-mt1300)
+               [ "$PHYNBR" = "1" ] && \
+                       macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1 > /sys${DEVPATH}/macaddress
+               ;;
+       jcg,q20)
+               [ "$PHYNBR" = "1" ] && \
+                       macaddr_setbit_la "$(mtd_get_mac_binary Factory 0x4)" > /sys${DEVPATH}/macaddress
+               ;;
        linksys,ea7300-v1|\
        linksys,ea7300-v2|\
        linksys,ea7500-v2)