Source-Changes-HG archive

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

[src/phil-wifi]: src/sys/net80211 Pass the error through to the hardware to i...



details:   https://anonhg.NetBSD.org/src/rev/ce713ff5a46c
branches:  phil-wifi
changeset: 931354:ce713ff5a46c
user:      nat <nat%NetBSD.org@localhost>
date:      Mon Apr 27 07:45:57 2020 +0000

description:
Pass the error through to the hardware to initialize.

diffstat:

 sys/net80211/ieee80211_ioctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 93ffdfb863b4 -r ce713ff5a46c sys/net80211/ieee80211_ioctl.c
--- a/sys/net80211/ieee80211_ioctl.c    Mon Apr 27 07:40:50 2020 +0000
+++ b/sys/net80211/ieee80211_ioctl.c    Mon Apr 27 07:45:57 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_ioctl.c,v 1.60.18.9 2020/04/13 08:05:16 martin Exp $ */
+/*     $NetBSD: ieee80211_ioctl.c,v 1.60.18.10 2020/04/27 07:45:57 nat Exp $   */
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __NetBSD__
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_ioctl.c,v 1.60.18.9 2020/04/13 08:05:16 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_ioctl.c,v 1.60.18.10 2020/04/27 07:45:57 nat Exp $");
 #endif
 
 /*
@@ -3638,11 +3638,11 @@
                if (IS_UP_AUTO(vap))
 #if __FreeBSD__
                        ieee80211_init(vap);
+               error = 0;
 #elif __NetBSD__
                        /* arg is a vap in 802.11 code */ 
                        ieee80211_init((struct ifnet *)vap);
 #endif
-               error = 0;
        }
        return error;
 }



Home | Main Index | Thread Index | Old Index