]> git.openfabrics.org - ~emulex/infiniband.git/commit
mac80211: fix do_stop handling while suspended
authorJohannes Berg <johannes.berg@intel.com>
Wed, 27 Mar 2013 22:24:53 +0000 (23:24 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 8 Apr 2013 07:17:01 +0000 (09:17 +0200)
commitb2c0958b203784659e230bde6bd553d7c37bb4d2
tree22fad9aeaac415c114b4a9dfaf765f147d8852b9
parent3c3e21e7443bdb948437a6e925fd111e932dc083
mac80211: fix do_stop handling while suspended

When a device is unplugged while suspended, mac80211 is
de-initialized and all interfaces are removed while no
state is actually present in the driver. This can cause
warnings and driver confusion.

Fix this by reordering the do_stop code to not call the
driver when it is suspended, i.e. when there's no state
in the driver anyway.

The previous patches removed a few corner cases in ROC
and virtual monitor interfaces so that now this is safe
to do and no state should be left over.

Reported-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c