]> Pileus Git - ~andy/linux/commitdiff
mwifiex: fix issue in resumed scan operation
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 18 Sep 2012 22:33:32 +0000 (15:33 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Sep 2012 19:02:04 +0000 (15:02 -0400)
When delayed scan operation is resumed, we just add next scan
command in queue but don't wakeup main thread to process the
command. Hence the command is downloaded to firmware only after
waking up the main thread by any other means.

This bug which was introduced after "mwifiex: improve scan delay
logic.." patch is fixed here.

Signed-off-by: Amitkumar Karwar <akarwar@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 9c1549ee4c09dee56452d385da2fd0f4e1d41233..b2ba262f8a139774d94432bc2f64855630856020 100644 (file)
@@ -118,6 +118,7 @@ static void scan_delay_timer_fn(unsigned long data)
 
                        mwifiex_insert_cmd_to_pending_q(adapter, cmd_node,
                                                        true);
+                       queue_work(adapter->workqueue, &adapter->main_work);
                        goto done;
                }
        } else {