]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/mac80211/mlme.c
mac80211: clean up ifdown/cleanup paths
authorJohannes Berg <johannes.berg@intel.com>
Fri, 27 Aug 2010 10:35:54 +0000 (12:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Aug 2010 17:53:30 +0000 (13:53 -0400)
commitb9dcf712d1fb98bf279fcd453a42a763b104961d
treea09aa20ca2c26dbf9439beca7c8c9a403e70c8b5
parent2337db8db845ece2d4ab7673a343e285f1bfda85
mac80211: clean up ifdown/cleanup paths

There's a lot of redundant code in mac80211's
interface cleanup/down, for example freeing
AP beacons is done both when the interface is
set DOWN as well as when it is torn down, of
which only the former has any effect.

Also, a bunch of things should be closer to
where they matter, like the MLME timers that
we should cancel when disassociating, rather
than only when the interface is set DOWN.

Clean up all this code.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c
net/mac80211/mlme.c