From: Amitkumar Karwar Date: Tue, 18 Sep 2012 22:33:32 +0000 (-0700) Subject: mwifiex: fix issue in resumed scan operation X-Git-Tag: v3.7-rc1~145^2~31^2^2~32 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9a17bad1c7cc794b8faa50386495b6b9c91673e4;p=~emulex%2Finfiniband.git mwifiex: fix issue in resumed scan operation 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 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 9c1549ee4c0..b2ba262f8a1 100644 --- a/drivers/net/wireless/mwifiex/init.c +++ b/drivers/net/wireless/mwifiex/init.c @@ -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 {