diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-17 09:04:23 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-17 09:04:23 +0000 |
commit | f6d30fd125de9dd2abebdce35adfdfca9853f6b3 (patch) | |
tree | 8ae3c83085f649722016fda1a4c56f36c91acc19 | |
parent | 6892cb58082d987dc2f653d6dac7978d8bda74b4 (diff) | |
download | upstream-f6d30fd125de9dd2abebdce35adfdfca9853f6b3.tar.gz upstream-f6d30fd125de9dd2abebdce35adfdfca9853f6b3.tar.bz2 upstream-f6d30fd125de9dd2abebdce35adfdfca9853f6b3.zip |
[package] broadcom-diag: add missing brackets breakign the detection logic (#10836)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30610 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/broadcom-diag/src/diag.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c index 4ac271e5cd..090fc5e3d5 100644 --- a/package/broadcom-diag/src/diag.c +++ b/package/broadcom-diag/src/diag.c @@ -1142,16 +1142,18 @@ static struct platform_t __init *platform_detect(void) return &platforms[WRTSL54GS]; if (!strcmp(boardtype, "0x0472")) { - if(!strcmp(getvar("boot_hw_model"), "WRT150N")) + if(!strcmp(getvar("boot_hw_model"), "WRT150N")) { if(!strcmp(getvar("boot_hw_ver"), "1")) return &platforms[WRT150NV1]; else if(!strcmp(getvar("boot_hw_ver"), "1.1")) return &platforms[WRT150NV11]; - else if(!strcmp(getvar("boot_hw_model"), "WRT160N")) + } + else if(!strcmp(getvar("boot_hw_model"), "WRT160N")) { if(!strcmp(getvar("boot_hw_ver"), "1.0")) return &platforms[WRT160NV1]; else if(!strcmp(getvar("boot_hw_ver"), "3.0")) return &platforms[WRT160NV3]; + } } /* default to WRT54G */ |