net: wireless: bcmdhd: Set interface name to 'wlan' by default
authorDmitry Shmidt <dimitrysh@google.com>
Thu, 30 Jun 2011 21:05:42 +0000 (14:05 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Sat, 2 Jul 2011 00:04:23 +0000 (17:04 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/wl_android.c

index 196ccf3d89ca7f2401c610de6e5b2fd619dfb8ef..3d6047de29733b7dc3dc0d7c3fd1fcf06b6696ad 100644 (file)
@@ -82,6 +82,9 @@ int net_os_set_suspend_disable(struct net_device *dev, int val);
 int net_os_set_suspend(struct net_device *dev, int val);
 
 extern bool ap_fw_loaded;
+#ifdef CUSTOMER_HW2
+extern char iface_name[IFNAMSIZ];
+#endif
 
 /**
  * Local (static) functions and variables
@@ -333,6 +336,10 @@ int wl_android_init(void)
 #ifdef ENABLE_INSMOD_NO_FW_LOAD
        dhd_download_fw_on_driverload = FALSE;
 #endif /* ENABLE_INSMOD_NO_FW_LOAD */
+#ifdef CUSTOMER_HW2
+       if (!iface_name[0])
+               bcm_strncpy_s(iface_name, IFNAMSIZ, "wlan", IFNAMSIZ);
+#endif /* CUSTOMER_HW2 */
        return ret;
 }