diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-06-08 17:26:31 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-08 22:19:05 +0400 |
commit | 51e65257142a87fe46a1ce5c35c86c5baf012614 (patch) | |
tree | e5210ffad470c6b7b9c969aac667d5d5b491f76c /drivers/net/wireless/iwlwifi/iwl-power.h | |
parent | f3209bea110cade12e2b133da8b8499689cb0e2e (diff) | |
download | linux-51e65257142a87fe46a1ce5c35c86c5baf012614.tar.xz |
iwlegacy: fix channel switch locking
We use priv->mutex to avoid race conditions between chswitch_done()
and mac_channel_switch(), when marking channel switch in
progress. But chswitch_done() can be called in atomic context
from rx_csa() or with mutex already taken from commit_rxon().
To fix remove mutex from chswitch_done() and use atomic bitops
for marking channel switch pending.
Cc: stable@kernel.org # 2.6.39+
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-power.h')
0 files changed, 0 insertions, 0 deletions