fix adm switch misdetection, which led to bogus button events that caused the system...
[openwrt/staging/yousong.git] / package / broadcom-diag / src / diag.c
index c7b3ead3633a690eb618bc7a1737386de7c2eea2..94ab384d306bda3823c3a0766e4c23bf5e205f6a 100644 (file)
@@ -738,7 +738,7 @@ static struct platform_t __init *platform_detect(void)
                return &platforms[WR850GV2V3];
        }
 
-       if (!strcmp(boardnum, "44")) {  /* Trendware TEW-411BRP+ */
+       if (!strcmp(boardnum, "44") && !strcmp(getvar("boardflags"),"0x0388")) {  /* Trendware TEW-411BRP+ */
                return &platforms[TEW411BRPP];
        }