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/da4dddd0655e
branches:  trunk
changeset: 363983:da4dddd0655e
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 aac81938b488 -r da4dddd0655e 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
@@ -3637,11 +3637,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