mpc85xx: add support for OCEDO Panda
[openwrt/openwrt.git] / target / linux / mpc85xx / base-files / etc / hotplug.d / ieee80211 / 10-fix-wifi-mac
index 3092cebfc9ba17427a3ee77cd5cd18c90d280855..f153b53c8ed7bf8643968531afaf9845338b225d 100644 (file)
@@ -12,6 +12,11 @@ PHYNBR=${DEVPATH##*/phy}
 board=$(board_name)
 
 case "$board" in
+ocedo,panda)
+       WMAC=wmac$(($PHYNBR + 1))
+       MAC=$(mtd_get_mac_ascii uboot-env0 ${WMAC})
+       echo ${MAC} > /sys${DEVPATH}/macaddress
+       ;;
 sophos,red-15w-rev1)
        echo $(mtd_get_mac_ascii u-boot-env ethaddr) > /sys${DEVPATH}/macaddress
        ;;