Lines Matching full:conf

46 	if (hapd->conf->assoc_sa_query_max_timeout > tu)  in hostapd_eid_assoc_comeback_time()
47 timeout = hapd->conf->assoc_sa_query_max_timeout - tu; in hostapd_eid_assoc_comeback_time()
50 if (timeout < hapd->conf->assoc_sa_query_max_timeout) in hostapd_eid_assoc_comeback_time()
54 if (hapd->conf->test_assoc_comeback_type != -1) in hostapd_eid_assoc_comeback_time()
55 type = hapd->conf->test_assoc_comeback_type; in hostapd_eid_assoc_comeback_time()
89 if (hapd->conf->oci_freq_override_saquery_req) { in ieee802_11_send_sa_query_req()
93 hapd->conf->oci_freq_override_saquery_req); in ieee802_11_send_sa_query_req()
95 hapd->conf->oci_freq_override_saquery_req; in ieee802_11_send_sa_query_req()
184 if (hapd->conf->oci_freq_override_saquery_resp) { in ieee802_11_send_sa_query_resp()
188 hapd->conf->oci_freq_override_saquery_resp); in ieee802_11_send_sa_query_resp()
190 hapd->conf->oci_freq_override_saquery_resp; in ieee802_11_send_sa_query_resp()
378 if (hapd->conf->proxy_arp) in hostapd_ext_capab_byte()
380 if (hapd->conf->coloc_intf_reporting) { in hostapd_ext_capab_byte()
386 if (hapd->conf->wnm_sleep_mode) in hostapd_ext_capab_byte()
388 if (hapd->conf->bss_transition) in hostapd_ext_capab_byte()
397 if (hapd->conf->time_advertisement == 2) in hostapd_ext_capab_byte()
399 if (hapd->conf->interworking) in hostapd_ext_capab_byte()
403 if (hapd->conf->qos_map_set_len) in hostapd_ext_capab_byte()
405 if (hapd->conf->tdls & TDLS_PROHIBIT) in hostapd_ext_capab_byte()
407 if (hapd->conf->tdls & TDLS_PROHIBIT_CHAN_SWITCH) { in hostapd_ext_capab_byte()
414 if (hapd->conf->hs20) in hostapd_ext_capab_byte()
418 if (hapd->conf->mbo_enabled) in hostapd_ext_capab_byte()
423 if (hapd->conf->ssid.utf8_ssid) in hostapd_ext_capab_byte()
429 if (hapd->conf->ftm_responder) in hostapd_ext_capab_byte()
431 if (hapd->conf->ftm_initiator) in hostapd_ext_capab_byte()
436 if ((hapd->conf->wpa & WPA_PROTO_RSN) && in hostapd_ext_capab_byte()
437 wpa_key_mgmt_fils(hapd->conf->wpa_key_mgmt)) in hostapd_ext_capab_byte()
449 if (hapd->conf->wpa && in hostapd_ext_capab_byte()
450 wpa_key_mgmt_sae(hapd->conf->wpa_key_mgmt)) { in hostapd_ext_capab_byte()
451 int in_use = hostapd_sae_pw_id_in_use(hapd->conf); in hostapd_ext_capab_byte()
461 if (hapd->conf->beacon_prot && in hostapd_ext_capab_byte()
473 if (hapd->conf->wpa && in hostapd_ext_capab_byte()
474 wpa_key_mgmt_sae(hapd->conf->wpa_key_mgmt) && in hostapd_ext_capab_byte()
475 hostapd_sae_pk_exclusively(hapd->conf)) in hostapd_ext_capab_byte()
503 *pos &= ~hapd->conf->ext_capa_mask[i]; in hostapd_eid_ext_capab()
504 *pos |= hapd->conf->ext_capa[i]; in hostapd_eid_ext_capab()
529 u8 len = hapd->conf->qos_map_set_len; in hostapd_eid_qos_map_set()
536 os_memcpy(pos, hapd->conf->qos_map_set, len); in hostapd_eid_qos_map_set()
549 if (!hapd->conf->interworking) in hostapd_eid_interworking()
555 *pos = hapd->conf->access_network_type; in hostapd_eid_interworking()
556 if (hapd->conf->internet) in hostapd_eid_interworking()
558 if (hapd->conf->asra) in hostapd_eid_interworking()
560 if (hapd->conf->esr) in hostapd_eid_interworking()
562 if (hapd->conf->uesa) in hostapd_eid_interworking()
566 if (hapd->conf->venue_info_set) { in hostapd_eid_interworking()
567 *pos++ = hapd->conf->venue_group; in hostapd_eid_interworking()
568 *pos++ = hapd->conf->venue_type; in hostapd_eid_interworking()
571 if (!is_zero_ether_addr(hapd->conf->hessid)) { in hostapd_eid_interworking()
572 os_memcpy(pos, hapd->conf->hessid, ETH_ALEN); in hostapd_eid_interworking()
589 if (!hapd->conf->interworking) in hostapd_eid_adv_proto()
609 if (!hapd->conf->interworking || in hostapd_eid_roaming_consortium()
610 hapd->conf->roaming_consortium == NULL || in hostapd_eid_roaming_consortium()
611 hapd->conf->roaming_consortium_count == 0) in hostapd_eid_roaming_consortium()
618 if (hapd->conf->roaming_consortium_count > 3 + 255) in hostapd_eid_roaming_consortium()
620 else if (hapd->conf->roaming_consortium_count > 3) in hostapd_eid_roaming_consortium()
621 *pos++ = hapd->conf->roaming_consortium_count - 3; in hostapd_eid_roaming_consortium()
626 *pos = hapd->conf->roaming_consortium[0].len; in hostapd_eid_roaming_consortium()
627 if (hapd->conf->roaming_consortium_count > 1) in hostapd_eid_roaming_consortium()
628 *pos |= hapd->conf->roaming_consortium[1].len << 4; in hostapd_eid_roaming_consortium()
631 if (hapd->conf->roaming_consortium_count > 3) in hostapd_eid_roaming_consortium()
634 count = hapd->conf->roaming_consortium_count; in hostapd_eid_roaming_consortium()
637 os_memcpy(pos, hapd->conf->roaming_consortium[i].oi, in hostapd_eid_roaming_consortium()
638 hapd->conf->roaming_consortium[i].len); in hostapd_eid_roaming_consortium()
639 pos += hapd->conf->roaming_consortium[i].len; in hostapd_eid_roaming_consortium()
651 if (hapd->conf->time_advertisement != 2) in hostapd_eid_time_adv()
673 if (hapd->conf->time_advertisement != 2 || !hapd->conf->time_zone) in hostapd_eid_time_zone()
676 len = os_strlen(hapd->conf->time_zone); in hostapd_eid_time_zone()
680 os_memcpy(eid, hapd->conf->time_zone, len); in hostapd_eid_time_zone()
694 if (hapd->conf->time_advertisement != 2) in hostapd_update_time_adv()
746 if (hapd->conf->ap_max_inactivity > 0 && in hostapd_eid_bss_max_idle_period()
747 hapd->conf->bss_max_idle) { in hostapd_eid_bss_max_idle_period()
751 val = hapd->conf->ap_max_inactivity; in hostapd_eid_bss_max_idle_period()
766 *pos++ = hapd->conf->bss_max_idle == 2 ? BIT(0) : 0x00; in hostapd_eid_bss_max_idle_period()
797 if (!hapd->conf->mbo_enabled && in hostapd_eid_mbo()
801 if (hapd->conf->mbo_enabled) { in hostapd_eid_mbo()
808 if (hapd->conf->mbo_enabled && hapd->mbo_assoc_disallow) { in hostapd_eid_mbo()
836 if (!hapd->conf->mbo_enabled && in hostapd_mbo_ie_len()
845 if (hapd->conf->mbo_enabled) in hostapd_mbo_ie_len()
861 return hapd->conf->owe_transition_ssid_len > 0 && in hostapd_eid_owe_trans_enabled()
862 !is_zero_ether_addr(hapd->conf->owe_transition_bssid); in hostapd_eid_owe_trans_enabled()
872 return 6 + ETH_ALEN + 1 + hapd->conf->owe_transition_ssid_len; in hostapd_eid_owe_trans_len()
886 if (hapd->conf->owe_transition_ifname[0] && in hostapd_eid_owe_trans()
905 os_memcpy(pos, hapd->conf->owe_transition_bssid, ETH_ALEN); in hostapd_eid_owe_trans()
907 *pos++ = hapd->conf->owe_transition_ssid_len; in hostapd_eid_owe_trans()
908 os_memcpy(pos, hapd->conf->owe_transition_ssid, in hostapd_eid_owe_trans()
909 hapd->conf->owe_transition_ssid_len); in hostapd_eid_owe_trans()
910 pos += hapd->conf->owe_transition_ssid_len; in hostapd_eid_owe_trans()
974 if (!(hapd->conf->wpa & WPA_PROTO_RSN) || in hostapd_eid_fils_indic()
975 !wpa_key_mgmt_fils(hapd->conf->wpa_key_mgmt)) in hostapd_eid_fils_indic()
978 realms = dl_list_len(&hapd->conf->fils_realms); in hostapd_eid_fils_indic()
985 if (hapd->conf->erp_domain) { in hostapd_eid_fils_indic()
990 if (hapd->conf->fils_cache_id_set) in hostapd_eid_fils_indic()
992 if (hessid && !is_zero_ether_addr(hapd->conf->hessid)) in hostapd_eid_fils_indic()
996 if (hapd->conf->fils_dh_group) { in hostapd_eid_fils_indic()
1004 if (hapd->conf->fils_cache_id_set) { in hostapd_eid_fils_indic()
1005 os_memcpy(pos, hapd->conf->fils_cache_id, FILS_CACHE_ID_LEN); in hostapd_eid_fils_indic()
1008 if (hessid && !is_zero_ether_addr(hapd->conf->hessid)) { in hostapd_eid_fils_indic()
1009 os_memcpy(pos, hapd->conf->hessid, ETH_ALEN); in hostapd_eid_fils_indic()
1013 dl_list_for_each(realm, &hapd->conf->fils_realms, struct fils_realm, in hostapd_eid_fils_indic()
1103 if (!(hapd->conf->wpa & WPA_PROTO_RSN)) in hostapd_eid_rsnxe()
1107 sae_pk = hostapd_sae_pk_in_use(hapd->conf); in hostapd_eid_rsnxe()
1110 if (wpa_key_mgmt_sae(hapd->conf->wpa_key_mgmt) && in hostapd_eid_rsnxe()
1111 (hapd->conf->sae_pwe == SAE_PWE_HASH_TO_ELEMENT || in hostapd_eid_rsnxe()
1112 hapd->conf->sae_pwe == SAE_PWE_BOTH || in hostapd_eid_rsnxe()
1113 hostapd_sae_pw_id_in_use(hapd->conf) || sae_pk || in hostapd_eid_rsnxe()
1114 wpa_key_mgmt_sae_ext_key(hapd->conf->wpa_key_mgmt)) && in hostapd_eid_rsnxe()
1115 hapd->conf->sae_pwe != SAE_PWE_FORCE_HUNT_AND_PECK) { in hostapd_eid_rsnxe()
1129 if (hapd->conf->ssid_protection) in hostapd_eid_rsnxe()
1224 ((hapd->iconf->ieee80211n && !hapd->conf->disable_11n) || in hostapd_get_ht_vht_twt_responder()
1225 (hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac)) && in hostapd_get_ht_vht_twt_responder()