]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit494ce8da21d3b2d4e3ecc227fc087d1254b8ecc5
treed20b1ceaaf2e643c893cbedb0b918f7d30dd447a
parent46c3960839e466ee40fa93cc844a2089081704bd
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