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/bdb813b376b5
branches:  trunk
changeset: 374863:bdb813b376b5
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 08d0bc7c13a9 -r bdb813b376b5 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 @@ ieee80211_ioctl_set80211(struct ieee8021
                    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