diff options
Diffstat (limited to 'package/kernel/broadcom-diag')
-rw-r--r-- | package/kernel/broadcom-diag/src/diag.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/kernel/broadcom-diag/src/diag.c b/package/kernel/broadcom-diag/src/diag.c index 1d4a4b1180..f3f70504de 100644 --- a/package/kernel/broadcom-diag/src/diag.c +++ b/package/kernel/broadcom-diag/src/diag.c @@ -1176,8 +1176,9 @@ static struct platform_t __init *platform_detect_legacy(void) if (!strcmp(boardtype, "0x0101") && !strcmp(getvar("boot_ver"), "v3.6")) return &platforms[WRT54G3G]; - /* default to WRT54G */ - return &platforms[WRT54G]; + /* default to WRT54G if no boot_hw_model is set */ + if (nvram_get("boot_hw_model") == NULL) + return &platforms[WRT54G]; } if (!strcmp(boardnum, "1024") && !strcmp(boardtype, "0x0446")) return &platforms[WAP54GV2]; |