]> err.no Git - linux-2.6/commitdiff
mac80211: make workqueue freezable
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 26 Jun 2008 17:59:56 +0000 (19:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Jun 2008 13:09:21 +0000 (09:09 -0400)
This patch makes the mac80211 workqueue freezable making it
interact a bit better with system suspend and not try to ping
the AP while the hardware is down.

This doesn't really help with implementing proper suspend in
any way but makes some bad things trigger less.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c

index 5c5396edad3233f730be3852c2a7f8955a03f287..b661ee5bb8246534c42dee2ab2dba87a50d2b346 100644 (file)
@@ -1691,7 +1691,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
        list_add_tail(&sdata->list, &local->interfaces);
 
        name = wiphy_dev(local->hw.wiphy)->driver->name;
-       local->hw.workqueue = create_singlethread_workqueue(name);
+       local->hw.workqueue = create_freezeable_workqueue(name);
        if (!local->hw.workqueue) {
                result = -ENOMEM;
                goto fail_workqueue;