]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: dvm: don't send HCMD in restart flow
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 31 Jan 2013 13:03:55 +0000 (15:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Mar 2013 11:10:57 +0000 (12:10 +0100)
commit2d5d50ee596361566f7f84300117cba7d7672bc5
treeb9006f547092838143a54615dceae9c0680e2156
parent4620020b5d7ca34d1c03fa98b0ca457320cb7d71
iwlwifi: dvm: don't send HCMD in restart flow

There is a race between the restart flow and the workers.
The workers are cancelled after the fw is already killed
and might send HCMD when there is fw to handle them.
Simply check that there is a fw to which the HCMD can be
sent before actually sending it.

Cc: stable@vger.kernel.org
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/lib.c
drivers/net/wireless/iwlwifi/dvm/ucode.c