aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/tx.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2011-06-07 05:50:46 -0400
committerLuciano Coelho <coelho@ti.com>2011-06-27 06:56:14 -0400
commit92ef8960aee2f840c6a54c968d40199843f015c0 (patch)
tree3554b6b9684c7fe5cfabdb9ea15a9dd2d3640f50 /drivers/net/wireless/wl12xx/tx.c
parentc27d3accb6f06b0afedfe472dfe0c8e7d87ff0a6 (diff)
wl12xx: use freezable workqueue for netstack_work
When resuming (after wowlan), we want the rx packets (which is usually the wake-up packet itself) to be passed to mac80211 only after the resume notifier was completed, and mac80211 is up and running (otherwise, the packets will be dropped). By enqueueing the netstack_work to a freezable workqueue, we can guarantee the rx processing to occur only after mac80211 was resumed. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Ido Yariv <ido@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/tx.c')
-rw-r--r--drivers/net/wireless/wl12xx/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/tx.c b/drivers/net/wireless/wl12xx/tx.c
index b2635c7ecee8..200590c0d9e3 100644
--- a/drivers/net/wireless/wl12xx/tx.c
+++ b/drivers/net/wireless/wl12xx/tx.c
@@ -727,7 +727,7 @@ static void wl1271_tx_complete_packet(struct wl1271 *wl,
727 727
728 /* return the packet to the stack */ 728 /* return the packet to the stack */
729 skb_queue_tail(&wl->deferred_tx_queue, skb); 729 skb_queue_tail(&wl->deferred_tx_queue, skb);
730 ieee80211_queue_work(wl->hw, &wl->netstack_work); 730 queue_work(wl->freezable_wq, &wl->netstack_work);
731 wl1271_free_tx_id(wl, result->id); 731 wl1271_free_tx_id(wl, result->id);
732} 732}
733 733