cfg80211: combine duplicate wdev init code
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Sep 2018 12:12:03 +0000 (14:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Oct 2018 07:56:29 +0000 (09:56 +0200)
commite4d4216e91ea31049ba0cde0799ece244410a9f7
treea456ffda4a9e63fa485fbbc63c3104e014f8e9da
parenta5ae326418b353301c6acc787a8988782e1762f6
cfg80211: combine duplicate wdev init code

There's a bit of duplicated code to initialize a wdev, pull it out
into a separate function to call from both places.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
net/wireless/core.h
net/wireless/nl80211.c