};
&wifi0 {
- nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
- nvmem-cell-names = "eeprom", "mac-address";
- ieee80211-freq-limit;
/delete-property/ ieee80211-freq-limit;
+
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ band@0 {
+ reg = <0>;
+ nvmem-cells = <&macaddr_factory_e000 2>;
+ nvmem-cell-names = "mac-address";
+ };
+
+ band@1 {
+ reg = <1>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
+ nvmem-cell-names = "mac-address";
+ };
};
&wifi1 {
nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 3>;
nvmem-cell-names = "eeprom", "mac-address";
};
+
+&gmac1 {
+ nvmem-cells = <&macaddr_factory_e000 4>;
+ nvmem-cell-names = "mac-address";
+};
[ "$PHYNBR" = "1" ] && \
macaddr_add $label_mac 2 > /sys${DEVPATH}/macaddress
;;
- dlink,dir-3040-a1)
- lan_mac_addr="$(mtd_get_mac_binary factory 0xe000)"
- [ "$PHYNBR" = "0" ] && \
- macaddr_add $lan_mac_addr 2 > /sys${DEVPATH}/macaddress
- ;;
dlink,dir-853-a3)
[ "$PHYNBR" = "0" ] && \
macaddr_setbit_la "$(mtd_get_mac_binary factory 0xe000)" \