iwlwifi: mvm: reprobe device on firmware error during restart
authorJohannes Berg <johannes.berg@intel.com>
Thu, 4 Jul 2013 13:25:25 +0000 (15:25 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2013 09:04:58 +0000 (11:04 +0200)
commitac1ed4163b5a523728fa0e8c27c1ff4d182f40fd
treecdff0b9ff46398eac0d26c7e1fdace3d0595466a
parent58fa2aad295579a0fcab699eb76bff79eb8df3a8
iwlwifi: mvm: reprobe device on firmware error during restart

If we get a firmware error during restart, we currently abandon any
hope and simply fail, getting stuck until the driver is reloaded.
Unfortunately, there isn't really much else we can do since restart
will likely continue to fail, and asking mac80211 for disconnection
just causes more error.

To allow the user to at least set up the device again completely
from scratch, reprobe the device and in doing so completely destroy
any mac80211/driver state.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/ops.c