forked from Ivasoft/openwrt
treewide: convert MAC address location offsets to hexadecimal
This changes the offsets for the MAC address location in mtd_get_mac_binary* and mtd_get_mac_text to hexadecimal notation. This will be much clearer for the reader when numbers are big, and will also match the style used for mtd-mac-address in DTS files. (e.g. 0x1006 and 0x5006 are much more useful than 4102 and 20486) Acked-by: Alexander Couzens <lynxis@fe80.eu> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
committed by
Alexander Couzens
parent
07926d7def
commit
75bfc393ba
@@ -604,11 +604,11 @@ ar71xx_setup_macs()
|
||||
|
||||
case $board in
|
||||
archer-c7-v4)
|
||||
base_mac=$(mtd_get_mac_binary config 8)
|
||||
base_mac=$(mtd_get_mac_binary config 0x8)
|
||||
wan_mac=$(macaddr_add "$base_mac" 1)
|
||||
;;
|
||||
archer-c7-v5)
|
||||
base_mac=$(mtd_get_mac_binary info 8)
|
||||
base_mac=$(mtd_get_mac_binary info 0x8)
|
||||
wan_mac=$(macaddr_add "$base_mac" 1)
|
||||
;;
|
||||
dgl-5500-a1|\
|
||||
@@ -619,8 +619,8 @@ ar71xx_setup_macs()
|
||||
dir-835-a1|\
|
||||
wndr3700v4|\
|
||||
wndr4300)
|
||||
lan_mac=$(mtd_get_mac_binary caldata 0)
|
||||
wan_mac=$(mtd_get_mac_binary caldata 6)
|
||||
lan_mac=$(mtd_get_mac_binary caldata 0x0)
|
||||
wan_mac=$(mtd_get_mac_binary caldata 0x6)
|
||||
;;
|
||||
dir-869-a1|\
|
||||
mynet-n750)
|
||||
@@ -634,7 +634,7 @@ ar71xx_setup_macs()
|
||||
;;
|
||||
tl-wr1043n-v5|\
|
||||
tl-wr1043nd-v4)
|
||||
lan_mac=$(mtd_get_mac_binary product-info 8)
|
||||
lan_mac=$(mtd_get_mac_binary product-info 0x8)
|
||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||
;;
|
||||
wlr8100)
|
||||
|
||||
Reference in New Issue
Block a user