]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cfg80211/wext: fix message ordering
authorJohannes Berg <johannes.berg@intel.com>
Wed, 27 Jan 2016 12:29:34 +0000 (13:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2016 15:42:59 +0000 (08:42 -0700)
commitbfed1f518daa78346fb3f118367212ad352b2f07
tree78c9fcaa90c3ffd6a5deb2cf477dc0b7d541c2af
parent176e879db6c9ecd702b4deac2bc419c030afd630
cfg80211/wext: fix message ordering

commit cb150b9d23be6ee7f3a0fff29784f1c5b5ac514d upstream.

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.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/iw_handler.h
net/wireless/core.c
net/wireless/wext-core.c