Lines Matching refs:setup
100 struct mesh_setup *setup,
114 setup->is_secure)
120 if (!setup->mesh_id_len)
126 if (!setup->chandef.chan) {
128 setup->chandef = wdev->preset_chandef;
131 if (!setup->chandef.chan) {
150 setup->chandef.chan = chan;
154 if (setup->chandef.chan)
159 if (!setup->chandef.chan)
162 setup->chandef.width = NL80211_CHAN_WIDTH_20_NOHT;
163 setup->chandef.center_freq1 = setup->chandef.chan->center_freq;
170 if (!setup->basic_rates) {
173 rdev->wiphy.bands[setup->chandef.chan->band];
175 if (setup->chandef.chan->band == NL80211_BAND_2GHZ) {
187 setup->basic_rates = BIT(i);
192 scan_width = cfg80211_chandef_to_scan_width(&setup->chandef);
193 setup->basic_rates = ieee80211_mandatory_rates(sband,
199 &setup->chandef,
203 if (err > 0 && !setup->userspace_handles_dfs)
206 if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef,
210 err = rdev_join_mesh(rdev, dev, conf, setup);
212 memcpy(wdev->ssid, setup->mesh_id, setup->mesh_id_len);
213 wdev->mesh_id_len = setup->mesh_id_len;
214 wdev->chandef = setup->chandef;
215 wdev->beacon_interval = setup->beacon_interval;