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 Reorder. Call ieee80211_init in vap_create.
details: https://anonhg.NetBSD.org/src-all/rev/8984b169e4cd
branches: trunk
changeset: 377669:8984b169e4cd
user: Nathanial Sloss <nat%netbsd.org@localhost>
date: Tue May 12 13:03:17 2020 +1000
description:
Reorder. Call ieee80211_init in vap_create.
diffstat:
sys/dev/usb/if_urtwn.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 174e55eca686 -r 8984b169e4cd sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Tue May 12 13:02:44 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c Tue May 12 13:03:17 2020 +1000
@@ -582,8 +582,6 @@ urtwn_attach(device_t parent, device_t s
sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len);
sc->sc_txtap.wt_ihdr.it_present = htole32(URTWN_TX_RADIOTAP_PRESENT);
- ieee80211_announce(ic);
-
usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, sc->sc_dev);
if (!pmf_device_register(self, NULL, NULL))
@@ -605,6 +603,8 @@ urtwn_attach(device_t parent, device_t s
goto fail;
}
+ ieee80211_announce(ic);
+
/* Allocate Tx/Rx buffers. */
error = urtwn_alloc_rx_list(sc);
if (error != 0) {
@@ -3560,6 +3560,8 @@ urtwn_vap_create(struct ieee80211com *ic
sizeof(struct ieee80211_frame) + IEEE80211_RADIOTAP_HDRLEN,
&sc->sc_drvbpf);
+ ieee80211_init(ifp);
+
return vap;
}
Home |
Main Index |
Thread Index |
Old Index