mac80211: dont call cfg80211 from ieee80211_send_deauth_disassoc
authorJohannes Berg <johannes.berg@intel.com>
Fri, 24 Feb 2012 12:50:52 +0000 (13:50 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Feb 2012 19:11:34 +0000 (14:11 -0500)
commit5fef7dbcadbb85079d3bf56625dd12e6d2816e3d
treed20b1ceaaf2e643c893cbedb0b918f7d30dd447a
parent63c9c5e77c36f8793dddf0e905a4bc43a0972735
mac80211: dont call cfg80211 from ieee80211_send_deauth_disassoc

Instead of calling cfg80211 in ieee80211_send_deauth_disassoc()
pass out the frame and call it from the caller. That saves the
SKB allocation if we don't actually want to send the frame and
enables us to make the ordering smarter in the future.

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