diff options
author | 2016-07-20 10:24:43 +0000 | |
---|---|---|
committer | 2016-07-20 10:24:43 +0000 | |
commit | 135cbf69bbf78b8bb3182754ec339a7366b559a0 (patch) | |
tree | 68b8fabb27635b7c17e10d2438041e3bfc01fa5b | |
parent | ATI controllers seem to need the same workaround as VIA controllers. (diff) | |
download | wireguard-openbsd-135cbf69bbf78b8bb3182754ec339a7366b559a0.tar.xz wireguard-openbsd-135cbf69bbf78b8bb3182754ec339a7366b559a0.zip |
Unbreak ural(4), which had been dropping frames on Tx while
the IFF_RUNNING flag was set since last November (r1.138).
Apparently nobody is using this driver, except for martijn@.
Fix tested by martijn@ and myself.
ok dlg@
-rw-r--r-- | sys/dev/usb/if_ral.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index e7418c79504..a649865c836 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.139 2016/04/13 11:03:37 mpi Exp $ */ +/* $OpenBSD: if_ral.c,v 1.140 2016/07/20 10:24:43 stsp Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -1231,7 +1231,7 @@ ural_start(struct ifnet *ifp) * net80211 may still try to send management frames even if the * IFF_RUNNING flag is not set... */ - if ((ifp->if_flags & IFF_RUNNING) || ifq_is_oactive(&ifp->if_snd)) + if (!(ifp->if_flags & IFF_RUNNING) || ifq_is_oactive(&ifp->if_snd)) return; for (;;) { |