Files
linux/drivers/net/wireless
Stanislaw Gruszka ffd61d6720 iwlwifi: fix scan abort
commit d28232b461 upstream.

Fix possible double priv->mutex lock introduced by commit
a69b03e941
"iwlwifi: cancel scan watchdog in iwl_bg_abort_scan" .
We can not call cancel_delayed_work_sync(&priv->scan_check) with
priv->mutex locked because workqueue function iwl_bg_scan_check()
take that lock internally.

We do not need to synchronize when canceling priv->scan_check work.
We can avoid races (sending double abort command or send no
command at all) using STATUS_SCAN_ABORT bit. Moreover
current iwl_bg_scan_check() code seems to be broken, as
we should not send abort commands when currently aborting.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-10 10:20:41 -07:00
..
2010-04-26 07:41:32 -07:00
2010-08-10 10:20:41 -07:00
2010-07-05 11:10:28 -07:00
2010-07-05 11:11:13 -07:00
2009-03-16 18:09:35 -04:00
2010-03-15 08:49:37 -07:00
2009-08-20 11:35:58 -04:00
2009-02-27 14:52:44 -05:00
2009-10-29 09:01:07 -07:00
2008-03-24 19:25:07 -04:00