Lines Matching refs:conf
39 if (!hapd->conf->radio_measurements || len < 2 + 4)
44 *eid++ = (hapd->conf->radio_measurements & BIT(0)) ?
60 if (hapd->conf->bss_load_test_set) {
63 os_memcpy(eid, hapd->conf->bss_load_test, 5);
68 if (hapd->conf->bss_load_update_period) {
384 if (hapd->conf->vendor_elements)
385 buflen += wpabuf_len(hapd->conf->vendor_elements);
386 if (hapd->conf->vendor_vht) {
415 *pos++ = hapd->conf->ssid.ssid_len;
416 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len);
417 pos += hapd->conf->ssid.ssid_len;
484 if (hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac) {
490 if (hapd->conf->vendor_vht)
498 if (hapd->conf->wps_state && hapd->wps_probe_resp_ie) {
506 if ((hapd->conf->p2p & P2P_ENABLED) && is_p2p &&
514 if ((hapd->conf->p2p & (P2P_MANAGE | P2P_ENABLED | P2P_GROUP_OWNER)) ==
526 if (hapd->conf->vendor_elements) {
527 os_memcpy(pos, wpabuf_head(hapd->conf->vendor_elements),
528 wpabuf_len(hapd->conf->vendor_elements));
529 pos += wpabuf_len(hapd->conf->vendor_elements);
553 if (ssid_len == hapd->conf->ssid.ssid_len &&
554 os_memcmp(ssid, hapd->conf->ssid.ssid, ssid_len) == 0)
567 if (pos[1] == hapd->conf->ssid.ssid_len &&
568 os_memcmp(pos + 2, hapd->conf->ssid.ssid, pos[1]) == 0)
590 iface->conf->track_sta_max_age))
595 MACSTR, iface->bss[0]->conf->iface,
635 if (iface->num_sta_seen >= iface->conf->track_sta_max_num) {
641 MACSTR, iface->bss[0]->conf->iface, MAC2STR(addr));
660 if (os_strcmp(ifname, hapd->conf->iface) == 0)
765 if (hapd->conf->ignore_broadcast_ssid && elems.ssid_len == 0 &&
773 if ((hapd->conf->p2p & P2P_GROUP_OWNER) &&
797 if (hapd->conf->interworking &&
801 ant != hapd->conf->access_network_type) {
809 if (hapd->conf->interworking && elems.interworking &&
817 os_memcmp(hessid, hapd->conf->hessid, ETH_ALEN) != 0) {
828 if ((hapd->conf->p2p & P2P_GROUP_OWNER) &&
841 if (hapd->conf->no_probe_resp_if_seen_on &&
845 hapd->conf->no_probe_resp_if_seen_on)) {
848 hapd->conf->iface, MAC2STR(mgmt->sa),
849 hapd->conf->no_probe_resp_if_seen_on);
853 if (hapd->conf->no_probe_resp_if_max_sta &&
856 hapd->num_sta >= hapd->conf->max_num_sta &&
860 hapd->conf->iface, MAC2STR(mgmt->sa));
920 if (hapd->conf->wps_state && hapd->wps_probe_resp_ie &&
929 if ((hapd->conf->p2p & P2P_ENABLED) && hapd->p2p_probe_resp_ie &&
936 if (hapd->conf->interworking &&
967 if (hapd->conf->wps_state && hapd->wps_beacon_ie)
978 if (hapd->conf->vendor_elements)
979 tail_len += wpabuf_len(hapd->conf->vendor_elements);
982 if (hapd->conf->vendor_vht) {
1015 if (hapd->conf->ignore_broadcast_ssid == 2) {
1017 *pos++ = hapd->conf->ssid.ssid_len;
1018 os_memset(pos, 0, hapd->conf->ssid.ssid_len);
1019 pos += hapd->conf->ssid.ssid_len;
1020 } else if (hapd->conf->ignore_broadcast_ssid) {
1023 *pos++ = hapd->conf->ssid.ssid_len;
1024 os_memcpy(pos, hapd->conf->ssid.ssid,
1025 hapd->conf->ssid.ssid_len);
1026 pos += hapd->conf->ssid.ssid_len;
1104 if (hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac) {
1110 if (hapd->conf->vendor_vht)
1118 if (hapd->conf->wps_state && hapd->wps_beacon_ie) {
1126 if ((hapd->conf->p2p & P2P_ENABLED) && hapd->p2p_beacon_ie) {
1133 if ((hapd->conf->p2p & (P2P_MANAGE | P2P_ENABLED | P2P_GROUP_OWNER)) ==
1145 if (hapd->conf->vendor_elements) {
1146 os_memcpy(tailpos, wpabuf_head(hapd->conf->vendor_elements),
1147 wpabuf_len(hapd->conf->vendor_elements));
1148 tailpos += wpabuf_len(hapd->conf->vendor_elements);
1163 params->dtim_period = hapd->conf->dtim_period;
1166 params->ssid = hapd->conf->ssid.ssid;
1167 params->ssid_len = hapd->conf->ssid.ssid_len;
1168 if ((hapd->conf->wpa & (WPA_PROTO_WPA | WPA_PROTO_RSN)) ==
1170 params->pairwise_ciphers = hapd->conf->wpa_pairwise |
1171 hapd->conf->rsn_pairwise;
1172 else if (hapd->conf->wpa & WPA_PROTO_RSN)
1173 params->pairwise_ciphers = hapd->conf->rsn_pairwise;
1174 else if (hapd->conf->wpa & WPA_PROTO_WPA)
1175 params->pairwise_ciphers = hapd->conf->wpa_pairwise;
1176 params->group_cipher = hapd->conf->wpa_group;
1177 params->key_mgmt_suites = hapd->conf->wpa_key_mgmt;
1178 params->auth_algs = hapd->conf->auth_algs;
1179 params->wpa_version = hapd->conf->wpa;
1180 conf->ssid.wep.keys_set || hapd->conf->wpa ||
1181 (hapd->conf->ieee802_1x &&
1182 (hapd->conf->default_wep_key_len ||
1183 hapd->conf->individual_wep_key_len));
1184 switch (hapd->conf->ignore_broadcast_ssid) {
1195 params->isolate = hapd->conf->isolate;
1208 if (!hapd->iconf->ieee80211n || hapd->conf->disable_11n)
1213 params->interworking = hapd->conf->interworking;
1214 if (hapd->conf->interworking &&
1215 !is_zero_ether_addr(hapd->conf->hessid))
1216 params->hessid = hapd->conf->hessid;
1217 params->access_network_type = hapd->conf->access_network_type;
1218 params->ap_max_inactivity = hapd->conf->ap_max_inactivity;
1223 params->disable_dgaf = hapd->conf->disable_dgaf;
1224 if (hapd->conf->osen) {
1229 params->pbss = hapd->conf->pbss;
1250 struct hostapd_config *iconf = iface->conf;