OSDN Git Service

nl80211: announce radios/interfaces when switching namespaces
authorMartin Willi <martin@strongswan.org>
Sat, 27 Oct 2018 07:31:24 +0000 (09:31 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 10:21:10 +0000 (11:21 +0100)
commitc90b670b5c610266e255848f7fc774b57189a9a4
tree307d67cc9b49c1b9bc398932268de98e014ac527
parentcee7013be9b71082c7ea63c46850157aaa1bf4b1
nl80211: announce radios/interfaces when switching namespaces

When a wiphy changes its namespace, all interfaces are moved to the
new namespace as well. The network interfaces are properly announced
as leaving on the old and as appearing on the new namespace through
RTM_NEWLINK/RTM_DELLINK. On nl80211, however, these events are missing
for radios and their interfaces.

Add netlink announcements through nl80211 when switching namespaces,
so userspace can rely on these events to discover radios properly.

Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c