• Home
  • Raw
  • Download

Lines Matching refs:bss

299 	struct hostapd_bss_config *bss = conf->bss[0];  in wpa_supplicant_conf_ap()  local
303 os_strlcpy(bss->iface, wpa_s->ifname, sizeof(bss->iface)); in wpa_supplicant_conf_ap()
313 bss->pbss = ssid->pbss; in wpa_supplicant_conf_ap()
367 bss->isolate = !wpa_s->conf->p2p_intra_bss; in wpa_supplicant_conf_ap()
368 bss->extended_key_id = wpa_s->conf->extended_key_id; in wpa_supplicant_conf_ap()
369 bss->force_per_enrollee_psk = wpa_s->global->p2p_per_sta_psk; in wpa_supplicant_conf_ap()
370 bss->wpa_deny_ptk0_rekey = ssid->wpa_deny_ptk0_rekey; in wpa_supplicant_conf_ap()
373 os_memcpy(bss->ip_addr_go, wpa_s->p2pdev->conf->ip_addr_go, 4); in wpa_supplicant_conf_ap()
374 os_memcpy(bss->ip_addr_mask, wpa_s->p2pdev->conf->ip_addr_mask, in wpa_supplicant_conf_ap()
376 os_memcpy(bss->ip_addr_start, in wpa_supplicant_conf_ap()
378 os_memcpy(bss->ip_addr_end, wpa_s->p2pdev->conf->ip_addr_end, in wpa_supplicant_conf_ap()
387 os_memcpy(bss->ssid.ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_conf_ap()
388 bss->ssid.ssid_len = ssid->ssid_len; in wpa_supplicant_conf_ap()
389 bss->ssid.ssid_set = 1; in wpa_supplicant_conf_ap()
391 bss->ignore_broadcast_ssid = ssid->ignore_broadcast_ssid; in wpa_supplicant_conf_ap()
394 bss->auth_algs = ssid->auth_alg; in wpa_supplicant_conf_ap()
397 bss->wpa = ssid->proto; in wpa_supplicant_conf_ap()
399 bss->wpa_key_mgmt = WPA_KEY_MGMT_PSK; in wpa_supplicant_conf_ap()
401 bss->wpa_key_mgmt = ssid->key_mgmt; in wpa_supplicant_conf_ap()
402 bss->wpa_pairwise = ssid->pairwise_cipher; in wpa_supplicant_conf_ap()
403 if (wpa_key_mgmt_sae(bss->wpa_key_mgmt) && ssid->passphrase) { in wpa_supplicant_conf_ap()
404 bss->ssid.wpa_passphrase = os_strdup(ssid->passphrase); in wpa_supplicant_conf_ap()
406 bin_clear_free(bss->ssid.wpa_psk, sizeof(*bss->ssid.wpa_psk)); in wpa_supplicant_conf_ap()
407 bss->ssid.wpa_psk = os_zalloc(sizeof(struct hostapd_wpa_psk)); in wpa_supplicant_conf_ap()
408 if (bss->ssid.wpa_psk == NULL) in wpa_supplicant_conf_ap()
410 os_memcpy(bss->ssid.wpa_psk->psk, ssid->psk, PMK_LEN); in wpa_supplicant_conf_ap()
411 bss->ssid.wpa_psk->group = 1; in wpa_supplicant_conf_ap()
412 bss->ssid.wpa_psk_set = 1; in wpa_supplicant_conf_ap()
414 bss->ssid.wpa_passphrase = os_strdup(ssid->passphrase); in wpa_supplicant_conf_ap()
418 struct hostapd_wep_keys *wep = &bss->ssid.wep; in wpa_supplicant_conf_ap()
455 pw->next = bss->sae_passwords; in wpa_supplicant_conf_ap()
456 bss->sae_passwords = pw; in wpa_supplicant_conf_ap()
459 bss->sae_pwe = wpa_s->conf->sae_pwe; in wpa_supplicant_conf_ap()
466 bss->interworking = wpa_s->conf->go_interworking; in wpa_supplicant_conf_ap()
467 bss->access_network_type = wpa_s->conf->go_access_network_type; in wpa_supplicant_conf_ap()
468 bss->internet = wpa_s->conf->go_internet; in wpa_supplicant_conf_ap()
474 bss->venue_group = wpa_s->conf->go_venue_group; in wpa_supplicant_conf_ap()
475 bss->venue_type = wpa_s->conf->go_venue_type; in wpa_supplicant_conf_ap()
476 bss->venue_info_set = 1; in wpa_supplicant_conf_ap()
481 bss->ap_max_inactivity = ssid->ap_max_inactivity; in wpa_supplicant_conf_ap()
484 bss->dtim_period = ssid->dtim_period; in wpa_supplicant_conf_ap()
486 bss->dtim_period = wpa_s->conf->dtim_period; in wpa_supplicant_conf_ap()
508 if ((bss->wpa & 2) && bss->rsn_pairwise == 0) in wpa_supplicant_conf_ap()
509 bss->rsn_pairwise = bss->wpa_pairwise; in wpa_supplicant_conf_ap()
510 bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, bss->wpa_pairwise, in wpa_supplicant_conf_ap()
511 bss->rsn_pairwise); in wpa_supplicant_conf_ap()
513 if (bss->wpa && bss->ieee802_1x) { in wpa_supplicant_conf_ap()
514 bss->ssid.security_policy = SECURITY_WPA; in wpa_supplicant_conf_ap()
515 } else if (bss->wpa) { in wpa_supplicant_conf_ap()
516 bss->ssid.security_policy = SECURITY_WPA_PSK; in wpa_supplicant_conf_ap()
518 } else if (bss->ieee802_1x) { in wpa_supplicant_conf_ap()
520 bss->ssid.security_policy = SECURITY_IEEE_802_1X; in wpa_supplicant_conf_ap()
521 bss->ssid.wep.default_len = bss->default_wep_key_len; in wpa_supplicant_conf_ap()
522 if (bss->default_wep_key_len) in wpa_supplicant_conf_ap()
523 cipher = bss->default_wep_key_len >= 13 ? in wpa_supplicant_conf_ap()
525 bss->wpa_group = cipher; in wpa_supplicant_conf_ap()
526 bss->wpa_pairwise = cipher; in wpa_supplicant_conf_ap()
527 bss->rsn_pairwise = cipher; in wpa_supplicant_conf_ap()
528 } else if (bss->ssid.wep.keys_set) { in wpa_supplicant_conf_ap()
530 if (bss->ssid.wep.len[0] >= 13) in wpa_supplicant_conf_ap()
532 bss->ssid.security_policy = SECURITY_STATIC_WEP; in wpa_supplicant_conf_ap()
533 bss->wpa_group = cipher; in wpa_supplicant_conf_ap()
534 bss->wpa_pairwise = cipher; in wpa_supplicant_conf_ap()
535 bss->rsn_pairwise = cipher; in wpa_supplicant_conf_ap()
538 bss->ssid.security_policy = SECURITY_PLAINTEXT; in wpa_supplicant_conf_ap()
539 bss->wpa_group = WPA_CIPHER_NONE; in wpa_supplicant_conf_ap()
540 bss->wpa_pairwise = WPA_CIPHER_NONE; in wpa_supplicant_conf_ap()
541 bss->rsn_pairwise = WPA_CIPHER_NONE; in wpa_supplicant_conf_ap()
544 if (bss->wpa_group_rekey < 86400 && (bss->wpa & 2) && in wpa_supplicant_conf_ap()
545 (bss->wpa_group == WPA_CIPHER_CCMP || in wpa_supplicant_conf_ap()
546 bss->wpa_group == WPA_CIPHER_GCMP || in wpa_supplicant_conf_ap()
547 bss->wpa_group == WPA_CIPHER_CCMP_256 || in wpa_supplicant_conf_ap()
548 bss->wpa_group == WPA_CIPHER_GCMP_256)) { in wpa_supplicant_conf_ap()
553 bss->wpa_group_rekey = 86400; in wpa_supplicant_conf_ap()
557 bss->ieee80211w = ssid->ieee80211w; in wpa_supplicant_conf_ap()
560 bss->ocv = ssid->ocv; in wpa_supplicant_conf_ap()
569 if (bss->ssid.security_policy != SECURITY_WPA_PSK && in wpa_supplicant_conf_ap()
570 bss->ssid.security_policy != SECURITY_PLAINTEXT) in wpa_supplicant_conf_ap()
572 if (bss->ssid.security_policy == SECURITY_WPA_PSK && in wpa_supplicant_conf_ap()
573 (!(bss->rsn_pairwise & (WPA_CIPHER_CCMP | WPA_CIPHER_GCMP)) || in wpa_supplicant_conf_ap()
574 !(bss->wpa & 2))) in wpa_supplicant_conf_ap()
579 bss->eap_server = 1; in wpa_supplicant_conf_ap()
582 bss->wps_state = 2; in wpa_supplicant_conf_ap()
584 bss->ap_setup_locked = 2; in wpa_supplicant_conf_ap()
586 bss->config_methods = os_strdup(wpa_s->conf->config_methods); in wpa_supplicant_conf_ap()
587 os_memcpy(bss->device_type, wpa_s->conf->device_type, in wpa_supplicant_conf_ap()
590 bss->device_name = os_strdup(wpa_s->conf->device_name); in wpa_supplicant_conf_ap()
591 bss->friendly_name = os_strdup(wpa_s->conf->device_name); in wpa_supplicant_conf_ap()
594 bss->manufacturer = os_strdup(wpa_s->conf->manufacturer); in wpa_supplicant_conf_ap()
596 bss->model_name = os_strdup(wpa_s->conf->model_name); in wpa_supplicant_conf_ap()
598 bss->model_number = os_strdup(wpa_s->conf->model_number); in wpa_supplicant_conf_ap()
600 bss->serial_number = os_strdup(wpa_s->conf->serial_number); in wpa_supplicant_conf_ap()
602 os_memcpy(bss->uuid, wpa_s->wps->uuid, WPS_UUID_LEN); in wpa_supplicant_conf_ap()
604 os_memcpy(bss->uuid, wpa_s->conf->uuid, WPS_UUID_LEN); in wpa_supplicant_conf_ap()
605 os_memcpy(bss->os_version, wpa_s->conf->os_version, 4); in wpa_supplicant_conf_ap()
606 bss->pbc_in_m1 = wpa_s->conf->pbc_in_m1; in wpa_supplicant_conf_ap()
608 bss->fragment_size = ssid->eap.fragment_size; in wpa_supplicant_conf_ap()
614 bss->max_num_sta = wpa_s->max_stations; in wpa_supplicant_conf_ap()
616 bss->max_num_sta = wpa_s->conf->max_num_sta; in wpa_supplicant_conf_ap()
618 if (!bss->isolate) in wpa_supplicant_conf_ap()
619 bss->isolate = wpa_s->conf->ap_isolate; in wpa_supplicant_conf_ap()
621 bss->disassoc_low_ack = wpa_s->conf->disassoc_low_ack; in wpa_supplicant_conf_ap()
624 bss->vendor_elements = in wpa_supplicant_conf_ap()
628 bss->ftm_responder = wpa_s->conf->ftm_responder; in wpa_supplicant_conf_ap()
629 bss->ftm_initiator = wpa_s->conf->ftm_initiator; in wpa_supplicant_conf_ap()
631 bss->transition_disable = ssid->transition_disable; in wpa_supplicant_conf_ap()
883 conf->bss[0]->wmm_enabled = 1; in wpa_supplicant_create_ap()
884 conf->bss[0]->wmm_uapsd = 1; in wpa_supplicant_create_ap()
895 conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER; in wpa_supplicant_create_ap()
897 conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER | in wpa_supplicant_create_ap()
902 hapd_iface->bss = os_calloc(conf->num_bss, in wpa_supplicant_create_ap()
904 if (hapd_iface->bss == NULL) { in wpa_supplicant_create_ap()
910 hapd_iface->bss[i] = in wpa_supplicant_create_ap()
912 conf->bss[i]); in wpa_supplicant_create_ap()
913 if (hapd_iface->bss[i] == NULL) { in wpa_supplicant_create_ap()
918 hapd_iface->bss[i]->msg_ctx = wpa_s; in wpa_supplicant_create_ap()
919 hapd_iface->bss[i]->msg_ctx_parent = wpa_s->p2pdev; in wpa_supplicant_create_ap()
920 hapd_iface->bss[i]->public_action_cb = ap_public_action_rx; in wpa_supplicant_create_ap()
921 hapd_iface->bss[i]->public_action_cb_ctx = wpa_s; in wpa_supplicant_create_ap()
922 hapd_iface->bss[i]->vendor_action_cb = ap_vendor_action_rx; in wpa_supplicant_create_ap()
923 hapd_iface->bss[i]->vendor_action_cb_ctx = wpa_s; in wpa_supplicant_create_ap()
924 hostapd_register_probereq_cb(hapd_iface->bss[i], in wpa_supplicant_create_ap()
926 hapd_iface->bss[i]->wps_reg_success_cb = ap_wps_reg_success_cb; in wpa_supplicant_create_ap()
927 hapd_iface->bss[i]->wps_reg_success_cb_ctx = wpa_s; in wpa_supplicant_create_ap()
928 hapd_iface->bss[i]->wps_event_cb = ap_wps_event_cb; in wpa_supplicant_create_ap()
929 hapd_iface->bss[i]->wps_event_cb_ctx = wpa_s; in wpa_supplicant_create_ap()
930 hapd_iface->bss[i]->sta_authorized_cb = ap_sta_authorized_cb; in wpa_supplicant_create_ap()
931 hapd_iface->bss[i]->sta_authorized_cb_ctx = wpa_s; in wpa_supplicant_create_ap()
933 hapd_iface->bss[i]->new_psk_cb = ap_new_psk_cb; in wpa_supplicant_create_ap()
934 hapd_iface->bss[i]->new_psk_cb_ctx = wpa_s; in wpa_supplicant_create_ap()
935 hapd_iface->bss[i]->p2p = wpa_s->global->p2p; in wpa_supplicant_create_ap()
936 hapd_iface->bss[i]->p2p_group = wpas_p2p_group_init(wpa_s, in wpa_supplicant_create_ap()
939 hapd_iface->bss[i]->setup_complete_cb = wpas_ap_configured_cb; in wpa_supplicant_create_ap()
940 hapd_iface->bss[i]->setup_complete_cb_ctx = wpa_s; in wpa_supplicant_create_ap()
942 hapd_iface->bss[i]->ext_eapol_frame_io = in wpa_supplicant_create_ap()
947 os_memcpy(hapd_iface->bss[0]->own_addr, wpa_s->own_addr, ETH_ALEN); in wpa_supplicant_create_ap()
948 hapd_iface->bss[0]->driver = wpa_s->driver; in wpa_supplicant_create_ap()
949 hapd_iface->bss[0]->drv_priv = wpa_s->drv_priv; in wpa_supplicant_create_ap()
1007 hostapd_tx_status(wpa_s->ap_iface->bss[0], addr, buf, len, ack); in ap_tx_status()
1019 hostapd_tx_status(wpa_s->ap_iface->bss[0], dst, data, len, ack); in ap_eapol_tx_status()
1029 hostapd_client_poll_ok(wpa_s->ap_iface->bss[0], addr); in ap_client_poll_ok()
1038 ieee802_11_rx_from_unknown(wpa_s->ap_iface->bss[0], addr, wds); in ap_rx_from_unknown_sta()
1051 ieee802_11_mgmt(wpa_s->ap_iface->bss[0], rx_mgmt->frame, in ap_mgmt_rx()
1061 ieee802_11_mgmt_cb(wpa_s->ap_iface->bss[0], buf, len, stype, ok); in ap_mgmt_tx_cb()
1069 ieee802_1x_receive(wpa_s->ap_iface->bss[0], src_addr, buf, len); in wpa_supplicant_ap_rx_eapol()
1080 return hostapd_wps_button_pushed(wpa_s->ap_iface->bss[0], in wpa_supplicant_ap_wps_pbc()
1090 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]->wps) in wpa_supplicant_ap_wps_cancel()
1093 reg = wpa_s->ap_iface->bss[0]->wps->registrar; in wpa_supplicant_ap_wps_cancel()
1095 wps_sta = ap_for_each_sta(wpa_s->ap_iface->bss[0], in wpa_supplicant_ap_wps_cancel()
1139 ret = hostapd_wps_add_pin(wpa_s->ap_iface->bss[0], bssid, "any", pin, in wpa_supplicant_ap_wps_pin()
1161 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_enable()
1178 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_disable()
1193 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_random()
1212 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_get()
1226 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_set()
1246 hapd = wpa_s->ap_iface->bss[0]; in wpa_supplicant_ap_pwd_auth_fail()
1274 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_wps_nfc_config_token()
1286 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_wps_nfc_handover_sel()
1299 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_wps_nfc_report_handover()
1316 hapd = wpa_s->ap_iface->bss[0]; in ap_ctrl_iface_sta_first()
1318 hapd = wpa_s->ifmsh->bss[0]; in ap_ctrl_iface_sta_first()
1331 hapd = wpa_s->ap_iface->bss[0]; in ap_ctrl_iface_sta()
1333 hapd = wpa_s->ifmsh->bss[0]; in ap_ctrl_iface_sta()
1346 hapd = wpa_s->ap_iface->bss[0]; in ap_ctrl_iface_sta_next()
1348 hapd = wpa_s->ifmsh->bss[0]; in ap_ctrl_iface_sta_next()
1360 return hostapd_ctrl_iface_disassociate(wpa_s->ap_iface->bss[0], in ap_ctrl_iface_sta_disassociate()
1370 return hostapd_ctrl_iface_deauthenticate(wpa_s->ap_iface->bss[0], in ap_ctrl_iface_sta_deauthenticate()
1385 conf = wpa_s->ap_iface->bss[0]->conf; in ap_ctrl_iface_wpa_get_status()
1419 iface->conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER; in wpa_supplicant_ap_update_beacon()
1421 iface->conf->bss[0]->p2p = P2P_ENABLED | P2P_GROUP_OWNER | in wpa_supplicant_ap_update_beacon()
1425 hapd = iface->bss[0]; in wpa_supplicant_ap_update_beacon()
1439 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]) in ap_switch_channel()
1442 return hostapd_switch_channel(wpa_s->ap_iface->bss[0], settings); in ap_switch_channel()
1475 hostapd_event_ch_switch(iface->bss[0], freq, ht, in wpas_ap_ch_switch()
1495 hapd = wpa_s->ap_iface->bss[0]; in wpa_supplicant_ap_mac_addr_filter()
1530 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_wps_add_nfc_pw()
1573 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_stop_ap()
1595 wpa_s->ap_iface->bss[i], in wpas_ap_pmksa_cache_list()
1608 wpa_s->ifmsh->bss[0], &buf[reply_len], in wpas_ap_pmksa_cache_list()
1622 hostapd_ctrl_iface_pmksa_flush(wpa_s->ap_iface->bss[i]); in wpas_ap_pmksa_cache_flush()
1626 hostapd_ctrl_iface_pmksa_flush(wpa_s->ifmsh->bss[0]); in wpas_ap_pmksa_cache_flush()
1636 return hostapd_ctrl_iface_pmksa_list_mesh(wpa_s->ifmsh->bss[0], addr, in wpas_ap_pmksa_cache_list_mesh()
1676 if (!iface || !iface->bss[0]) in wpas_ap_event_dfs_radar_detected()
1693 if (!iface || !iface->bss[0]) in wpas_ap_event_dfs_cac_started()
1709 if (!iface || !iface->bss[0]) in wpas_ap_event_dfs_cac_finished()
1725 if (!iface || !iface->bss[0]) in wpas_ap_event_dfs_cac_aborted()
1741 if (!iface || !iface->bss[0]) in wpas_ap_event_dfs_cac_nop_finished()