nl80211: Emit a SET_INTERFACE on iftype change
authorAndrew Zaborowski <andrew.zaborowski@intel.com>
Fri, 19 Oct 2018 21:19:06 +0000 (23:19 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 10:22:10 +0000 (11:22 +0100)
commit3d1a5bbfafbc655c05bfe87cfec2816f0a981565
treefb585f65aa23f156a68e4f87d0b3e475054e016c
parentc90b670b5c610266e255848f7fc774b57189a9a4
nl80211: Emit a SET_INTERFACE on iftype change

Let userspace learn about iftype changes by sending a notification
when handling the NL80211_CMD_SET_INTERFACE command.  There seems
to be no other place where the iftype can change: nl80211_set_interface
is the only caller of cfg80211_change_iface which is the only caller of
ops->change_virtual_intf.

Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c