mac80211: handle failed restart/resume better
authorJohannes Berg <johannes.berg@intel.com>
Wed, 30 Apr 2014 12:19:04 +0000 (14:19 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 May 2014 10:21:34 +0000 (12:21 +0200)
commitf6837ba8c98afcf28ec25f6863a8597274aeefd6
tree25e045970c4161b73457e42ded044dd908e81c6c
parentf29f58a9e53252a50eaea0ece59f1af5fad56b5f
mac80211: handle failed restart/resume better

When the driver fails during HW restart or resume, the whole
stack goes into a very confused state with interfaces being
up while the hardware is down etc.

Address this by shutting down everything; we'll run into a
lot of warnings in the process but that's better than having
the whole stack get messed up.

Reviewed-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/mac80211/driver-ops.h
net/mac80211/ieee80211_i.h
net/mac80211/scan.c
net/mac80211/util.c
net/wireless/core.c