• Home
  • Raw
  • Download

Lines Matching refs:conf

43 		if (hapd->conf->radio_measurements[i])  in hostapd_eid_rm_enabled_capab()
52 os_memcpy(eid, hapd->conf->radio_measurements, RRM_CAPABILITIES_IE_LEN); in hostapd_eid_rm_enabled_capab()
64 if (hapd->conf->bss_load_test_set) { in hostapd_eid_bss_load()
67 os_memcpy(eid, hapd->conf->bss_load_test, 5); in hostapd_eid_bss_load()
72 if (hapd->conf->bss_load_update_period) { in hostapd_eid_bss_load()
388 if (hapd->conf->vendor_elements) in hostapd_gen_probe_resp()
389 buflen += wpabuf_len(hapd->conf->vendor_elements); in hostapd_gen_probe_resp()
390 if (hapd->conf->vendor_vht) { in hostapd_gen_probe_resp()
426 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp()
427 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_gen_probe_resp()
428 pos += hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp()
495 if (hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac) { in hostapd_gen_probe_resp()
506 if (hapd->conf->vendor_vht) in hostapd_gen_probe_resp()
521 if (hapd->conf->wps_state && hapd->wps_probe_resp_ie) { in hostapd_gen_probe_resp()
529 if ((hapd->conf->p2p & P2P_ENABLED) && is_p2p && in hostapd_gen_probe_resp()
537 if ((hapd->conf->p2p & (P2P_MANAGE | P2P_ENABLED | P2P_GROUP_OWNER)) == in hostapd_gen_probe_resp()
549 if (hapd->conf->vendor_elements) { in hostapd_gen_probe_resp()
550 os_memcpy(pos, wpabuf_head(hapd->conf->vendor_elements), in hostapd_gen_probe_resp()
551 wpabuf_len(hapd->conf->vendor_elements)); in hostapd_gen_probe_resp()
552 pos += wpabuf_len(hapd->conf->vendor_elements); in hostapd_gen_probe_resp()
576 if (ssid_len == hapd->conf->ssid.ssid_len && in ssid_match()
577 os_memcmp(ssid, hapd->conf->ssid.ssid, ssid_len) == 0) in ssid_match()
590 if (pos[1] == hapd->conf->ssid.ssid_len && in ssid_match()
591 os_memcmp(pos + 2, hapd->conf->ssid.ssid, pos[1]) == 0) in ssid_match()
613 iface->conf->track_sta_max_age)) in sta_track_expire()
618 MACSTR, iface->bss[0]->conf->iface, in sta_track_expire()
662 if (iface->num_sta_seen >= iface->conf->track_sta_max_num) { in sta_track_add()
668 MACSTR, iface->bss[0]->conf->iface, MAC2STR(addr)); in sta_track_add()
687 if (os_strcmp(ifname, hapd->conf->iface) == 0) in sta_track_seen_on()
809 if (hapd->conf->ignore_broadcast_ssid && elems.ssid_len == 0 && in handle_probe_req()
817 if ((hapd->conf->p2p & P2P_GROUP_OWNER) && in handle_probe_req()
856 if (hapd->conf->interworking && in handle_probe_req()
860 ant != hapd->conf->access_network_type) { in handle_probe_req()
868 if (hapd->conf->interworking && elems.interworking && in handle_probe_req()
876 os_memcmp(hessid, hapd->conf->hessid, ETH_ALEN) != 0) { in handle_probe_req()
887 if ((hapd->conf->p2p & P2P_GROUP_OWNER) && in handle_probe_req()
900 if (hapd->conf->no_probe_resp_if_seen_on && in handle_probe_req()
904 hapd->conf->no_probe_resp_if_seen_on)) { in handle_probe_req()
907 hapd->conf->iface, MAC2STR(mgmt->sa), in handle_probe_req()
908 hapd->conf->no_probe_resp_if_seen_on); in handle_probe_req()
912 if (hapd->conf->no_probe_resp_if_max_sta && in handle_probe_req()
915 hapd->num_sta >= hapd->conf->max_num_sta && in handle_probe_req()
919 hapd->conf->iface, MAC2STR(mgmt->sa)); in handle_probe_req()
979 if (hapd->conf->wps_state && hapd->wps_probe_resp_ie && in hostapd_probe_resp_offloads()
988 if ((hapd->conf->p2p & P2P_ENABLED) && hapd->p2p_probe_resp_ie && in hostapd_probe_resp_offloads()
995 if (hapd->conf->interworking && in hostapd_probe_resp_offloads()
1036 if (hapd->conf->wps_state && hapd->wps_beacon_ie) in ieee802_11_build_ap_params()
1047 if (hapd->conf->vendor_elements) in ieee802_11_build_ap_params()
1048 tail_len += wpabuf_len(hapd->conf->vendor_elements); in ieee802_11_build_ap_params()
1051 if (hapd->conf->vendor_vht) { in ieee802_11_build_ap_params()
1091 if (hapd->conf->ignore_broadcast_ssid == 2) { in ieee802_11_build_ap_params()
1093 *pos++ = hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1094 os_memset(pos, 0, hapd->conf->ssid.ssid_len); in ieee802_11_build_ap_params()
1095 pos += hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1096 } else if (hapd->conf->ignore_broadcast_ssid) { in ieee802_11_build_ap_params()
1099 *pos++ = hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1100 os_memcpy(pos, hapd->conf->ssid.ssid, in ieee802_11_build_ap_params()
1101 hapd->conf->ssid.ssid_len); in ieee802_11_build_ap_params()
1102 pos += hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1180 if (hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac) { in ieee802_11_build_ap_params()
1191 if (hapd->conf->vendor_vht) in ieee802_11_build_ap_params()
1206 if (hapd->conf->wps_state && hapd->wps_beacon_ie) { in ieee802_11_build_ap_params()
1214 if ((hapd->conf->p2p & P2P_ENABLED) && hapd->p2p_beacon_ie) { in ieee802_11_build_ap_params()
1221 if ((hapd->conf->p2p & (P2P_MANAGE | P2P_ENABLED | P2P_GROUP_OWNER)) == in ieee802_11_build_ap_params()
1233 if (hapd->conf->vendor_elements) { in ieee802_11_build_ap_params()
1234 os_memcpy(tailpos, wpabuf_head(hapd->conf->vendor_elements), in ieee802_11_build_ap_params()
1235 wpabuf_len(hapd->conf->vendor_elements)); in ieee802_11_build_ap_params()
1236 tailpos += wpabuf_len(hapd->conf->vendor_elements); in ieee802_11_build_ap_params()
1251 params->dtim_period = hapd->conf->dtim_period; in ieee802_11_build_ap_params()
1256 params->ssid = hapd->conf->ssid.ssid; in ieee802_11_build_ap_params()
1257 params->ssid_len = hapd->conf->ssid.ssid_len; in ieee802_11_build_ap_params()
1258 if ((hapd->conf->wpa & (WPA_PROTO_WPA | WPA_PROTO_RSN)) == in ieee802_11_build_ap_params()
1260 params->pairwise_ciphers = hapd->conf->wpa_pairwise | in ieee802_11_build_ap_params()
1261 hapd->conf->rsn_pairwise; in ieee802_11_build_ap_params()
1262 else if (hapd->conf->wpa & WPA_PROTO_RSN) in ieee802_11_build_ap_params()
1263 params->pairwise_ciphers = hapd->conf->rsn_pairwise; in ieee802_11_build_ap_params()
1264 else if (hapd->conf->wpa & WPA_PROTO_WPA) in ieee802_11_build_ap_params()
1265 params->pairwise_ciphers = hapd->conf->wpa_pairwise; in ieee802_11_build_ap_params()
1266 params->group_cipher = hapd->conf->wpa_group; in ieee802_11_build_ap_params()
1267 params->key_mgmt_suites = hapd->conf->wpa_key_mgmt; in ieee802_11_build_ap_params()
1268 params->auth_algs = hapd->conf->auth_algs; in ieee802_11_build_ap_params()
1269 params->wpa_version = hapd->conf->wpa; in ieee802_11_build_ap_params()
1270 params->privacy = hapd->conf->ssid.wep.keys_set || hapd->conf->wpa || in ieee802_11_build_ap_params()
1271 (hapd->conf->ieee802_1x && in ieee802_11_build_ap_params()
1272 (hapd->conf->default_wep_key_len || in ieee802_11_build_ap_params()
1273 hapd->conf->individual_wep_key_len)); in ieee802_11_build_ap_params()
1274 switch (hapd->conf->ignore_broadcast_ssid) { in ieee802_11_build_ap_params()
1285 params->isolate = hapd->conf->isolate; in ieee802_11_build_ap_params()
1298 if (!hapd->iconf->ieee80211n || hapd->conf->disable_11n) in ieee802_11_build_ap_params()
1303 params->interworking = hapd->conf->interworking; in ieee802_11_build_ap_params()
1304 if (hapd->conf->interworking && in ieee802_11_build_ap_params()
1305 !is_zero_ether_addr(hapd->conf->hessid)) in ieee802_11_build_ap_params()
1306 params->hessid = hapd->conf->hessid; in ieee802_11_build_ap_params()
1307 params->access_network_type = hapd->conf->access_network_type; in ieee802_11_build_ap_params()
1308 params->ap_max_inactivity = hapd->conf->ap_max_inactivity; in ieee802_11_build_ap_params()
1313 params->disable_dgaf = hapd->conf->disable_dgaf; in ieee802_11_build_ap_params()
1314 if (hapd->conf->osen) { in ieee802_11_build_ap_params()
1319 params->multicast_to_unicast = hapd->conf->multicast_to_unicast; in ieee802_11_build_ap_params()
1320 params->pbss = hapd->conf->pbss; in ieee802_11_build_ap_params()
1341 struct hostapd_config *iconf = iface->conf; in ieee802_11_set_beacon()