cfg80211: preserve wdev ID across netns changes
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 17 Mar 2017 09:24:15 +0000 (10:24 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Mar 2017 10:39:55 +0000 (11:39 +0100)
commitb6ecfd469e82886308b44bf715d48fbe7b19ad4c
treeb652bf22e80e53e555c1e39fae735f6dc58243f4
parent335d534938d327d5ba266564b7e6beaf5d456dd2
cfg80211: preserve wdev ID across netns changes

When a wdev changes network namespace, its wdev ID will get
reassigned since NETDEV_REGISTER is called again, in the new
network namespace. Avoid that by checking if it was already
assigned before, and document why we do that.

Reported-and-tested-by: Arend Van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c