Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/net80211 Dont call ieee80211_init. It is handled ...



details:   https://anonhg.NetBSD.org/src-all/rev/350d4590614a
branches:  trunk
changeset: 934116:350d4590614a
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Fri May 01 11:36:56 2020 +1000

description:
Dont call ieee80211_init.  It is handled in the devices overloaded
callback.

diffstat:

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

diffs (17 lines):

diff -r 5944e102bc3b -r 350d4590614a sys/net80211/ieee80211_ioctl.c
--- a/sys/net80211/ieee80211_ioctl.c    Fri May 01 11:36:06 2020 +1000
+++ b/sys/net80211/ieee80211_ioctl.c    Fri May 01 11:36:56 2020 +1000
@@ -3638,11 +3638,11 @@
                    vap->iv_reset(vap, ireq->i_type) : 0;
        if (error == ENETRESET) {
                /* XXX need to re-think AUTO handling */
+#if __FreeBSD__
                if (IS_UP_AUTO(vap))
-#if __FreeBSD__
                        ieee80211_init(vap);
                error = 0;
-#elif __NetBSD__
+#elif 0
                        /* arg is a vap in 802.11 code */ 
                        ieee80211_init((struct ifnet *)vap);
 #endif



Home | Main Index | Thread Index | Old Index