diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-14 08:12:31 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-03-14 08:12:31 +0000 |
commit | 3c260e9b56b4d3503560e387c4c91725a28c610a (patch) | |
tree | 7ffe5030cfe407853f7127ac6fbebabe786cb4e2 /sys/dev/ic/acx.c | |
parent | 96c565c1104af3a90de9a8ce502c56209bb4e68a (diff) |
In HostAP mode, ieee80211_input() will enqueue packets in if_snd without
calling if_start(). So call ifp->if_start() at the end of the RX interrupt
function. This solves the porblem of getting dhcp leases from the AP if the
network is quiet. OK mglocker@
Diffstat (limited to 'sys/dev/ic/acx.c')
-rw-r--r-- | sys/dev/ic/acx.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c index 5911ded5a6f..d322f47f748 100644 --- a/sys/dev/ic/acx.c +++ b/sys/dev/ic/acx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acx.c,v 1.66 2007/03/01 10:55:14 claudio Exp $ */ +/* $OpenBSD: acx.c,v 1.67 2007/03/14 08:12:30 claudio Exp $ */ /* * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> @@ -1348,6 +1348,13 @@ next: * time we can start from it. */ bd->rx_scan_start = idx; + + /* + * 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)) + (*ifp->if_start)(ifp); } int |