]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 17 Dec 2014 10:47:42 +0000 (11:47 +0100)
commit79ea3db6b97c48d6c1e2fec2b079ec5ad5bc06cf
tree085499603c66b4125c192ad0536a4e7d1e9543a7
parenta77c0a4df045b0b7b0f9e42558a843b3f44d19e4
mac80211: notify channel switch at the end of ieee80211_chswitch_post_beacon()

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: b4e4a96cc854 ("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>
net/mac80211/mlme.c