Lines Matching refs:chandef
125 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
127 setup->chandef = wdev->preset_chandef; in __cfg80211_join_mesh()
130 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
149 setup->chandef.chan = chan; in __cfg80211_join_mesh()
153 if (setup->chandef.chan) in __cfg80211_join_mesh()
158 if (!setup->chandef.chan) in __cfg80211_join_mesh()
161 setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT; in __cfg80211_join_mesh()
162 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh()
172 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh()
174 if (setup->chandef.chan->band == NL80211_BAND_2GHZ) { in __cfg80211_join_mesh()
191 scan_width = cfg80211_chandef_to_scan_width(&setup->chandef); in __cfg80211_join_mesh()
198 &setup->chandef, in __cfg80211_join_mesh()
205 if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef, in __cfg80211_join_mesh()
213 wdev->chandef = setup->chandef; in __cfg80211_join_mesh()
222 struct cfg80211_chan_def *chandef) in cfg80211_set_mesh_channel() argument
234 if (chandef->width != NL80211_CHAN_WIDTH_20_NOHT) in cfg80211_set_mesh_channel()
241 chandef->chan); in cfg80211_set_mesh_channel()
243 wdev->chandef = *chandef; in cfg80211_set_mesh_channel()
251 wdev->preset_chandef = *chandef; in cfg80211_set_mesh_channel()
277 memset(&wdev->chandef, 0, sizeof(wdev->chandef)); in __cfg80211_leave_mesh()