nl80211: Remove one second sleep after iface up
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 12 Feb 2009 20:02:19 +0000 (22:02 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 12 Feb 2009 20:05:36 +0000 (22:05 +0200)
This workaround was needed with some drivers that used WEXT, but there
is no known nl80211-enabled driver that would need this, so lets get rid
of the extra delay.

src/drivers/driver_nl80211.c

index cc8fdb7..5629588 100644 (file)
@@ -1579,17 +1579,6 @@ wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv)
                if (wpa_driver_nl80211_set_ifflags(drv, flags | IFF_UP) != 0) {
                        printf("Could not set interface '%s' UP\n",
                               drv->ifname);
-               } else {
-                       /*
-                        * Wait some time to allow driver to initialize before
-                        * starting configuring the driver. This seems to be
-                        * needed at least some drivers that load firmware etc.
-                        * when the interface is set up.
-                        */
-                       wpa_printf(MSG_DEBUG, "Interface %s set UP - waiting "
-                                  "a second for the driver to complete "
-                                  "initialization", drv->ifname);
-                       sleep(1);
                }
        }