Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/wpa/dist/src/drivers Only down the interface on...



details:   https://anonhg.NetBSD.org/src/rev/fd5319c5355c
branches:  trunk
changeset: 344341:fd5319c5355c
user:      roy <roy%NetBSD.org@localhost>
date:      Wed Mar 23 08:51:02 2016 +0000

description:
Only down the interface once we are sure we can work with it.

diffstat:

 external/bsd/wpa/dist/src/drivers/driver_bsd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r 4700d8e73483 -r fd5319c5355c external/bsd/wpa/dist/src/drivers/driver_bsd.c
--- a/external/bsd/wpa/dist/src/drivers/driver_bsd.c    Wed Mar 23 08:48:43 2016 +0000
+++ b/external/bsd/wpa/dist/src/drivers/driver_bsd.c    Wed Mar 23 08:51:02 2016 +0000
@@ -1578,11 +1578,7 @@
 
        drv->ctx = ctx;
        drv->global = priv;
-
        os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname));
-       /* Down interface during setup. */
-       if (bsd_ctrl_iface(drv, 0) < 0)
-               goto fail;
 
        if (!GETPARAM(drv, IEEE80211_IOC_ROAMING, drv->prev_roaming)) {
                wpa_printf(MSG_DEBUG, "%s: failed to get roaming state: %s",
@@ -1603,6 +1599,10 @@
        if (wpa_driver_bsd_capa(drv))
                goto fail;
 
+       /* Down interface during setup. */
+       if (bsd_ctrl_iface(drv, 0) < 0)
+               goto fail;
+
        drv->opmode = get80211opmode(drv);
        dl_list_add(&drv->global->ifaces, &drv->list);
 



Home | Main Index | Thread Index | Old Index