summaryrefslogtreecommitdiff
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-11-16 03:11:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-11-16 03:11:09 +0000
commite3ecefbd23d297ed659422db4b9a886dbfebbdca (patch)
treedf0bed58a47a8bf0bbbeaedb0bb36f169b2ee85d /package/broadcom-diag
parent67dd9a73dcb62e5b072244dddd7b19d521e20e67 (diff)
downloadmtk-20170518-e3ecefbd23d297ed659422db4b9a886dbfebbdca.zip
mtk-20170518-e3ecefbd23d297ed659422db4b9a886dbfebbdca.tar.gz
mtk-20170518-e3ecefbd23d297ed659422db4b9a886dbfebbdca.tar.bz2
fix adm switch misdetection, which led to bogus button events that caused the system to shut down
SVN-Revision: 9555
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/src/diag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index c7b3ead..94ab384 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -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];
}