summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index da954b32..8549e8d2 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -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;