util/nvmutil: only mask random unicast/local macs

Without this change, arbitrary MAC addresses will always be masked.

This change restores the intended behaviour.
fsdg20230625
lbmkplaceholder 2022-12-14 08:15:07 +00:00
parent fea3e51ccd
commit ab2cfb8639
1 changed files with 2 additions and 2 deletions

View File

@ -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;