mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: only mask random unicast/local macs
Without this change, arbitrary MAC addresses will always be masked. This change restores the intended behaviour.
This commit is contained in:
@@ -183,8 +183,8 @@ cmd_setmac(const char *strMac)
|
||||
return;
|
||||
goto invalid_mac_address;
|
||||
} else if ((byte == 0) && (nib == 1)) {
|
||||
val8 &= 0xE;
|
||||
val8 |= 2;
|
||||
if (strMac[o + nib] == '?')
|
||||
val8 = (val8 & 0xE) | 2;
|
||||
}
|
||||
|
||||
val16 = val8;
|
||||
|
||||
Reference in New Issue
Block a user