aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/init.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2012-08-27 23:32:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-09-07 15:03:41 -0400
commite3a8e0b4358ec7f42c2ae362376543f8d6a32058 (patch)
tree64f9d1a212c7028df11b0e2714daa37540837ade /drivers/net/wireless/mwifiex/init.c
parent26fc36ab756d305274f056755705478dc4dda521 (diff)
mwifiex: don't disable wait_q_enabled flag
We should not disable "cmd_node->wait_q_enabled" flag here before calling mwifiex_insert_cmd_to_free_q() because we want to wake up the thread waiting for command completion inside this function. The wait_q_enabled flag will be disabled internally upon command completion. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kiran Divekar <dkiran@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/init.c')
-rw-r--r--drivers/net/wireless/mwifiex/init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c
index c510563dc00d..9c1549ee4c09 100644
--- a/drivers/net/wireless/mwifiex/init.c
+++ b/drivers/net/wireless/mwifiex/init.c
@@ -73,7 +73,6 @@ static void scan_delay_timer_fn(unsigned long data)
73 list_for_each_entry_safe(cmd_node, tmp_node, 73 list_for_each_entry_safe(cmd_node, tmp_node,
74 &adapter->scan_pending_q, list) { 74 &adapter->scan_pending_q, list) {
75 list_del(&cmd_node->list); 75 list_del(&cmd_node->list);
76 cmd_node->wait_q_enabled = false;
77 mwifiex_insert_cmd_to_free_q(adapter, cmd_node); 76 mwifiex_insert_cmd_to_free_q(adapter, cmd_node);
78 } 77 }
79 spin_unlock_irqrestore(&adapter->scan_pending_q_lock, flags); 78 spin_unlock_irqrestore(&adapter->scan_pending_q_lock, flags);