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
@@ -59,7 +59,7 @@ case "$FIRMWARE" in
|
||||
ath9k_ubi_eeprom_extract "caldata" 20480 4096
|
||||
else
|
||||
ath9k_eeprom_extract "wifi_data" 20480 4096
|
||||
ath9k_patch_firmware_mac $(mtd_get_mac_binary wifi_data 12)
|
||||
ath9k_patch_firmware_mac $(mtd_get_mac_binary wifi_data 0xc)
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
@@ -77,7 +77,7 @@ case "$FIRMWARE" in
|
||||
ath9k_ubi_eeprom_extract "caldata" 4096 4096
|
||||
else
|
||||
ath9k_eeprom_extract "wifi_data" 4096 4096
|
||||
ath9k_patch_firmware_mac $(mtd_get_mac_binary wifi_data 0)
|
||||
ath9k_patch_firmware_mac $(mtd_get_mac_binary wifi_data 0x0)
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user