diff options
author | 2006-07-03 13:12:58 +0000 | |
---|---|---|
committer | 2006-07-03 13:12:58 +0000 | |
commit | b66545d7649a1872b63debdf876398b97b38c3fb (patch) | |
tree | d464ab2519236fc19899d4bddcf7082ec26eb5bf | |
parent | Add missing breaks and suddenly all starts to make sense again. Wondered (diff) | |
download | wireguard-openbsd-b66545d7649a1872b63debdf876398b97b38c3fb.tar.xz wireguard-openbsd-b66545d7649a1872b63debdf876398b97b38c3fb.zip |
in zyd_start():
net80211 may still try to send management frames even if the
IFF_RUNNING flag is not set...; ok jsg@.
-rw-r--r-- | sys/dev/usb/if_zyd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/usb/if_zyd.c b/sys/dev/usb/if_zyd.c index 6fb0b3c6af7..d2c64960268 100644 --- a/sys/dev/usb/if_zyd.c +++ b/sys/dev/usb/if_zyd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_zyd.c,v 1.19 2006/07/02 06:52:36 jsg Exp $ */ +/* $OpenBSD: if_zyd.c,v 1.20 2006/07/03 13:12:58 xsa Exp $ */ /* * Copyright (c) 2006 by Florian Stoehr <ich@florian-stoehr.de> @@ -3513,6 +3513,13 @@ zyd_start(struct ifnet *ifp) struct ieee80211_node *ni; struct mbuf *m0; + /* + * net80211 may still try to send management frames even if the + * IFF_RUNNING flag is not set... + */ + if ((ifp->if_flags & (IFF_RUNNING | IFF_OACTIVE)) != IFF_RUNNING) + return; + DPRINTF(("Entering zyd_start()\n")); for (;;) { |