From 135cbf69bbf78b8bb3182754ec339a7366b559a0 Mon Sep 17 00:00:00 2001 From: stsp Date: Wed, 20 Jul 2016 10:24:43 +0000 Subject: [PATCH] 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@ --- sys/dev/usb/if_ral.c | 4 ++-- 1 file 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 (;;) { -- 2.20.1