Lines Matching refs:setup
104 struct mesh_setup *setup,
118 setup->is_secure)
124 if (!setup->mesh_id_len)
130 if (!setup->chandef.chan) {
132 setup->chandef = wdev->u.mesh.preset_chandef;
135 if (!setup->chandef.chan) {
154 setup->chandef.chan = chan;
158 if (setup->chandef.chan)
163 if (!setup->chandef.chan)
166 setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT;
167 setup->chandef.center_freq1 = setup->chandef.chan->center_freq;
174 if (!setup->basic_rates) {
177 rdev->wiphy.bands[setup->chandef.chan->band];
179 if (setup->chandef.chan->band == NL80211_BAND_2GHZ) {
191 setup->basic_rates = BIT(i);
196 scan_width = cfg80211_chandef_to_scan_width(&setup->chandef);
197 setup->basic_rates = ieee80211_mandatory_rates(sband,
203 &setup->chandef,
207 if (err > 0 && !setup->userspace_handles_dfs)
210 if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef,
214 err = rdev_join_mesh(rdev, dev, conf, setup);
216 memcpy(wdev->u.mesh.id, setup->mesh_id, setup->mesh_id_len);
217 wdev->u.mesh.id_len = setup->mesh_id_len;
218 wdev->u.mesh.chandef = setup->chandef;
219 wdev->u.mesh.beacon_interval = setup->beacon_interval;