]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: notify channel switch at the end of ieee80211_chswitch_post_beacon()
authorLuciano Coelho <luciano.coelho@intel.com>
Tue, 16 Dec 2014 14:01:39 +0000 (16:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 13:11:02 +0000 (14:11 +0100)
commit8239b52a120cf2e6b7ac6320000dddb4bde507eb
tree0615501583a2f994831cd13f1e477fe1b105b38d
parent5a34f1cb903e43aa39aaab80b68af64e0e3afacc
mac80211: notify channel switch at the end of ieee80211_chswitch_post_beacon()

commit 688b1ecfb9ed0484754d2653386e3c44c58ede5c upstream.

The call to cfg80211_ch_switch_notify() should be at the end of the
ieee80211_chswitch_post_beacon() function, because it should only be
sent if everything succeeded.

Fixes: d04b5ac9e70b ("cfg80211/mac80211: allow any interface to send channel switch notifications")
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/mlme.c