diff options
author | 2007-03-14 08:12:30 +0000 | |
---|---|---|
committer | 2007-03-14 08:12:30 +0000 | |
commit | 5fe6ac79d0945786f4c0c82e5c6e0f296cb54cee (patch) | |
tree | 6a93adc6879e84b21c0f13ef0703d00703a5a6b1 | |
parent | Set the DN bit in the fpscr upon startup, to prevent faulting when loading (diff) | |
download | wireguard-openbsd-5fe6ac79d0945786f4c0c82e5c6e0f296cb54cee.tar.xz wireguard-openbsd-5fe6ac79d0945786f4c0c82e5c6e0f296cb54cee.zip |
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@
-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 |