nl80211: Remove one second sleep after iface up

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.
This commit is contained in:
Jouni Malinen 2009-02-12 22:02:19 +02:00 committed by Jouni Malinen
parent 80bc75f135
commit 7d315b7b42

View 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) { if (wpa_driver_nl80211_set_ifflags(drv, flags | IFF_UP) != 0) {
printf("Could not set interface '%s' UP\n", printf("Could not set interface '%s' UP\n",
drv->ifname); 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);
} }
} }