Lines Matching refs:ssid
69 static struct mesh_conf * mesh_config_create(struct wpa_ssid *ssid)
77 os_memcpy(conf->meshid, ssid->ssid, ssid->ssid_len);
78 conf->meshid_len = ssid->ssid_len;
80 if (ssid->key_mgmt & WPA_KEY_MGMT_SAE)
92 conf->dot11MeshMaxRetries = ssid->dot11MeshMaxRetries;
93 conf->dot11MeshRetryTimeout = ssid->dot11MeshRetryTimeout;
94 conf->dot11MeshConfirmTimeout = ssid->dot11MeshConfirmTimeout;
95 conf->dot11MeshHoldingTimeout = ssid->dot11MeshHoldingTimeout;
120 struct wpa_ssid *ssid)
158 wpa_s->assoc_freq = ssid->frequency;
159 wpa_s->current_ssid = ssid;
178 mconf = mesh_config_create(ssid);
184 if (ssid->frequency == 0) {
188 conf->hw_mode = ieee80211_freq_to_chan(ssid->frequency,
193 ssid->frequency);
196 if (ssid->ht40)
197 conf->secondary_channel = ssid->ht40;
198 if (conf->hw_mode == HOSTAPD_MODE_IEEE80211A && ssid->vht) {
199 conf->vht_oper_chwidth = ssid->max_oper_chwidth;
204 ssid->frequency,
206 conf->vht_oper_centr_freq_seg0_idx += ssid->ht40 * 2;
210 ssid->frequency,
212 conf->vht_oper_centr_freq_seg0_idx += ssid->ht40 * 2;
216 ieee80211_freq_to_chan(ssid->vht_center_freq2,
220 if (ssid->mesh_basic_rates == NULL) {
238 if (ssid->mesh_basic_rates[rate_len] < 1)
245 os_memcpy(conf->basic_rates, ssid->mesh_basic_rates,
262 if (ssid->passphrase == NULL) {
268 bss->conf->wpa = ssid->proto;
269 bss->conf->wpa_key_mgmt = ssid->key_mgmt;
283 len = os_strlen(ssid->passphrase);
284 bss->conf->ssid.wpa_passphrase =
285 dup_binstr(ssid->passphrase, len);
292 wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf);
332 struct wpa_ssid *ssid)
337 if (!ssid || !ssid->ssid || !ssid->ssid_len || !ssid->frequency) {
344 if (ssid->key_mgmt & WPA_KEY_MGMT_SAE) {
355 params.meshid = ssid->ssid;
356 params.meshid_len = ssid->ssid_len;
357 ibss_mesh_setup_freq(wpa_s, ssid, ¶ms.freq);
361 ssid->ht40 = params.freq.sec_channel_offset;
363 ssid->vht = 1;
367 ssid->max_oper_chwidth = VHT_CHANWIDTH_80P80MHZ;
368 ssid->vht_center_freq2 =
371 ssid->max_oper_chwidth = VHT_CHANWIDTH_80MHZ;
375 ssid->max_oper_chwidth = VHT_CHANWIDTH_160MHZ;
378 ssid->max_oper_chwidth = VHT_CHANWIDTH_USE_HT;
382 if (ssid->beacon_int > 0)
383 params.beacon_int = ssid->beacon_int;
388 if (ssid->key_mgmt & WPA_KEY_MGMT_SAE) {
403 if (wpa_supplicant_mesh_init(wpa_s, ssid)) {
417 wpa_ssid_txt(ssid->ssid, ssid->ssid_len));