[package] broadcom-diag: add missing brackets breakign the detection logic (#10836)
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 17 Feb 2012 09:04:23 +0000 (09:04 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 17 Feb 2012 09:04:23 +0000 (09:04 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30610 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/broadcom-diag/src/diag.c

index 4ac271e..090fc5e 100644 (file)
@@ -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 */
This page took 0.032452 seconds and 4 git commands to generate.