2013-01-08 04:52:07

by Nishant Sarmukadam

[permalink] [raw]
Subject: [PATCH] mwl8k: Wake up queues in mwl8k_start

From: Nishant Sarmukadam <[email protected]>

If queues are stopped in mwl8k_stop,
these should be started in mwl8k_start

Signed-off-by: Nishant Sarmukadam <[email protected]>
Signed-off-by: Yogesh Powar <[email protected]>
---
drivers/net/wireless/mwl8k.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 696848d..5c3c764 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -4533,7 +4533,8 @@ static int mwl8k_start(struct ieee80211_hw *hw)
priv->irq = -1;
tasklet_disable(&priv->poll_tx_task);
tasklet_disable(&priv->poll_rx_task);
- }
+ } else
+ ieee80211_wake_queues(hw);

return rc;
}
--
1.8.0.3



2013-01-08 06:48:34

by Nishant Sarmukadam

[permalink] [raw]
Subject: [PATCH v2] mwl8k: Wake up queues in mwl8k_start

From: Nishant Sarmukadam <[email protected]>

If queues are stopped in mwl8k_stop,
these should be started in mwl8k_start

Signed-off-by: Nishant Sarmukadam <[email protected]>
Signed-off-by: Yogesh Powar <[email protected]>
---

v2: Fixing coding style as suggested by
Sergey V <[email protected]>

drivers/net/wireless/mwl8k.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 696848d..434a862 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -4533,6 +4533,8 @@ static int mwl8k_start(struct ieee80211_hw *hw)
priv->irq = -1;
tasklet_disable(&priv->poll_tx_task);
tasklet_disable(&priv->poll_rx_task);
+ } else {
+ ieee80211_wake_queues(hw);
}

return rc;
--
1.8.0.3