diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-02-12 18:57:18 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-02-12 18:57:18 +0000 |
commit | 251dd2ca418183142f0f78ada90a77fa46a3b88f (patch) | |
tree | b2387f8d726c23cdd8238be123008604c2dc3292 /sys/net80211/ieee80211_ioctl.c | |
parent | cc499f763ee65f3e6109a50d14b10ef520ca6079 (diff) | |
download | FreeBSD-src-251dd2ca418183142f0f78ada90a77fa46a3b88f.zip FreeBSD-src-251dd2ca418183142f0f78ada90a77fa46a3b88f.tar.gz |
Add a ieee80211_waitfor_parent() function that will wait for all deferred
parent interface tasks to complete. This had been added to the ioctl path but
it is also need elsewhere like detach so its safe to teardown.
Reported by: Hans Petter Selasky
Submitted by: sam
Diffstat (limited to 'sys/net80211/ieee80211_ioctl.c')
-rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index db36adb..7f7417e 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -3265,7 +3265,7 @@ ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) } IEEE80211_UNLOCK(ic); /* Wait for parent ioctl handler if it was queued */ - taskqueue_drain(taskqueue_thread, &ic->ic_parent_task); + ieee80211_waitfor_parent(ic); break; case SIOCADDMULTI: case SIOCDELMULTI: |