summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2008-08-14 16:02:25 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2008-08-14 16:02:25 +0000
commit353ae15ead3aef12969500ed7a75998e8020b9fc (patch)
tree177fe2b9fa5b18f26bbf8c8962528b9509bb8007 /sys/dev/usb
parent801ccc23fcf001022bc36ff530f06c7a6e144d66 (diff)
in ieee80211_input(), call if_start() after enqueuing frames in if_snd
when acting as an access point instead of having each driver doing the job. tested by krw@ (ral AP) and me with several drivers.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_ral.c9
-rw-r--r--sys/dev/usb/if_rum.c9
2 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c
index 323c6b4e30f..5e7a8c3400d 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.105 2008/07/30 06:25:23 damien Exp $ */
+/* $OpenBSD: if_ral.c,v 1.106 2008/08/14 16:02:24 damien Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -804,13 +804,6 @@ ural_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
/* node is no longer needed */
ieee80211_release_node(ic, ni);
- /*
- * In HostAP mode, ieee80211_input() will enqueue packets in if_snd
- * without calling if_start().
- */
- if (!IFQ_IS_EMPTY(&ifp->if_snd) && !(ifp->if_flags & IFF_OACTIVE))
- ural_start(ifp);
-
splx(s);
DPRINTFN(15, ("rx done\n"));
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c
index c9ffc5f0f25..50fc589b3a7 100644
--- a/sys/dev/usb/if_rum.c
+++ b/sys/dev/usb/if_rum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rum.c,v 1.75 2008/07/30 06:25:23 damien Exp $ */
+/* $OpenBSD: if_rum.c,v 1.76 2008/08/14 16:02:24 damien Exp $ */
/*-
* Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini@free.fr>
@@ -869,13 +869,6 @@ rum_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status)
/* node is no longer needed */
ieee80211_release_node(ic, ni);
- /*
- * In HostAP mode, ieee80211_input() will enqueue packets in if_snd
- * without calling if_start().
- */
- if (!IFQ_IS_EMPTY(&ifp->if_snd) && !(ifp->if_flags & IFF_OACTIVE))
- rum_start(ifp);
-
splx(s);
DPRINTFN(15, ("rx done\n"));