]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: more priv->mutex serialization
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 31 Mar 2011 15:36:27 +0000 (17:36 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 7 Apr 2011 19:34:11 +0000 (15:34 -0400)
commit22effebbffc2b9cd4447da14bdf21aeab9da74e9
tree8463f06bbbc582f7afa6d8869350dc1f67f8732e
parenta7fc550b95bc418c53f12da4e815c6d4a9bcf369
iwlwifi: more priv->mutex serialization

Check status bits with mutex taken, because when we wait for mutex
unlock, status can change. Patch should also make remaining sync
commands be send with priv->mutex taken. That will prevent execute
these commands when we are currently reset firmware, what could
possibly cause troubles.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c