edgecore,eap102|\
edimax,cax1800|\
linksys,mx5300|\
- netgear,sxr80|\
- netgear,sxs80|\
netgear,wax218|\
qnap,301w|\
redmi,ax6|\
ath11k_patch_mac $(mtd_get_mac_binary boarddata1 0x6) 2
ath11k_set_macflag
;;
+ netgear,sxr80|\
+ netgear,sxs80)
+ caldata_extract "0:art" 0x1000 0x20000
+ label_mac=$(get_mac_label)
+ ath11k_patch_mac $(mtd_get_mac_binary boarddata1 0x0c) 0
+ #boarddata1 doesn't have a MAC for the 2G interface
+ ath11k_patch_mac $(macaddr_setbit_la $label_mac) 1
+ ath11k_patch_mac $(mtd_get_mac_binary boarddata1 0x12) 2
+ ath11k_set_macflag
+ ;;
netgear,wax620)
caldata_extract "0:art" 0x1000 0x20000
label_mac=$(get_mac_label)
[ "$PHYNBR" = "0" ] && macaddr_add $(get_mac_label) 2 > /sys${DEVPATH}/macaddress
[ "$PHYNBR" = "1" ] && macaddr_add $(get_mac_label) 3 > /sys${DEVPATH}/macaddress
;;
- netgear,sxr80|\
- netgear,sxs80)
- [ "$PHYNBR" = "0" ] && mtd_get_mac_binary boarddata1 0x0c > /sys${DEVPATH}/macaddress
- #boarddata1 doesn't have a MAC for the 2G interface
- [ "$PHYNBR" = "1" ] && macaddr_setbit_la $(get_mac_label) > /sys${DEVPATH}/macaddress
- [ "$PHYNBR" = "2" ] && mtd_get_mac_binary boarddata1 0x12 > /sys${DEVPATH}/macaddress
- ;;
esac