From: stsp Date: Wed, 20 Jul 2016 10:24:43 +0000 (+0000) Subject: Unbreak ural(4), which had been dropping frames on Tx while X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=135cbf69bbf78b8bb3182754ec339a7366b559a0;p=openbsd 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@ --- 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 (;;) {