Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/dev/usb Call vap_detach as it calls if_detach.



details:   https://anonhg.NetBSD.org/src-all/rev/0c0a7e5951bf
branches:  trunk
changeset: 935757:0c0a7e5951bf
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu May 14 12:21:22 2020 +1000

description:
Call vap_detach as it calls if_detach.

diffstat:

 sys/dev/usb/if_urtwn.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r af3357f2f5fd -r 0c0a7e5951bf sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Thu May 14 12:20:55 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Thu May 14 12:21:22 2020 +1000
@@ -3541,7 +3541,7 @@
 //     urtwn_stop(ifp, 0);
        ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
        bpf_detach(ifp);
-       if_detach(ifp);
+       ieee80211_vap_detach(vap);
        kmem_free(vap, sizeof(struct ieee80211vap));
 }
 



Home | Main Index | Thread Index | Old Index