diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-07-03 13:12:59 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-07-03 13:12:59 +0000 |
commit | 2ee2a1a1a48b6d4a01ece03d58a15fde8c28cc63 (patch) | |
tree | 218604b691a6f42f1fabdb03c06103c89954ec4c /sys | |
parent | d1852cdb6ba4cf691a2ef19bddf4afbb9797e4e3 (diff) |
in zyd_start():
net80211 may still try to send management frames even if the
IFF_RUNNING flag is not set...; ok jsg@.
Diffstat (limited to 'sys')
-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 (;;) { |