summaryrefslogtreecommitdiff
path: root/package/broadcom-diag
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-19 00:18:56 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-19 00:18:56 +0000
commit6ed76af34a2393bf63049295954821f32e4e075c (patch)
treea1427c8d5d1a9281bf06c16121d5173d856bec26 /package/broadcom-diag
parente0d773ef4054906773106ade68cfc6fefebce1a9 (diff)
fix motorola we800g misdetection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5579 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-diag')
-rw-r--r--package/broadcom-diag/src/diag.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/package/broadcom-diag/src/diag.c b/package/broadcom-diag/src/diag.c
index 7f55434af2..0ce21a52ac 100644
--- a/package/broadcom-diag/src/diag.c
+++ b/package/broadcom-diag/src/diag.c
@@ -421,6 +421,13 @@ static struct platform_t __init *platform_detect(void)
if (!strcmp(boardnum, "10496"))
return &platforms[USR5461];
} else { /* PMON based - old stuff */
+ if ((simple_strtoul(getvar("GemtekPmonVer"), NULL, 0) == 9) &&
+ (simple_strtoul(getvar("et0phyaddr"), NULL, 0) == 30)) {
+ if (!strncmp(getvar("ModelId"),"WE800G", 6))
+ return &platforms[WE800G];
+ else
+ return &platforms[WR850GV1];
+ }
if (!strncmp(boardtype, "bcm94710dev", 11)) {
if (!strcmp(boardnum, "42"))
return &platforms[WRT54GV1];
@@ -442,14 +449,6 @@ static struct platform_t __init *platform_detect(void)
/* unknown asus stuff, probably bcm4702 */
if (!strncmp(boardnum, "asusX", 5))
return &platforms[ASUS_4702];
-
- if ((simple_strtoul(getvar("GemtekPmonVer"), NULL, 0) == 9) &&
- (simple_strtoul(getvar("et0phyaddr"), NULL, 0) == 30)) {
- if (!strncmp(getvar("ModelId"),"WE800G", 6))
- return &platforms[WE800G];
- else
- return &platforms[WR850GV1];
- }
}
if ((buf = (nvram_get("melco_id") ?: nvram_get("buffalo_id")))) {