mac80211: clean up ieee80211_quiesce
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Dec 2012 15:47:42 +0000 (16:47 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:33 +0000 (13:01 +0100)
commit771872f3267c3a33d2a43d49b3d8cce130bc9e0b
treea5c76f553833866727994e8ade191071efde9c1c
parentd5504b342f1a5a89f5b210c29b72d93ca6efc338
mac80211: clean up ieee80211_quiesce

It's a bit odd that there's a return value that only
depends on the iftype, move that logic out of the
function into the only caller that needs it.

Also, since the quiescing could stop timers that
trigger the sdata work, move the sdata work cancel
into the function and after the actual quiesce.

Finally, there's no need to call it on interfaces
that are down, so don't.

Change-Id: I1632d46d21ba3558ea713d035184f1939905f2f1
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/pm.c