rt2x00: Move intf_work to mac82011 workqueue
authorIvo van Doorn <ivdoorn@gmail.com>
Tue, 27 Jan 2009 23:32:13 +0000 (00:32 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Feb 2009 20:03:34 +0000 (15:03 -0500)
ieee80211_iterate_active_interfaces() no longer acquires the
RTNL lock which means the intf_work handler can be safely
used from the mac80211 workqueue again.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c

index e1b40545a9be9d43227a8dc3eac66d84ea3fa3bd..e681d239d43c7f14b19b3b595640097047ca2577 100644 (file)
@@ -215,7 +215,7 @@ void rt2x00lib_beacondone(struct rt2x00_dev *rt2x00dev)
                                                   rt2x00lib_beacondone_iter,
                                                   rt2x00dev);
 
-       schedule_work(&rt2x00dev->intf_work);
+       queue_work(rt2x00dev->hw->workqueue, &rt2x00dev->intf_work);
 }
 EXPORT_SYMBOL_GPL(rt2x00lib_beacondone);