]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
mwifiex: don't disable wait_q_enabled flag
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 28 Aug 2012 03:32:52 +0000 (20:32 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 7 Sep 2012 19:03:41 +0000 (15:03 -0400)
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>
drivers/net/wireless/mwifiex/init.c

index c510563dc00dc12bd7b89ff59cba16d1bab45cc5..9c1549ee4c09dee56452d385da2fd0f4e1d41233 100644 (file)
@@ -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);