• Home
  • Raw
  • Download

Lines Matching refs:conf

49 			     struct hostapd_config *conf,  in wpas_conf_ap_vht()  argument
54 u8 channel = conf->channel; in wpas_conf_ap_vht()
56 if (!conf->secondary_channel) in wpas_conf_ap_vht()
59 switch (conf->vht_oper_chwidth) { in wpas_conf_ap_vht()
73 conf->vht_oper_chwidth = VHT_CHANWIDTH_160MHZ; in wpas_conf_ap_vht()
76 conf->vht_oper_chwidth = VHT_CHANWIDTH_80MHZ; in wpas_conf_ap_vht()
85 conf->vht_oper_centr_freq_seg0_idx = center_chan; in wpas_conf_ap_vht()
89 conf->vht_oper_centr_freq_seg0_idx = in wpas_conf_ap_vht()
90 channel + conf->secondary_channel * 2; in wpas_conf_ap_vht()
92 conf->vht_oper_centr_freq_seg0_idx = in wpas_conf_ap_vht()
93 conf->channel + conf->secondary_channel * 2; in wpas_conf_ap_vht()
95 conf->vht_oper_chwidth = VHT_CHANWIDTH_USE_HT; in wpas_conf_ap_vht()
102 struct hostapd_config *conf) in wpa_supplicant_conf_ap_ht() argument
104 conf->hw_mode = ieee80211_freq_to_chan(ssid->frequency, in wpa_supplicant_conf_ap_ht()
105 &conf->channel); in wpa_supplicant_conf_ap_ht()
107 if (conf->hw_mode == NUM_HOSTAPD_MODES) { in wpa_supplicant_conf_ap_ht()
127 if (wpa_s->hw.modes[i].mode == conf->hw_mode) { in wpa_supplicant_conf_ap_ht()
135 conf->ieee80211n = 0; in wpa_supplicant_conf_ap_ht()
136 conf->ht_capab = 0; in wpa_supplicant_conf_ap_ht()
142 conf->ieee80211n = 1; in wpa_supplicant_conf_ap_ht()
144 if (conf->hw_mode == HOSTAPD_MODE_IEEE80211A && in wpa_supplicant_conf_ap_ht()
148 conf->secondary_channel = in wpa_supplicant_conf_ap_ht()
150 conf->channel); in wpa_supplicant_conf_ap_ht()
151 if (conf->secondary_channel) in wpa_supplicant_conf_ap_ht()
152 conf->ht_capab |= in wpa_supplicant_conf_ap_ht()
161 conf->ht_capab |= mode->ht_capab & in wpa_supplicant_conf_ap_ht()
170 conf->ieee80211ac = 1; in wpa_supplicant_conf_ap_ht()
171 conf->vht_capab |= mode->vht_capab; in wpa_supplicant_conf_ap_ht()
172 wpas_conf_ap_vht(wpa_s, conf, mode); in wpa_supplicant_conf_ap_ht()
177 if (conf->secondary_channel) { in wpa_supplicant_conf_ap_ht()
196 conf->no_pri_sec_switch = 1; in wpa_supplicant_conf_ap_ht()
207 struct hostapd_config *conf) in wpa_supplicant_conf_ap() argument
209 struct hostapd_bss_config *bss = conf->bss[0]; in wpa_supplicant_conf_ap()
211 conf->driver = wpa_s->driver; in wpa_supplicant_conf_ap()
215 if (wpa_supplicant_conf_ap_ht(wpa_s, ssid, conf)) in wpa_supplicant_conf_ap()
228 conf->channel = 0; in wpa_supplicant_conf_ap()
233 if (ieee80211_is_dfs(ssid->frequency) && wpa_s->conf->country[0]) { in wpa_supplicant_conf_ap()
234 conf->ieee80211h = 1; in wpa_supplicant_conf_ap()
235 conf->ieee80211d = 1; in wpa_supplicant_conf_ap()
236 conf->country[0] = wpa_s->conf->country[0]; in wpa_supplicant_conf_ap()
237 conf->country[1] = wpa_s->conf->country[1]; in wpa_supplicant_conf_ap()
238 conf->country[2] = ' '; in wpa_supplicant_conf_ap()
242 if (conf->hw_mode == HOSTAPD_MODE_IEEE80211G && in wpa_supplicant_conf_ap()
253 conf->basic_rates = list; in wpa_supplicant_conf_ap()
267 conf->supported_rates = list; in wpa_supplicant_conf_ap()
270 bss->isolate = !wpa_s->conf->p2p_intra_bss; in wpa_supplicant_conf_ap()
274 os_memcpy(bss->ip_addr_go, wpa_s->p2pdev->conf->ip_addr_go, 4); in wpa_supplicant_conf_ap()
275 os_memcpy(bss->ip_addr_mask, wpa_s->p2pdev->conf->ip_addr_mask, in wpa_supplicant_conf_ap()
278 wpa_s->p2pdev->conf->ip_addr_start, 4); in wpa_supplicant_conf_ap()
279 os_memcpy(bss->ip_addr_end, wpa_s->p2pdev->conf->ip_addr_end, in wpa_supplicant_conf_ap()
337 else if (wpa_s->conf->dtim_period) in wpa_supplicant_conf_ap()
338 bss->dtim_period = wpa_s->conf->dtim_period; in wpa_supplicant_conf_ap()
341 conf->beacon_int = ssid->beacon_int; in wpa_supplicant_conf_ap()
342 else if (wpa_s->conf->beacon_int) in wpa_supplicant_conf_ap()
343 conf->beacon_int = wpa_s->conf->beacon_int; in wpa_supplicant_conf_ap()
348 if (wpa_s->conf->p2p_go_ctwindow > conf->beacon_int) { in wpa_supplicant_conf_ap()
351 wpa_s->conf->p2p_go_ctwindow, in wpa_supplicant_conf_ap()
352 conf->beacon_int); in wpa_supplicant_conf_ap()
353 conf->p2p_go_ctwindow = 0; in wpa_supplicant_conf_ap()
355 conf->p2p_go_ctwindow = wpa_s->conf->p2p_go_ctwindow; in wpa_supplicant_conf_ap()
433 if (wpa_s->conf->config_methods) in wpa_supplicant_conf_ap()
434 bss->config_methods = os_strdup(wpa_s->conf->config_methods); in wpa_supplicant_conf_ap()
435 os_memcpy(bss->device_type, wpa_s->conf->device_type, in wpa_supplicant_conf_ap()
437 if (wpa_s->conf->device_name) { in wpa_supplicant_conf_ap()
438 bss->device_name = os_strdup(wpa_s->conf->device_name); in wpa_supplicant_conf_ap()
439 bss->friendly_name = os_strdup(wpa_s->conf->device_name); in wpa_supplicant_conf_ap()
441 if (wpa_s->conf->manufacturer) in wpa_supplicant_conf_ap()
442 bss->manufacturer = os_strdup(wpa_s->conf->manufacturer); in wpa_supplicant_conf_ap()
443 if (wpa_s->conf->model_name) in wpa_supplicant_conf_ap()
444 bss->model_name = os_strdup(wpa_s->conf->model_name); in wpa_supplicant_conf_ap()
445 if (wpa_s->conf->model_number) in wpa_supplicant_conf_ap()
446 bss->model_number = os_strdup(wpa_s->conf->model_number); in wpa_supplicant_conf_ap()
447 if (wpa_s->conf->serial_number) in wpa_supplicant_conf_ap()
448 bss->serial_number = os_strdup(wpa_s->conf->serial_number); in wpa_supplicant_conf_ap()
449 if (is_nil_uuid(wpa_s->conf->uuid)) in wpa_supplicant_conf_ap()
452 os_memcpy(bss->uuid, wpa_s->conf->uuid, WPS_UUID_LEN); in wpa_supplicant_conf_ap()
453 os_memcpy(bss->os_version, wpa_s->conf->os_version, 4); in wpa_supplicant_conf_ap()
454 bss->pbc_in_m1 = wpa_s->conf->pbc_in_m1; in wpa_supplicant_conf_ap()
461 wpa_s->max_stations < wpa_s->conf->max_num_sta) in wpa_supplicant_conf_ap()
464 bss->max_num_sta = wpa_s->conf->max_num_sta; in wpa_supplicant_conf_ap()
466 bss->disassoc_low_ack = wpa_s->conf->disassoc_low_ack; in wpa_supplicant_conf_ap()
468 if (wpa_s->conf->ap_vendor_elements) { in wpa_supplicant_conf_ap()
470 wpabuf_dup(wpa_s->conf->ap_vendor_elements); in wpa_supplicant_conf_ap()
473 bss->ftm_responder = wpa_s->conf->ftm_responder; in wpa_supplicant_conf_ap()
474 bss->ftm_initiator = wpa_s->conf->ftm_initiator; in wpa_supplicant_conf_ap()
608 struct hostapd_config *conf; in wpa_supplicant_create_ap() local
691 wpa_s->ap_iface->conf = conf = hostapd_config_defaults(); in wpa_supplicant_create_ap()
692 if (conf == NULL) { in wpa_supplicant_create_ap()
699 conf->vht_oper_chwidth = ssid->max_oper_chwidth; in wpa_supplicant_create_ap()
702 &conf->vht_oper_centr_freq_seg1_idx); in wpa_supplicant_create_ap()
704 os_memcpy(wpa_s->ap_iface->conf->wmm_ac_params, in wpa_supplicant_create_ap()
705 wpa_s->conf->wmm_ac_params, in wpa_supplicant_create_ap()
706 sizeof(wpa_s->conf->wmm_ac_params)); in wpa_supplicant_create_ap()
709 conf->bss[0]->wmm_enabled = 1; in wpa_supplicant_create_ap()
710 conf->bss[0]->wmm_uapsd = 1; in wpa_supplicant_create_ap()
713 if (wpa_supplicant_conf_ap(wpa_s, ssid, conf)) { in wpa_supplicant_create_ap()
721 conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER; in wpa_supplicant_create_ap()
723 conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER | in wpa_supplicant_create_ap()
727 hapd_iface->num_bss = conf->num_bss; in wpa_supplicant_create_ap()
728 hapd_iface->bss = os_calloc(conf->num_bss, in wpa_supplicant_create_ap()
735 for (i = 0; i < conf->num_bss; i++) { in wpa_supplicant_create_ap()
737 hostapd_alloc_bss_data(hapd_iface, conf, in wpa_supplicant_create_ap()
738 conf->bss[i]); in wpa_supplicant_create_ap()
995 os_free(hapd->conf->ap_pin); in wpas_wps_ap_pin_disable()
996 hapd->conf->ap_pin = NULL; in wpas_wps_ap_pin_disable()
1013 os_free(hapd->conf->ap_pin); in wpas_wps_ap_pin_random()
1014 hapd->conf->ap_pin = os_strdup(pin_txt); in wpas_wps_ap_pin_random()
1015 if (hapd->conf->ap_pin == NULL) in wpas_wps_ap_pin_random()
1019 return hapd->conf->ap_pin; in wpas_wps_ap_pin_random()
1029 return hapd->conf->ap_pin; in wpas_wps_ap_pin_get()
1046 os_free(hapd->conf->ap_pin); in wpas_wps_ap_pin_set()
1047 hapd->conf->ap_pin = os_strdup(pin_txt); in wpas_wps_ap_pin_set()
1048 if (hapd->conf->ap_pin == NULL) in wpas_wps_ap_pin_set()
1076 os_free(hapd->conf->ap_pin); in wpa_supplicant_ap_pwd_auth_fail()
1077 hapd->conf->ap_pin = NULL; in wpa_supplicant_ap_pwd_auth_fail()
1196 struct hostapd_bss_config *conf; in ap_ctrl_iface_wpa_get_status() local
1201 conf = wpa_s->ap_iface->bss[0]->conf; in ap_ctrl_iface_wpa_get_status()
1202 if (conf->wpa == 0) in ap_ctrl_iface_wpa_get_status()
1209 wpa_cipher_txt(conf->rsn_pairwise), in ap_ctrl_iface_wpa_get_status()
1210 wpa_cipher_txt(conf->wpa_group), in ap_ctrl_iface_wpa_get_status()
1211 wpa_key_mgmt_txt(conf->wpa_key_mgmt, in ap_ctrl_iface_wpa_get_status()
1212 conf->wpa)); in ap_ctrl_iface_wpa_get_status()
1235 iface->conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER; in wpa_supplicant_ap_update_beacon()
1237 iface->conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER | in wpa_supplicant_ap_update_beacon()
1297 struct hostapd_bss_config *conf; in wpa_supplicant_ap_mac_addr_filter() local
1309 conf = hapd->conf; in wpa_supplicant_ap_mac_addr_filter()
1311 os_free(conf->accept_mac); in wpa_supplicant_ap_mac_addr_filter()
1312 conf->accept_mac = NULL; in wpa_supplicant_ap_mac_addr_filter()
1313 conf->num_accept_mac = 0; in wpa_supplicant_ap_mac_addr_filter()
1314 os_free(conf->deny_mac); in wpa_supplicant_ap_mac_addr_filter()
1315 conf->deny_mac = NULL; in wpa_supplicant_ap_mac_addr_filter()
1316 conf->num_deny_mac = 0; in wpa_supplicant_ap_mac_addr_filter()
1319 conf->macaddr_acl = ACCEPT_UNLESS_DENIED; in wpa_supplicant_ap_mac_addr_filter()
1323 conf->macaddr_acl = DENY_UNLESS_ACCEPTED; in wpa_supplicant_ap_mac_addr_filter()
1324 conf->accept_mac = os_zalloc(sizeof(struct mac_acl_entry)); in wpa_supplicant_ap_mac_addr_filter()
1325 if (conf->accept_mac == NULL) in wpa_supplicant_ap_mac_addr_filter()
1327 os_memcpy(conf->accept_mac[0].addr, addr, ETH_ALEN); in wpa_supplicant_ap_mac_addr_filter()
1328 conf->num_accept_mac = 1; in wpa_supplicant_ap_mac_addr_filter()
1346 if (wpa_s->p2pdev->conf->wps_nfc_dh_pubkey == NULL || in wpas_ap_wps_add_nfc_pw()
1347 wpa_s->p2pdev->conf->wps_nfc_dh_privkey == NULL) { in wpas_ap_wps_add_nfc_pw()
1356 wpa_s->p2pdev->conf->wps_nfc_dh_privkey); in wpas_ap_wps_add_nfc_pw()
1358 wpa_s->p2pdev->conf->wps_nfc_dh_pubkey); in wpas_ap_wps_add_nfc_pw()