summaryrefslogtreecommitdiff
path: root/net/wireless/core.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-09-13 15:12:03 +0300
committerJohannes Berg <johannes.berg@intel.com>2018-10-02 10:56:29 +0300
commite4d4216e91ea31049ba0cde0799ece244410a9f7 (patch)
treea456ffda4a9e63fa485fbbc63c3104e014f8e9da /net/wireless/core.h
parenta5ae326418b353301c6acc787a8988782e1762f6 (diff)
downloadlinux-e4d4216e91ea31049ba0cde0799ece244410a9f7.tar.xz
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>
Diffstat (limited to 'net/wireless/core.h')
-rw-r--r--net/wireless/core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h
index 7f52ef569320..45fd4e21dbda 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -187,6 +187,9 @@ struct wiphy *wiphy_idx_to_wiphy(int wiphy_idx);
int cfg80211_switch_netns(struct cfg80211_registered_device *rdev,
struct net *net);
+void cfg80211_init_wdev(struct cfg80211_registered_device *rdev,
+ struct wireless_dev *wdev);
+
static inline void wdev_lock(struct wireless_dev *wdev)
__acquires(wdev)
{