Lines Matching refs:conf

71 	struct mesh_conf *conf;  in mesh_config_create()  local
73 conf = os_zalloc(sizeof(struct mesh_conf)); in mesh_config_create()
74 if (!conf) in mesh_config_create()
77 os_memcpy(conf->meshid, ssid->ssid, ssid->ssid_len); in mesh_config_create()
78 conf->meshid_len = ssid->ssid_len; in mesh_config_create()
81 conf->security |= MESH_CONF_SEC_AUTH | in mesh_config_create()
84 conf->security |= MESH_CONF_SEC_NONE; in mesh_config_create()
87 conf->mesh_pp_id = MESH_PATH_PROTOCOL_HWMP; in mesh_config_create()
88 conf->mesh_pm_id = MESH_PATH_METRIC_AIRTIME; in mesh_config_create()
89 conf->mesh_cc_id = 0; in mesh_config_create()
90 conf->mesh_sp_id = MESH_SYNC_METHOD_NEIGHBOR_OFFSET; in mesh_config_create()
91 conf->mesh_auth_id = (conf->security & MESH_CONF_SEC_AUTH) ? 1 : 0; in mesh_config_create()
92 conf->dot11MeshMaxRetries = ssid->dot11MeshMaxRetries; in mesh_config_create()
93 conf->dot11MeshRetryTimeout = ssid->dot11MeshRetryTimeout; in mesh_config_create()
94 conf->dot11MeshConfirmTimeout = ssid->dot11MeshConfirmTimeout; in mesh_config_create()
95 conf->dot11MeshHoldingTimeout = ssid->dot11MeshHoldingTimeout; in mesh_config_create()
97 return conf; in mesh_config_create()
107 for (num_groups = 0; wpa_s->conf->sae_groups[num_groups] > 0; in wpas_mesh_copy_groups()
111 groups_size = (num_groups + 1) * sizeof(wpa_s->conf->sae_groups[0]); in wpas_mesh_copy_groups()
112 bss->conf->sae_groups = os_malloc(groups_size); in wpas_mesh_copy_groups()
113 if (bss->conf->sae_groups) in wpas_mesh_copy_groups()
114 os_memcpy(bss->conf->sae_groups, wpa_s->conf->sae_groups, in wpas_mesh_copy_groups()
124 struct hostapd_config *conf; in wpa_supplicant_mesh_init() local
131 if (!wpa_s->conf->user_mpm) { in wpa_supplicant_mesh_init()
162 conf = hostapd_config_defaults(); in wpa_supplicant_mesh_init()
163 if (!conf) in wpa_supplicant_mesh_init()
166 bss->conf = *conf->bss; in wpa_supplicant_mesh_init()
167 bss->conf->start_disabled = 1; in wpa_supplicant_mesh_init()
168 bss->conf->mesh = MESH_ENABLED; in wpa_supplicant_mesh_init()
169 bss->conf->ap_max_inactivity = wpa_s->conf->mesh_max_inactivity; in wpa_supplicant_mesh_init()
170 bss->iconf = conf; in wpa_supplicant_mesh_init()
171 ifmsh->conf = conf; in wpa_supplicant_mesh_init()
173 ifmsh->bss[0]->max_plinks = wpa_s->conf->max_peer_links; in wpa_supplicant_mesh_init()
174 os_strlcpy(bss->conf->iface, wpa_s->ifname, sizeof(bss->conf->iface)); in wpa_supplicant_mesh_init()
183 conf->hw_mode = HOSTAPD_MODE_IEEE80211G; in wpa_supplicant_mesh_init()
184 conf->channel = 1; in wpa_supplicant_mesh_init()
186 conf->hw_mode = ieee80211_freq_to_chan(ssid->frequency, in wpa_supplicant_mesh_init()
187 &conf->channel); in wpa_supplicant_mesh_init()
189 if (conf->hw_mode == NUM_HOSTAPD_MODES) { in wpa_supplicant_mesh_init()
203 if (conf->hw_mode == HOSTAPD_MODE_IEEE80211G) { in wpa_supplicant_mesh_init()
204 conf->basic_rates = os_malloc(sizeof(basic_rates_erp)); in wpa_supplicant_mesh_init()
205 if (!conf->basic_rates) in wpa_supplicant_mesh_init()
207 os_memcpy(conf->basic_rates, basic_rates_erp, in wpa_supplicant_mesh_init()
217 conf->basic_rates = os_calloc(rate_len + 1, sizeof(int)); in wpa_supplicant_mesh_init()
218 if (conf->basic_rates == NULL) in wpa_supplicant_mesh_init()
220 os_memcpy(conf->basic_rates, ssid->mesh_basic_rates, in wpa_supplicant_mesh_init()
222 conf->basic_rates[rate_len] = -1; in wpa_supplicant_mesh_init()
243 bss->conf->wpa = ssid->proto; in wpa_supplicant_mesh_init()
244 bss->conf->wpa_key_mgmt = ssid->key_mgmt; in wpa_supplicant_mesh_init()
246 if (wpa_s->conf->sae_groups && in wpa_supplicant_mesh_init()
247 wpa_s->conf->sae_groups[0] > 0) { in wpa_supplicant_mesh_init()
250 bss->conf->sae_groups = in wpa_supplicant_mesh_init()
252 if (!bss->conf->sae_groups) in wpa_supplicant_mesh_init()
254 os_memcpy(bss->conf->sae_groups, default_groups, in wpa_supplicant_mesh_init()
259 bss->conf->ssid.wpa_passphrase = in wpa_supplicant_mesh_init()
267 wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf); in wpa_supplicant_mesh_init()
326 else if (wpa_s->conf->beacon_int > 0) in wpa_supplicant_join_mesh()
327 params.beacon_int = wpa_s->conf->beacon_int; in wpa_supplicant_join_mesh()
328 params.max_peer_links = wpa_s->conf->max_peer_links; in wpa_supplicant_join_mesh()
333 wpa_s->conf->user_mpm = 1; in wpa_supplicant_join_mesh()
336 if (wpa_s->conf->user_mpm) { in wpa_supplicant_join_mesh()
338 params.conf.flags &= ~WPA_DRIVER_MESH_CONF_FLAG_AUTO_PLINKS; in wpa_supplicant_join_mesh()
341 params.conf.flags |= WPA_DRIVER_MESH_CONF_FLAG_AUTO_PLINKS; in wpa_supplicant_join_mesh()
343 params.conf.peer_link_timeout = wpa_s->conf->mesh_max_inactivity; in wpa_supplicant_join_mesh()
529 iface.driver_param = wpa_s->conf->driver_param; in wpas_mesh_add_interface()
530 iface.ctrl_interface = wpa_s->conf->ctrl_interface; in wpas_mesh_add_interface()