Skip to content

Commit

Permalink
wl1251: use workqueue provided by mac80211
Browse files Browse the repository at this point in the history
wl1251 should use workqueue created by mac80211 to not block the events
workqueue too long.

Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Kalle Valo authored and John W. Linville committed Aug 14, 2009
1 parent 4a81892 commit 16e711f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/wl12xx/wl1251_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static int wl1251_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
* before that, the tx_work will not be initialized!
*/

schedule_work(&wl->tx_work);
ieee80211_queue_work(wl->hw, &wl->tx_work);

/*
* The workqueue is slow to process the tx_queue and we need stop
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/wl12xx/wl1251_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void wl1251_sdio_interrupt(struct sdio_func *func)
wl1251_debug(DEBUG_IRQ, "IRQ");

/* FIXME should be synchronous for sdio */
schedule_work(&wl->irq_work);
ieee80211_queue_work(wl->hw, &wl->irq_work);
}

static const struct sdio_device_id wl1251_devices[] = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/wl12xx/wl1251_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static irqreturn_t wl1251_irq(int irq, void *cookie)

wl = cookie;

schedule_work(&wl->irq_work);
ieee80211_queue_work(wl->hw, &wl->irq_work);

return IRQ_HANDLED;
}
Expand Down

0 comments on commit 16e711f

Please sign in to comment.