roboswitch: Add support for BCM63xx
authorJouke Witteveen <j.witteveen@gmail.com>
Thu, 28 Jul 2016 17:24:26 +0000 (19:24 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 7 Aug 2016 21:25:31 +0000 (00:25 +0300)
These devices do not properly identify themselves.

Signed-off-by: Jouke Witteveen <j.witteveen@gmail.com>
src/drivers/driver_roboswitch.c

index d3e0595..e8a5135 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * WPA Supplicant - roboswitch driver interface
- * Copyright (c) 2008-2009 Jouke Witteveen
+ * Copyright (c) 2008-2012 Jouke Witteveen
  *
  * This software may be distributed under the terms of the BSD license.
  * See README for more details.
@@ -401,7 +401,9 @@ static void * wpa_driver_roboswitch_init(void *ctx, const char *ifname)
                os_free(drv);
                return NULL;
        }
-       if (if_mii(&drv->ifr)->phy_id != ROBO_PHY_ADDR) {
+       /* BCM63xx devices provide 0 here */
+       if (if_mii(&drv->ifr)->phy_id != ROBO_PHY_ADDR &&
+           if_mii(&drv->ifr)->phy_id != 0) {
                wpa_printf(MSG_INFO, "%s: Invalid phy address (not a "
                           "RoboSwitch?)", __func__);
                os_free(drv);