Fix for not updating invalid MAC to fw_printenv
Invalid MAC was written to the Firmware env on updates.
The current implementation fails to write the trimmed address
for the following testcases:
* AA:FF:FF:FF:FF:100
* AA:AA:AA:AA:AA:AA:BB
Tested-By:
AA:E2:84:14:28:79 - Valid
AA:FF:FF:FF:FF:100 - Out of Range MAC
* This will be written as "AA:FF:FF:FF:FF:10"
AA:AA:AA:AA:AA:AA:BB - MAC with more tha 6 bytes
* This will be written as "AA:AA:AA:AA:AA:AA"
a:b:c:d:e:f - This will be written as
"0a:0b:0c:0d:0e:0f"
0a:0b:0c:0d:0e:0f - This will be written as
"0a:0b:0c:0d:0e:0f"
Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com>
Change-Id: I9141365590df05823f0d277a16e01132a3326267
1 file changed