summaryrefslogtreecommitdiff
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-06-07 09:28:29 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-06-07 09:28:29 +0000
commit74f8ea728abd76c3fe5edb1e602a8cd39d647d81 (patch)
tree958ca48e2b949b8a9218afb93791c119336a8d1e /package/broadcom-diag
parent0c4b6a0b07904d3b7da22bae02136e166b4a8a9c (diff)
downloadmtk-20170518-74f8ea728abd76c3fe5edb1e602a8cd39d647d81.zip
mtk-20170518-74f8ea728abd76c3fe5edb1e602a8cd39d647d81.tar.gz
mtk-20170518-74f8ea728abd76c3fe5edb1e602a8cd39d647d81.tar.bz2
fix detection of motorola wr850g, thanks to Vinicius Fonseca, (#4710)
SVN-Revision: 16367
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/src/diag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 96894da..c8c0e34 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -781,6 +781,8 @@ static struct platform_t __init *platform_detect(void)
if ((buf = nvram_get("ModelId"))) {
if (!strcmp(buf, "WR850GP"))
return &platforms[WR850GP];
+ if (!strcmp(buf, "WR850G"))
+ return &platforms[WR850GV2V3];
if (!strcmp(buf, "WX-5565") && !strcmp(getvar("boardtype"),"bcm94710ap"))
return &platforms[TM2300]; /* Dell TrueMobile 2300 */
if (startswith(buf,"WE800G")) /* WE800G* */