summaryrefslogtreecommitdiff
path: root/package/broadcom-diag/src
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-02-17 09:04:23 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-02-17 09:04:23 +0000
commit8dd93fbc1f34747785a3ef43f6180d36df7883fd (patch)
treec7c56bb2f3f10340dcaa4d8dc4c5e97930bc8eb1 /package/broadcom-diag/src
parent018d69c3b3421ff86be0004a25943068cd54aace (diff)
downloadmtk-20170518-8dd93fbc1f34747785a3ef43f6180d36df7883fd.zip
mtk-20170518-8dd93fbc1f34747785a3ef43f6180d36df7883fd.tar.gz
mtk-20170518-8dd93fbc1f34747785a3ef43f6180d36df7883fd.tar.bz2
broadcom-diag: add missing brackets breakign the detection logic (#10836)
SVN-Revision: 30610
Diffstat (limited to 'package/broadcom-diag/src')
-rw-r--r--package/broadcom-diag/src/diag.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 4ac271e..090fc5e 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 */