Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:conf

49 			     struct hostapd_config *conf,
54 u8 channel = conf->channel;
56 if (!conf->secondary_channel)
59 switch (conf->vht_oper_chwidth) {
69 * conf->vht_oper_chwidth might not be set for non-P2P GO cases,
73 conf->vht_oper_chwidth = VHT_CHANWIDTH_160MHZ;
76 conf->vht_oper_chwidth = VHT_CHANWIDTH_80MHZ;
85 conf->vht_oper_centr_freq_seg0_idx = center_chan;
89 conf->vht_oper_centr_freq_seg0_idx =
90 channel + conf->secondary_channel * 2;
92 conf->vht_oper_centr_freq_seg0_idx =
93 conf->channel + conf->secondary_channel * 2;
95 conf->vht_oper_chwidth = VHT_CHANWIDTH_USE_HT;
102 struct hostapd_config *conf)
104 conf->hw_mode = ieee80211_freq_to_chan(ssid->frequency,
105 &conf->channel);
107 if (conf->hw_mode == NUM_HOSTAPD_MODES) {
118 * Enable HT20 if the driver supports it, by setting conf->ieee80211n
119 * and a mask of allowed capabilities within conf->ht_capab.
120 * Using default config settings for: conf->ht_op_mode_fixed,
121 * conf->secondary_channel, conf->require_ht
127 if (wpa_s->hw.modes[i].mode == conf->hw_mode) {
135 conf->ieee80211n = 0;
136 conf->ht_capab = 0;
142 conf->ieee80211n = 1;
144 if (conf->hw_mode == HOSTAPD_MODE_IEEE80211A &&
148 conf->secondary_channel =
150 conf->channel);
151 if (conf->secondary_channel)
152 conf->ht_capab |=
161 conf->ht_capab |= mode->ht_capab &
170 conf->ieee80211ac = 1;
171 wpas_conf_ap_vht(wpa_s, conf, mode);
176 if (conf->secondary_channel) {
195 conf->no_pri_sec_switch = 1;
206 struct hostapd_config *conf)
208 struct hostapd_bss_config *bss = conf->bss[0];
210 conf->driver = wpa_s->driver;
214 if (wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf))
220 conf->channel = 0;
225 if (ieee80211_is_dfs(ssid->frequency) && wpa_s->conf->country[0]) {
226 conf->ieee80211h = 1;
227 conf->ieee80211d = 1;
228 conf->country[0] = wpa_s->conf->country[0];
229 conf->country[1] = wpa_s->conf->country[1];
233 if (conf->hw_mode == HOSTAPD_MODE_IEEE80211G &&
244 conf->basic_rates = list;
258 conf->supported_rates = list;
261 bss->isolate = !wpa_s->conf->p2p_intra_bss;
265 os_memcpy(bss->ip_addr_go, wpa_s->p2pdev->conf->ip_addr_go, 4);
266 os_memcpy(bss->ip_addr_mask, wpa_s->p2pdev->conf->ip_addr_mask,
269 wpa_s->p2pdev->conf->ip_addr_start, 4);
270 os_memcpy(bss->ip_addr_end, wpa_s->p2pdev->conf->ip_addr_end,
324 else if (wpa_s->conf->dtim_period)
325 bss->dtim_period = wpa_s->conf->dtim_period;
328 conf->beacon_int = ssid->beacon_int;
329 else if (wpa_s->conf->beacon_int)
330 conf->beacon_int = wpa_s->conf->beacon_int;
335 if (wpa_s->conf->p2p_go_ctwindow > conf->beacon_int) {
338 wpa_s->conf->p2p_go_ctwindow,
339 conf->beacon_int);
340 conf->p2p_go_ctwindow = 0;
342 conf->p2p_go_ctwindow = wpa_s->conf->p2p_go_ctwindow;
418 if (wpa_s->conf->config_methods)
419 bss->config_methods = os_strdup(wpa_s->conf->config_methods);
420 os_memcpy(bss->device_type, wpa_s->conf->device_type,
422 if (wpa_s->conf->device_name) {
423 bss->device_name = os_strdup(wpa_s->conf->device_name);
424 bss->friendly_name = os_strdup(wpa_s->conf->device_name);
426 if (wpa_s->conf->manufacturer)
427 bss->manufacturer = os_strdup(wpa_s->conf->manufacturer);
428 if (wpa_s->conf->model_name)
429 bss->model_name = os_strdup(wpa_s->conf->model_name);
430 if (wpa_s->conf->model_number)
431 bss->model_number = os_strdup(wpa_s->conf->model_number);
432 if (wpa_s->conf->serial_number)
433 bss->serial_number = os_strdup(wpa_s->conf->serial_number);
434 if (is_nil_uuid(wpa_s->conf->uuid))
437 os_memcpy(bss->uuid, wpa_s->conf->uuid, WPS_UUID_LEN);
438 os_memcpy(bss->os_version, wpa_s->conf->os_version, 4);
439 bss->pbc_in_m1 = wpa_s->conf->pbc_in_m1;
444 wpa_s->max_stations < wpa_s->conf->max_num_sta)
447 bss->max_num_sta = wpa_s->conf->max_num_sta;
449 bss->disassoc_low_ack = wpa_s->conf->disassoc_low_ack;
451 if (wpa_s->conf->ap_vendor_elements) {
453 wpabuf_dup(wpa_s->conf->ap_vendor_elements);
590 struct hostapd_config *conf;
668 wpa_s->ap_iface->conf = conf = hostapd_config_defaults();
669 if (conf == NULL) {
676 conf->vht_oper_chwidth = ssid->max_oper_chwidth;
679 &conf->vht_oper_centr_freq_seg1_idx);
681 os_memcpy(wpa_s->ap_iface->conf->wmm_ac_params,
682 wpa_s->conf->wmm_ac_params,
683 sizeof(wpa_s->conf->wmm_ac_params));
686 conf->bss[0]->wmm_enabled = 1;
687 conf->bss[0]->wmm_uapsd = 1;
690 if (wpa_supplicant_conf_ap(wpa_s, ssid, conf)) {
698 conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER;
700 conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER |
704 hapd_iface->num_bss = conf->num_bss;
705 hapd_iface->bss = os_calloc(conf->num_bss,
712 for (i = 0; i < conf->num_bss; i++) {
714 hostapd_alloc_bss_data(hapd_iface, conf,
715 conf->bss[i]);
972 os_free(hapd->conf->ap_pin);
973 hapd->conf->ap_pin = NULL;
990 os_free(hapd->conf->ap_pin);
991 hapd->conf->ap_pin = os_strdup(pin_txt);
992 if (hapd->conf->ap_pin == NULL)
996 return hapd->conf->ap_pin;
1006 return hapd->conf->ap_pin;
1023 os_free(hapd->conf->ap_pin);
1024 hapd->conf->ap_pin = os_strdup(pin_txt);
1025 if (hapd->conf->ap_pin == NULL)
1053 os_free(hapd->conf->ap_pin);
1054 hapd->conf->ap_pin = NULL;
1173 struct hostapd_bss_config *conf;
1178 conf = wpa_s->ap_iface->bss[0]->conf;
1179 if (conf->wpa == 0)
1186 wpa_cipher_txt(conf->rsn_pairwise),
1187 wpa_cipher_txt(conf->wpa_group),
1188 wpa_key_mgmt_txt(conf->wpa_key_mgmt,
1189 conf->wpa));
1212 iface->conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER;
1214 iface->conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER |
1274 struct hostapd_bss_config *conf;
1286 conf = hapd->conf;
1288 os_free(conf->accept_mac);
1289 conf->accept_mac = NULL;
1290 conf->num_accept_mac = 0;
1291 os_free(conf->deny_mac);
1292 conf->deny_mac = NULL;
1293 conf->num_deny_mac = 0;
1296 conf->macaddr_acl = ACCEPT_UNLESS_DENIED;
1300 conf->macaddr_acl = DENY_UNLESS_ACCEPTED;
1301 conf->accept_mac = os_zalloc(sizeof(struct mac_acl_entry));
1302 if (conf->accept_mac == NULL)
1304 os_memcpy(conf->accept_mac[0].addr, addr, ETH_ALEN);
1305 conf->num_accept_mac = 1;
1323 if (wpa_s->p2pdev->conf->wps_nfc_dh_pubkey == NULL ||
1324 wpa_s->p2pdev->conf->wps_nfc_dh_privkey == NULL) {
1333 wpa_s->p2pdev->conf->wps_nfc_dh_privkey);
1335 wpa_s->p2pdev->conf->wps_nfc_dh_pubkey);