Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/net80211 Use vap_delete in vap destroy.



details:   https://anonhg.NetBSD.org/src-all/rev/12bf736815d6
branches:  trunk
changeset: 932868:12bf736815d6
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Mon May 11 09:29:44 2020 +1000

description:
Use vap_delete in vap destroy.

diffstat:

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

diffs (16 lines):

diff -r 10c1cce6a540 -r 12bf736815d6 sys/net80211/ieee80211_netbsd.c
--- a/sys/net80211/ieee80211_netbsd.c   Fri May 08 07:41:53 2020 +1000
+++ b/sys/net80211/ieee80211_netbsd.c   Mon May 11 09:29:44 2020 +1000
@@ -230,7 +230,11 @@
        if_clone_destroyif(wlan_cloner, vap->iv_ifp);
        CURVNET_RESTORE();
 #else
-       printf ("vap_destroy called ... what next?\n");
+       struct ieee80211com *ic = vap->iv_ic;
+
+       TAILQ_REMOVE(&ic->ic_vaps, vap, iv_next);
+       ic->ic_vap_delete(vap);
+//     printf ("vap_destroy called ... what next?\n");
 #endif
 }
 



Home | Main Index | Thread Index | Old Index