fix detection of motorola wr850g, thanks to Vinicius Fonseca, (#4710)
[openwrt/openwrt.git] / package / broadcom-diag / src / diag.c
index 341880a70ea26bc8db7e179c37efa86d6944aecb..c8c0e34abebed486fc8bd6c0ccb897f0ee06557e 100644 (file)
@@ -19,7 +19,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  *
- * $Id$
  */
 #include <linux/module.h>
 #include <linux/pci.h>
@@ -782,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* */