diff options
Diffstat (limited to 'cmd/mii.c')
-rw-r--r-- | cmd/mii.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -313,7 +313,7 @@ static int do_mii(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) mask = simple_strtoul(argv[5], NULL, 16); } - if (addrhi > 31) { + if (addrhi > 31 && strncmp(op, "de", 2)) { printf("Incorrect PHY address. Range should be 0-31\n"); return CMD_RET_USAGE; } |