]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0f2d676eabd9464e7168ee0466a252485bdee51
treecdff0b9ff46398eac0d26c7e1fdace3d0595466a
parent3691f6b5aba8fff7e9c305f1b61f3ddebdf5cea3
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