Lines Matching refs:rdev
93 int __cfg80211_join_mesh(struct cfg80211_registered_device *rdev, in __cfg80211_join_mesh() argument
108 if (!(rdev->wiphy.flags & WIPHY_FLAG_MESH_AUTH) && in __cfg80211_join_mesh()
118 if (!rdev->ops->join_mesh) in __cfg80211_join_mesh()
135 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh()
162 if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef)) in __cfg80211_join_mesh()
165 err = cfg80211_can_use_chan(rdev, wdev, setup->chandef.chan, in __cfg80211_join_mesh()
170 err = rdev_join_mesh(rdev, dev, conf, setup); in __cfg80211_join_mesh()
180 int cfg80211_join_mesh(struct cfg80211_registered_device *rdev, in cfg80211_join_mesh() argument
188 mutex_lock(&rdev->devlist_mtx); in cfg80211_join_mesh()
190 err = __cfg80211_join_mesh(rdev, dev, setup, conf); in cfg80211_join_mesh()
192 mutex_unlock(&rdev->devlist_mtx); in cfg80211_join_mesh()
197 int cfg80211_set_mesh_channel(struct cfg80211_registered_device *rdev, in cfg80211_set_mesh_channel() argument
210 if (rdev->ops->libertas_set_mesh_channel) { in cfg80211_set_mesh_channel()
217 err = cfg80211_can_use_chan(rdev, wdev, chandef->chan, in cfg80211_set_mesh_channel()
222 err = rdev_libertas_set_mesh_channel(rdev, wdev->netdev, in cfg80211_set_mesh_channel()
237 static int __cfg80211_leave_mesh(struct cfg80211_registered_device *rdev, in __cfg80211_leave_mesh() argument
248 if (!rdev->ops->leave_mesh) in __cfg80211_leave_mesh()
254 err = rdev_leave_mesh(rdev, dev); in __cfg80211_leave_mesh()
263 int cfg80211_leave_mesh(struct cfg80211_registered_device *rdev, in cfg80211_leave_mesh() argument
270 err = __cfg80211_leave_mesh(rdev, dev); in cfg80211_leave_mesh()