]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbab6c9f00526fd7ac89c8509ff18eb666881da48
treea5c76f553833866727994e8ade191071efde9c1c
parent43b439e36729ed3ec4bb0da8b17391290b198535
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