• Home
  • Raw
  • Download

Lines Matching refs:conf

45 		if (hapd->conf->radio_measurements[i])  in hostapd_eid_rm_enabled_capab()
54 os_memcpy(eid, hapd->conf->radio_measurements, RRM_CAPABILITIES_IE_LEN); in hostapd_eid_rm_enabled_capab()
66 if (hapd->conf->bss_load_test_set) { in hostapd_eid_bss_load()
69 os_memcpy(eid, hapd->conf->bss_load_test, 5); in hostapd_eid_bss_load()
74 if (hapd->conf->bss_load_update_period) { in hostapd_eid_bss_load()
390 if (hapd->conf->vendor_elements) in hostapd_gen_probe_resp()
391 buflen += wpabuf_len(hapd->conf->vendor_elements); in hostapd_gen_probe_resp()
392 if (hapd->conf->vendor_vht) { in hostapd_gen_probe_resp()
430 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp()
431 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_gen_probe_resp()
432 pos += hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp()
458 if (hapd->conf->wpa != WPA_PROTO_WPA) in hostapd_gen_probe_resp()
500 if (hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac) { in hostapd_gen_probe_resp()
519 if (hapd->conf->vendor_vht) in hostapd_gen_probe_resp()
524 if (hapd->conf->wpa == WPA_PROTO_WPA) in hostapd_gen_probe_resp()
531 if (hapd->conf->wps_state && hapd->wps_probe_resp_ie) { in hostapd_gen_probe_resp()
539 if ((hapd->conf->p2p & P2P_ENABLED) && is_p2p && in hostapd_gen_probe_resp()
547 if ((hapd->conf->p2p & (P2P_MANAGE | P2P_ENABLED | P2P_GROUP_OWNER)) == in hostapd_gen_probe_resp()
560 if (hapd->conf->vendor_elements) { in hostapd_gen_probe_resp()
561 os_memcpy(pos, wpabuf_head(hapd->conf->vendor_elements), in hostapd_gen_probe_resp()
562 wpabuf_len(hapd->conf->vendor_elements)); in hostapd_gen_probe_resp()
563 pos += wpabuf_len(hapd->conf->vendor_elements); in hostapd_gen_probe_resp()
587 if (ssid_len == hapd->conf->ssid.ssid_len && in ssid_match()
588 os_memcmp(ssid, hapd->conf->ssid.ssid, ssid_len) == 0) in ssid_match()
601 if (pos[1] == hapd->conf->ssid.ssid_len && in ssid_match()
602 os_memcmp(pos + 2, hapd->conf->ssid.ssid, pos[1]) == 0) in ssid_match()
624 iface->conf->track_sta_max_age)) in sta_track_expire()
629 MACSTR, iface->bss[0]->conf->iface, in sta_track_expire()
673 if (iface->num_sta_seen >= iface->conf->track_sta_max_num) { in sta_track_add()
679 MACSTR, iface->bss[0]->conf->iface, MAC2STR(addr)); in sta_track_add()
698 if (os_strcmp(ifname, hapd->conf->iface) == 0) in sta_track_seen_on()
772 if (!hapd->conf->send_probe_response) in handle_probe_req()
836 if (hapd->conf->ignore_broadcast_ssid && elems.ssid_len == 0 && in handle_probe_req()
844 if ((hapd->conf->p2p & P2P_GROUP_OWNER) && in handle_probe_req()
883 if (hapd->conf->interworking && in handle_probe_req()
887 ant != hapd->conf->access_network_type) { in handle_probe_req()
895 if (hapd->conf->interworking && elems.interworking && in handle_probe_req()
903 os_memcmp(hessid, hapd->conf->hessid, ETH_ALEN) != 0) { in handle_probe_req()
914 if ((hapd->conf->p2p & P2P_GROUP_OWNER) && in handle_probe_req()
927 if (hapd->conf->no_probe_resp_if_seen_on && in handle_probe_req()
931 hapd->conf->no_probe_resp_if_seen_on)) { in handle_probe_req()
934 hapd->conf->iface, MAC2STR(mgmt->sa), in handle_probe_req()
935 hapd->conf->no_probe_resp_if_seen_on); in handle_probe_req()
939 if (hapd->conf->no_probe_resp_if_max_sta && in handle_probe_req()
942 hapd->num_sta >= hapd->conf->max_num_sta && in handle_probe_req()
946 hapd->conf->iface, MAC2STR(mgmt->sa)); in handle_probe_req()
1009 if (hapd->conf->wps_state && hapd->wps_probe_resp_ie && in hostapd_probe_resp_offloads()
1018 if ((hapd->conf->p2p & P2P_ENABLED) && hapd->p2p_probe_resp_ie && in hostapd_probe_resp_offloads()
1025 if (hapd->conf->interworking && in hostapd_probe_resp_offloads()
1066 if (hapd->conf->wps_state && hapd->wps_beacon_ie) in ieee802_11_build_ap_params()
1077 if (hapd->conf->vendor_elements) in ieee802_11_build_ap_params()
1078 tail_len += wpabuf_len(hapd->conf->vendor_elements); in ieee802_11_build_ap_params()
1081 if (hapd->conf->vendor_vht) { in ieee802_11_build_ap_params()
1123 if (hapd->conf->ignore_broadcast_ssid == 2) { in ieee802_11_build_ap_params()
1125 *pos++ = hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1126 os_memset(pos, 0, hapd->conf->ssid.ssid_len); in ieee802_11_build_ap_params()
1127 pos += hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1128 } else if (hapd->conf->ignore_broadcast_ssid) { in ieee802_11_build_ap_params()
1131 *pos++ = hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1132 os_memcpy(pos, hapd->conf->ssid.ssid, in ieee802_11_build_ap_params()
1133 hapd->conf->ssid.ssid_len); in ieee802_11_build_ap_params()
1134 pos += hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1164 if (hapd->conf->wpa != WPA_PROTO_WPA) in ieee802_11_build_ap_params()
1214 if (hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac) { in ieee802_11_build_ap_params()
1233 if (hapd->conf->vendor_vht) in ieee802_11_build_ap_params()
1238 if (hapd->conf->wpa == WPA_PROTO_WPA) in ieee802_11_build_ap_params()
1247 if (hapd->conf->wps_state && hapd->wps_beacon_ie) { in ieee802_11_build_ap_params()
1255 if ((hapd->conf->p2p & P2P_ENABLED) && hapd->p2p_beacon_ie) { in ieee802_11_build_ap_params()
1262 if ((hapd->conf->p2p & (P2P_MANAGE | P2P_ENABLED | P2P_GROUP_OWNER)) == in ieee802_11_build_ap_params()
1276 if (hapd->conf->vendor_elements) { in ieee802_11_build_ap_params()
1277 os_memcpy(tailpos, wpabuf_head(hapd->conf->vendor_elements), in ieee802_11_build_ap_params()
1278 wpabuf_len(hapd->conf->vendor_elements)); in ieee802_11_build_ap_params()
1279 tailpos += wpabuf_len(hapd->conf->vendor_elements); in ieee802_11_build_ap_params()
1294 params->dtim_period = hapd->conf->dtim_period; in ieee802_11_build_ap_params()
1299 params->ssid = hapd->conf->ssid.ssid; in ieee802_11_build_ap_params()
1300 params->ssid_len = hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1301 if ((hapd->conf->wpa & (WPA_PROTO_WPA | WPA_PROTO_RSN)) == in ieee802_11_build_ap_params()
1303 params->pairwise_ciphers = hapd->conf->wpa_pairwise | in ieee802_11_build_ap_params()
1304 hapd->conf->rsn_pairwise; in ieee802_11_build_ap_params()
1305 else if (hapd->conf->wpa & WPA_PROTO_RSN) in ieee802_11_build_ap_params()
1306 params->pairwise_ciphers = hapd->conf->rsn_pairwise; in ieee802_11_build_ap_params()
1307 else if (hapd->conf->wpa & WPA_PROTO_WPA) in ieee802_11_build_ap_params()
1308 params->pairwise_ciphers = hapd->conf->wpa_pairwise; in ieee802_11_build_ap_params()
1309 params->group_cipher = hapd->conf->wpa_group; in ieee802_11_build_ap_params()
1310 params->key_mgmt_suites = hapd->conf->wpa_key_mgmt; in ieee802_11_build_ap_params()
1311 params->auth_algs = hapd->conf->auth_algs; in ieee802_11_build_ap_params()
1312 params->wpa_version = hapd->conf->wpa; in ieee802_11_build_ap_params()
1313 params->privacy = hapd->conf->ssid.wep.keys_set || hapd->conf->wpa || in ieee802_11_build_ap_params()
1314 (hapd->conf->ieee802_1x && in ieee802_11_build_ap_params()
1315 (hapd->conf->default_wep_key_len || in ieee802_11_build_ap_params()
1316 hapd->conf->individual_wep_key_len)); in ieee802_11_build_ap_params()
1317 switch (hapd->conf->ignore_broadcast_ssid) { in ieee802_11_build_ap_params()
1328 params->isolate = hapd->conf->isolate; in ieee802_11_build_ap_params()
1341 if (!hapd->iconf->ieee80211n || hapd->conf->disable_11n) in ieee802_11_build_ap_params()
1346 params->interworking = hapd->conf->interworking; in ieee802_11_build_ap_params()
1347 if (hapd->conf->interworking && in ieee802_11_build_ap_params()
1348 !is_zero_ether_addr(hapd->conf->hessid)) in ieee802_11_build_ap_params()
1349 params->hessid = hapd->conf->hessid; in ieee802_11_build_ap_params()
1350 params->access_network_type = hapd->conf->access_network_type; in ieee802_11_build_ap_params()
1351 params->ap_max_inactivity = hapd->conf->ap_max_inactivity; in ieee802_11_build_ap_params()
1356 params->disable_dgaf = hapd->conf->disable_dgaf; in ieee802_11_build_ap_params()
1357 if (hapd->conf->osen) { in ieee802_11_build_ap_params()
1362 params->multicast_to_unicast = hapd->conf->multicast_to_unicast; in ieee802_11_build_ap_params()
1363 params->pbss = hapd->conf->pbss; in ieee802_11_build_ap_params()
1365 if (hapd->conf->ftm_responder) { in ieee802_11_build_ap_params()
1368 params->lci = hapd->iface->conf->lci; in ieee802_11_build_ap_params()
1369 params->civic = hapd->iface->conf->civic; in ieee802_11_build_ap_params()
1396 struct hostapd_config *iconf = iface->conf; in ieee802_11_set_beacon()