]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cfg80211/wext: fix message ordering
authorJohannes Berg <johannes.berg@intel.com>
Wed, 27 Jan 2016 12:29:34 +0000 (13:29 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 18 Mar 2016 03:13:32 +0000 (23:13 -0400)
commit6d5202f35ff2277d76eb53da93ed70080d6f4ec1
treea29ec55cea5c137a5bd5081e6a496eee92fb094f
parent746ba2ee59997437988060c709324057b761bd96
cfg80211/wext: fix message ordering

[ Upstream commit cb150b9d23be6ee7f3a0fff29784f1c5b5ac514d ]

Since cfg80211 frequently takes actions from its netdev notifier
call, wireless extensions messages could still be ordered badly
since the wext netdev notifier, since wext is built into the
kernel, runs before the cfg80211 netdev notifier. For example,
the following can happen:

5: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default
    link/ether 02:00:00:00:01:00 brd ff:ff:ff:ff:ff:ff
5: wlan1: <BROADCAST,MULTICAST,UP>
    link/ether

when setting the interface down causes the wext message.

To also fix this, export the wireless_nlevent_flush() function
and also call it from the cfg80211 notifier.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
include/net/iw_handler.h
net/wireless/core.c
net/wireless/wext-core.c