Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:conf

234 	if (wpa_s->conf->p2p_ignore_shared_freq &&
481 for (s = wpa_s->conf->ssid; s; s = s->next) {
537 for (s = wpa_s->conf->ssid; s; s = s->next) {
620 for (s = wpa_s->conf->ssid; s; s = s->next) {
839 ssid = wpa_s->conf->ssid;
996 wpa_config_remove_network(wpa_s->conf, id);
1092 for (s = wpa_s->conf->ssid; s; s = s->next) {
1112 s = wpa_config_add_network(wpa_s->conf);
1164 if (changed && wpa_s->conf->update_config &&
1165 wpa_config_write(wpa_s->confname, wpa_s->conf)) {
1187 for (s = p2p_wpa_s->conf->ssid; s; s = s->next) {
1246 if (p2p_wpa_s->conf->update_config &&
1247 wpa_config_write(p2p_wpa_s->confname, p2p_wpa_s->conf))
1698 hpsk->next = hapd->conf->ssid.wpa_psk;
1699 hapd->conf->ssid.wpa_psk = hpsk;
1741 if (wpa_s->p2pdev->conf->update_config &&
1742 wpa_config_write(wpa_s->p2pdev->confname, wpa_s->p2pdev->conf))
1873 ssid = wpa_config_add_network(wpa_s->conf);
1920 wpa_config_remove_network(wpa_s->conf, ssid->id);
1930 ssid->ap_max_inactivity = wpa_s->p2pdev->conf->p2p_go_max_inactivity;
1951 d = dst->conf;
1952 s = src->conf;
1996 d = dst->conf;
1997 s = src->conf;
2118 if (wpa_s->conf->ctrl_interface == NULL &&
2122 iface.ctrl_interface = wpa_s->parent->conf->ctrl_interface;
2124 iface.ctrl_interface = wpa_s->conf->ctrl_interface;
2125 iface.driver_param = wpa_s->conf->driver_param;
2230 ssid = wpa_config_get_network(wpa_s->conf,
2909 } else if (!wpa_s->conf->persistent_reconnect)
2912 for (s = wpa_s->conf->ssid; s; s = s->next) {
3008 for (s = wpa_s->conf->ssid; s; s = s->next) {
3095 wpa_config_remove_network(wpa_s->conf, ssid->id);
3109 if (p2p_wpa_s->conf->update_config &&
3110 wpa_config_write(p2p_wpa_s->confname, p2p_wpa_s->conf))
3197 wpa_s->conf, wpa_s->pending_invite_ssid_id);
3204 ssid = wpa_config_get_network(wpa_s->conf,
3563 wpa_s->conf->p2p_add_cli_chan) {
3749 iface.driver_param = wpa_s->conf->driver_param;
3760 iface.ctrl_interface = wpa_s->conf->ctrl_interface;
3890 wpa_config_remove_network(wpa_s->conf, s->id);
4013 wpa_config_remove_network(wpa_s->conf,
4053 wpa_config_remove_network(wpa_s->conf, stale->id);
4085 wpa_config_remove_network(wpa_s->conf,
4192 wpa_config_remove_network(wpa_s->conf, persistent_go->id);
4288 if (wpa_s->conf->p2p_disabled)
4334 p2p.dev_name = wpa_s->conf->device_name;
4335 p2p.manufacturer = wpa_s->conf->manufacturer;
4336 p2p.model_name = wpa_s->conf->model_name;
4337 p2p.model_number = wpa_s->conf->model_number;
4338 p2p.serial_number = wpa_s->conf->serial_number;
4350 if (wpa_s->conf->p2p_listen_reg_class &&
4351 wpa_s->conf->p2p_listen_channel) {
4352 p2p.reg_class = wpa_s->conf->p2p_listen_reg_class;
4353 p2p.channel = wpa_s->conf->p2p_listen_channel;
4371 if (wpa_s->conf->p2p_oper_reg_class &&
4372 wpa_s->conf->p2p_oper_channel) {
4373 p2p.op_reg_class = wpa_s->conf->p2p_oper_reg_class;
4374 p2p.op_channel = wpa_s->conf->p2p_oper_channel;
4396 if (wpa_s->conf->p2p_pref_chan && wpa_s->conf->num_p2p_pref_chan) {
4397 p2p.pref_chan = wpa_s->conf->p2p_pref_chan;
4398 p2p.num_pref_chan = wpa_s->conf->num_p2p_pref_chan;
4401 if (wpa_s->conf->country[0] && wpa_s->conf->country[1]) {
4402 os_memcpy(p2p.country, wpa_s->conf->country, 2);
4407 os_memcpy(p2p.pri_dev_type, wpa_s->conf->device_type,
4410 p2p.num_sec_dev_types = wpa_s->conf->num_sec_device_types;
4411 os_memcpy(p2p.sec_dev_type, wpa_s->conf->sec_device_type,
4419 if (wpa_s->conf->p2p_ssid_postfix) {
4421 os_strlen(wpa_s->conf->p2p_ssid_postfix);
4424 os_memcpy(p2p.ssid_postfix, wpa_s->conf->p2p_ssid_postfix,
4428 p2p.p2p_intra_bss = wpa_s->conf->p2p_intra_bss;
4432 if (wpa_s->conf->p2p_passphrase_len >= 8 &&
4433 wpa_s->conf->p2p_passphrase_len <= 63)
4434 p2p.passphrase_len = wpa_s->conf->p2p_passphrase_len;
4444 if (wpa_s->conf->wps_vendor_ext[i] == NULL)
4447 global->p2p, wpa_s->conf->wps_vendor_ext[i]);
4450 p2p_set_no_go_freq(global->p2p, &wpa_s->conf->p2p_no_go_freq);
4551 conf->p2p_no_group_iface)
4575 if (persistent_group && wpa_s->conf->persistent_reconnect)
4602 if (persistent_group && wpa_s->conf->persistent_reconnect)
5215 if (!wpa_s->conf->num_p2p_pref_chan && *pref_freq == 0) {
5333 ssid = wpa_config_get_network(wpa_s->conf, persistent_id);
5348 go_intent = wpa_s->conf->p2p_go_intent;
5585 if (!wpa_s->conf->num_p2p_pref_chan && !freq) {
5848 (!wpa_s->conf->p2p_ignore_shared_freq || !unused_channels)) {
5878 if (wpa_s->conf->p2p_oper_reg_class == 81 &&
5879 wpa_s->conf->p2p_oper_channel >= 1 &&
5880 wpa_s->conf->p2p_oper_channel <= 11 &&
5883 2407 + 5 * wpa_s->conf->p2p_oper_channel)) {
5884 params->freq = 2407 + 5 * wpa_s->conf->p2p_oper_channel;
5890 if ((wpa_s->conf->p2p_oper_reg_class == 115 ||
5891 wpa_s->conf->p2p_oper_reg_class == 116 ||
5892 wpa_s->conf->p2p_oper_reg_class == 117 ||
5893 wpa_s->conf->p2p_oper_reg_class == 124 ||
5894 wpa_s->conf->p2p_oper_reg_class == 125 ||
5895 wpa_s->conf->p2p_oper_reg_class == 126 ||
5896 wpa_s->conf->p2p_oper_reg_class == 127) &&
5899 5 * wpa_s->conf->p2p_oper_channel)) {
5900 params->freq = 5000 + 5 * wpa_s->conf->p2p_oper_channel;
5907 if (wpa_s->conf->p2p_oper_channel == 0 &&
5917 if (wpa_s->conf->p2p_oper_channel == 0 &&
5927 if (wpa_s->conf->p2p_oper_channel == 0 &&
6104 ssid = wpa_config_add_network(wpa_s->conf);
6118 wpa_config_remove_network(wpa_s->conf, ssid->id);
6268 if (!(hapd->conf->p2p & P2P_GROUP_OWNER)) {
6318 if (ssid->p2p_persistent_group && wpa_s->conf->persistent_reconnect)
6324 wpa_s->max_stations < wpa_s->conf->max_num_sta)
6327 cfg->max_clients = wpa_s->conf->max_num_sta;
6334 cfg->ip_addr_alloc = WPA_GET_BE32(wpa_s->p2pdev->conf->ip_addr_start)
6670 if (wpa_s->conf->p2p_disabled && p2p_group)
6826 if (wpa_s->parent->conf->p2p_ignore_shared_freq &&
7049 if (wpa_s->conf->p2p_group_idle == 0 && !wpas_p2p_is_client(wpa_s)) {
7071 timeout = wpa_s->conf->p2p_group_idle;
7168 if (wpa_s->conf->changed_parameters & CFG_CHANGED_DEVICE_NAME)
7169 p2p_set_dev_name(p2p, wpa_s->conf->device_name);
7171 if (wpa_s->conf->changed_parameters & CFG_CHANGED_DEVICE_TYPE)
7172 p2p_set_pri_dev_type(p2p, wpa_s->conf->device_type);
7175 (wpa_s->conf->changed_parameters & CFG_CHANGED_CONFIG_METHODS))
7178 if (wpa_s->wps && (wpa_s->conf->changed_parameters & CFG_CHANGED_UUID))
7181 if (wpa_s->conf->changed_parameters & CFG_CHANGED_WPS_STRING) {
7182 p2p_set_manufacturer(p2p, wpa_s->conf->manufacturer);
7183 p2p_set_model_name(p2p, wpa_s->conf->model_name);
7184 p2p_set_model_number(p2p, wpa_s->conf->model_number);
7185 p2p_set_serial_number(p2p, wpa_s->conf->serial_number);
7188 if (wpa_s->conf->changed_parameters & CFG_CHANGED_SEC_DEVICE_TYPE)
7190 (void *) wpa_s->conf->sec_device_type,
7191 wpa_s->conf->num_sec_device_types);
7193 if (wpa_s->conf->changed_parameters & CFG_CHANGED_VENDOR_EXTENSION) {
7197 if (wpa_s->conf->wps_vendor_ext[i] == NULL)
7200 p2p, wpa_s->conf->wps_vendor_ext[i]);
7204 if ((wpa_s->conf->changed_parameters & CFG_CHANGED_COUNTRY) &&
7205 wpa_s->conf->country[0] && wpa_s->conf->country[1]) {
7207 country[0] = wpa_s->conf->country[0];
7208 country[1] = wpa_s->conf->country[1];
7213 if (wpa_s->conf->changed_parameters & CFG_CHANGED_P2P_SSID_POSTFIX) {
7214 p2p_set_ssid_postfix(p2p, (u8 *) wpa_s->conf->p2p_ssid_postfix,
7215 wpa_s->conf->p2p_ssid_postfix ?
7216 os_strlen(wpa_s->conf->p2p_ssid_postfix) :
7220 if (wpa_s->conf->changed_parameters & CFG_CHANGED_P2P_INTRA_BSS)
7221 p2p_set_intra_bss_dist(p2p, wpa_s->conf->p2p_intra_bss);
7223 if (wpa_s->conf->changed_parameters & CFG_CHANGED_P2P_LISTEN_CHANNEL) {
7229 if (wpa_s->conf->p2p_listen_reg_class &&
7230 wpa_s->conf->p2p_listen_channel) {
7231 reg_class = wpa_s->conf->p2p_listen_reg_class;
7232 channel = wpa_s->conf->p2p_listen_channel;
7252 if (wpa_s->conf->changed_parameters & CFG_CHANGED_P2P_OPER_CHANNEL) {
7256 if (wpa_s->conf->p2p_oper_reg_class &&
7257 wpa_s->conf->p2p_oper_channel) {
7258 op_reg_class = wpa_s->conf->p2p_oper_reg_class;
7259 op_channel = wpa_s->conf->p2p_oper_channel;
7280 if (wpa_s->conf->changed_parameters & CFG_CHANGED_P2P_PREF_CHAN) {
7281 if (p2p_set_pref_chan(p2p, wpa_s->conf->num_p2p_pref_chan,
7282 wpa_s->conf->p2p_pref_chan) < 0) {
7287 if (p2p_set_no_go_freq(p2p, &wpa_s->conf->p2p_no_go_freq) < 0) {
7293 if (wpa_s->conf->changed_parameters & CFG_CHANGED_P2P_PASSPHRASE_LEN)
7294 p2p_set_passphrase_len(p2p, wpa_s->conf->p2p_passphrase_len);
7717 for (s = wpa_s->conf->ssid; s; s = s->next) {
7843 wpa_s->conf->p2p_search_delay);
7844 return wpa_s->conf->p2p_search_delay;
7853 wpa_s->conf->p2p_search_delay,
7855 return wpa_s->conf->p2p_search_delay;
7978 if (wpa_s->p2pdev->conf->update_config &&
7979 wpa_config_write(wpa_s->p2pdev->confname, wpa_s->p2pdev->conf))
7991 if (res > 0 && wpa_s->conf->update_config &&
7992 wpa_config_write(wpa_s->confname, wpa_s->conf))
8012 psk = hapd->conf->ssid.wpa_psk;
8023 hapd->conf->ssid.wpa_psk = psk->next;
8059 for (s = p2p_wpa_s->conf->ssid; s; s = s->next) {
8271 if (wpa_s->conf->wps_nfc_dh_pubkey == NULL &&
8272 wps_nfc_gen_dh(&wpa_s->conf->wps_nfc_dh_pubkey,
8273 &wpa_s->conf->wps_nfc_dh_privkey) < 0) {
8280 wpa_s->parent->wps, wpa_s->conf->wps_nfc_dh_pubkey);
8302 if (!tag && wpa_s->conf->wps_nfc_dh_pubkey == NULL &&
8303 wps_nfc_gen_dh(&wpa_s->conf->wps_nfc_dh_pubkey,
8304 &wpa_s->conf->wps_nfc_dh_privkey) < 0)
8310 tag ? wpa_s->conf->wps_nfc_dev_pw_id :
8312 wpa_s->conf->wps_nfc_dh_pubkey,
8313 tag ? wpa_s->conf->wps_nfc_dev_pw : NULL);
8343 WPS_NFC, 0, 0, 1, 0, wpa_s->conf->p2p_go_intent,
8422 WPS_NFC, 0, 0, 0, 0, wpa_s->conf->p2p_go_intent,
8438 WPS_NFC, 0, 0, 0, 1, wpa_s->conf->p2p_go_intent,
8589 if (wpa_s->conf->wps_nfc_dh_pubkey == NULL &&
8590 wps_nfc_gen_dh(&wpa_s->conf->wps_nfc_dh_pubkey,
8591 &wpa_s->conf->wps_nfc_dh_privkey) < 0)
8665 int go_intent = wpa_s->conf->p2p_go_intent;
8690 if (wpa_s->conf->wps_nfc_dh_pubkey == NULL ||
8691 wpa_s->conf->wps_nfc_dh_privkey == NULL ||
8692 wpa_s->conf->wps_nfc_dev_pw == NULL ||
8693 wpa_s->conf->wps_nfc_dev_pw_id < 0x10) {
8701 wpa_s->p2p_oob_dev_pw_id = wpa_s->conf->wps_nfc_dev_pw_id;
8703 wpa_s->p2p_oob_dev_pw = wpabuf_dup(wpa_s->conf->wps_nfc_dev_pw);
8744 wpabuf_free(hapd->conf->wps_nfc_dh_pubkey);
8745 hapd->conf->wps_nfc_dh_pubkey =
8746 wpabuf_dup(wpa_s->conf->wps_nfc_dh_pubkey);
8747 wpabuf_free(hapd->conf->wps_nfc_dh_privkey);
8748 hapd->conf->wps_nfc_dh_privkey =
8749 wpabuf_dup(wpa_s->conf->wps_nfc_dh_privkey);
8750 wpabuf_free(hapd->conf->wps_nfc_dev_pw);
8751 hapd->conf->wps_nfc_dev_pw =
8752 wpabuf_dup(wpa_s->conf->wps_nfc_dev_pw);
8753 hapd->conf->wps_nfc_dev_pw_id = wpa_s->conf->wps_nfc_dev_pw_id;
8761 wpa_s->global->p2p, wpa_s->conf->wps_nfc_dev_pw_id, go_intent,
8781 if (!wpa_s->conf->p2p_optimize_listen_chan)
8810 struct hostapd_config *conf;
8838 conf = hostapd_config_defaults();
8839 if (!conf) {
8846 if (wpa_supplicant_conf_ap_ht(wpa_s, current_ssid, conf)) {
8853 if (conf->hw_mode != wpa_s->ap_iface->current_mode->mode) {
8864 csa_settings.freq_params.sec_channel_offset = conf->secondary_channel;
8865 csa_settings.freq_params.ht_enabled = conf->ieee80211n;
8866 csa_settings.freq_params.bandwidth = conf->secondary_channel ? 40 : 20;
8868 if (conf->ieee80211ac) {
8873 conf->secondary_channel,
8874 conf->vht_oper_chwidth,
8882 if (conf->vht_oper_centr_freq_seg0_idx)
8885 conf->vht_oper_centr_freq_seg0_idx);
8887 if (conf->vht_oper_centr_freq_seg1_idx)
8890 conf->vht_oper_centr_freq_seg1_idx);
8899 csa_settings.freq_params.vht_enabled = conf->ieee80211ac;
8903 switch (conf->vht_oper_chwidth) {
8917 hostapd_config_free(conf);
9051 } else if (wpa_s->conf->p2p_go_freq_change_policy ==
9054 } else if (wpa_s->conf->p2p_go_freq_change_policy ==
9058 } else if ((wpa_s->conf->p2p_go_freq_change_policy ==