From: Amitkumar Karwar Date: Tue, 28 Aug 2012 03:32:52 +0000 (-0700) Subject: mwifiex: don't disable wait_q_enabled flag X-Git-Tag: upstream/snapshot3+hdmi~6565^2~30^2~176 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3a8e0b4358ec7f42c2ae362376543f8d6a32058;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Kiran Divekar Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c index c510563..9c1549e 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) list_for_each_entry_safe(cmd_node, tmp_node, &adapter->scan_pending_q, list) { list_del(&cmd_node->list); - cmd_node->wait_q_enabled = false; mwifiex_insert_cmd_to_free_q(adapter, cmd_node); } spin_unlock_irqrestore(&adapter->scan_pending_q_lock, flags);