diff options
author | Denis Kenzior <denkenz@gmail.com> | 2018-03-26 19:52:46 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-03-29 10:38:24 +0200 |
commit | 188c1b3c04d69e842122daf201f07a34fcfad039 (patch) | |
tree | 515707f3b46c7f98a0fb85fdabf2ef36e008b688 /net/wireless/mesh.c | |
parent | nl80211: Add SOCKET_OWNER support to JOIN_IBSS (diff) | |
download | linux-188c1b3c04d69e842122daf201f07a34fcfad039.tar.xz linux-188c1b3c04d69e842122daf201f07a34fcfad039.zip |
nl80211: Add SOCKET_OWNER support to JOIN_MESH
Signed-off-by: Denis Kenzior <denkenz@gmail.com>
[johannes: fix race with wdev lock/unlock by just acquiring once]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/mesh.c')
-rw-r--r-- | net/wireless/mesh.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/net/wireless/mesh.c b/net/wireless/mesh.c index b12da6ef3c12..eac5aa1419fc 100644 --- a/net/wireless/mesh.c +++ b/net/wireless/mesh.c @@ -217,21 +217,6 @@ int __cfg80211_join_mesh(struct cfg80211_registered_device *rdev, return err; } -int cfg80211_join_mesh(struct cfg80211_registered_device *rdev, - struct net_device *dev, - struct mesh_setup *setup, - const struct mesh_config *conf) -{ - struct wireless_dev *wdev = dev->ieee80211_ptr; - int err; - - wdev_lock(wdev); - err = __cfg80211_join_mesh(rdev, dev, setup, conf); - wdev_unlock(wdev); - - return err; -} - int cfg80211_set_mesh_channel(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, struct cfg80211_chan_def *chandef) @@ -286,6 +271,7 @@ int __cfg80211_leave_mesh(struct cfg80211_registered_device *rdev, err = rdev_leave_mesh(rdev, dev); if (!err) { + wdev->conn_owner_nlportid = 0; wdev->mesh_id_len = 0; wdev->beacon_interval = 0; memset(&wdev->chandef, 0, sizeof(wdev->chandef)); |