• Home
  • Raw
  • Download

Lines Matching refs:ap_iface

520 	if (wpa_s->ap_iface == NULL || wpa_s->current_ssid == NULL)  in ap_new_psk_cb()
552 if (wpa_s->ap_iface) in ap_probe_req_rx()
553 freq = wpa_s->ap_iface->freq; in ap_probe_req_rx()
574 wpa_s->assoc_freq = wpa_s->ap_iface->freq; in wpas_ap_configured_cb()
657 wpa_s->ap_iface = hapd_iface = os_zalloc(sizeof(*wpa_s->ap_iface)); in wpa_supplicant_create_ap()
668 wpa_s->ap_iface->conf = conf = hostapd_config_defaults(); in wpa_supplicant_create_ap()
681 os_memcpy(wpa_s->ap_iface->conf->wmm_ac_params, in wpa_supplicant_create_ap()
759 if (hostapd_setup_interface(wpa_s->ap_iface)) { in wpa_supplicant_create_ap()
775 if (wpa_s->ap_iface == NULL) in wpa_supplicant_ap_deinit()
782 wpa_s->ap_iface->driver_ap_teardown = in wpa_supplicant_ap_deinit()
785 hostapd_interface_deinit(wpa_s->ap_iface); in wpa_supplicant_ap_deinit()
786 hostapd_interface_free(wpa_s->ap_iface); in wpa_supplicant_ap_deinit()
787 wpa_s->ap_iface = NULL; in wpa_supplicant_ap_deinit()
800 hostapd_tx_status(wpa_s->ap_iface->bss[0], addr, buf, len, ack); in ap_tx_status()
810 if (!wpa_s->ap_iface) in ap_eapol_tx_status()
812 hostapd_tx_status(wpa_s->ap_iface->bss[0], dst, data, len, ack); in ap_eapol_tx_status()
821 if (wpa_s->ap_iface) in ap_client_poll_ok()
822 hostapd_client_poll_ok(wpa_s->ap_iface->bss[0], addr); in ap_client_poll_ok()
831 ieee802_11_rx_from_unknown(wpa_s->ap_iface->bss[0], addr, wds); in ap_rx_from_unknown_sta()
844 ieee802_11_mgmt(wpa_s->ap_iface->bss[0], rx_mgmt->frame, in ap_mgmt_rx()
854 ieee802_11_mgmt_cb(wpa_s->ap_iface->bss[0], buf, len, stype, ok); in ap_mgmt_tx_cb()
862 ieee802_1x_receive(wpa_s->ap_iface->bss[0], src_addr, buf, len); in wpa_supplicant_ap_rx_eapol()
871 if (!wpa_s->ap_iface) in wpa_supplicant_ap_wps_pbc()
873 return hostapd_wps_button_pushed(wpa_s->ap_iface->bss[0], in wpa_supplicant_ap_wps_pbc()
883 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]->wps) in wpa_supplicant_ap_wps_cancel()
886 reg = wpa_s->ap_iface->bss[0]->wps->registrar; in wpa_supplicant_ap_wps_cancel()
888 wps_sta = ap_for_each_sta(wpa_s->ap_iface->bss[0], in wpa_supplicant_ap_wps_cancel()
914 if (!wpa_s->ap_iface) in wpa_supplicant_ap_wps_pin()
932 ret = hostapd_wps_add_pin(wpa_s->ap_iface->bss[0], bssid, "any", pin, in wpa_supplicant_ap_wps_pin()
952 if (wpa_s->ap_iface == NULL) in wpas_wps_ap_pin_enable()
954 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_enable()
968 if (wpa_s->ap_iface == NULL) in wpas_wps_ap_pin_disable()
971 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_disable()
984 if (wpa_s->ap_iface == NULL) in wpas_wps_ap_pin_random()
986 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_random()
1003 if (wpa_s->ap_iface == NULL) in wpas_wps_ap_pin_get()
1005 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_get()
1017 if (wpa_s->ap_iface == NULL) in wpas_wps_ap_pin_set()
1019 hapd = wpa_s->ap_iface->bss[0]; in wpas_wps_ap_pin_set()
1037 if (wpa_s->ap_iface == NULL) in wpa_supplicant_ap_pwd_auth_fail()
1039 hapd = wpa_s->ap_iface->bss[0]; in wpa_supplicant_ap_pwd_auth_fail()
1065 if (wpa_s->ap_iface == NULL) in wpas_ap_wps_nfc_config_token()
1067 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_wps_nfc_config_token()
1077 if (wpa_s->ap_iface == NULL) in wpas_ap_wps_nfc_handover_sel()
1079 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_wps_nfc_handover_sel()
1090 if (wpa_s->ap_iface == NULL) in wpas_ap_wps_nfc_report_handover()
1092 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_wps_nfc_report_handover()
1108 if (wpa_s->ap_iface) in ap_ctrl_iface_sta_first()
1109 hapd = wpa_s->ap_iface->bss[0]; in ap_ctrl_iface_sta_first()
1123 if (wpa_s->ap_iface) in ap_ctrl_iface_sta()
1124 hapd = wpa_s->ap_iface->bss[0]; in ap_ctrl_iface_sta()
1138 if (wpa_s->ap_iface) in ap_ctrl_iface_sta_next()
1139 hapd = wpa_s->ap_iface->bss[0]; in ap_ctrl_iface_sta_next()
1151 if (wpa_s->ap_iface == NULL) in ap_ctrl_iface_sta_disassociate()
1153 return hostapd_ctrl_iface_disassociate(wpa_s->ap_iface->bss[0], in ap_ctrl_iface_sta_disassociate()
1161 if (wpa_s->ap_iface == NULL) in ap_ctrl_iface_sta_deauthenticate()
1163 return hostapd_ctrl_iface_deauthenticate(wpa_s->ap_iface->bss[0], in ap_ctrl_iface_sta_deauthenticate()
1175 if (wpa_s->ap_iface == NULL) in ap_ctrl_iface_wpa_get_status()
1178 conf = wpa_s->ap_iface->bss[0]->conf; in ap_ctrl_iface_wpa_get_status()
1201 struct hostapd_iface *iface = wpa_s->ap_iface; in wpa_supplicant_ap_update_beacon()
1205 if (ssid == NULL || wpa_s->ap_iface == NULL || in wpa_supplicant_ap_update_beacon()
1232 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]) in ap_switch_channel()
1235 return hostapd_switch_channel(wpa_s->ap_iface->bss[0], settings); in ap_switch_channel()
1259 if (!wpa_s->ap_iface) in wpas_ap_ch_switch()
1265 hostapd_event_ch_switch(wpa_s->ap_iface->bss[0], freq, ht, in wpas_ap_ch_switch()
1276 if (!wpa_s->ap_iface) in wpa_supplicant_ap_mac_addr_filter()
1285 hapd = wpa_s->ap_iface->bss[0]; in wpa_supplicant_ap_mac_addr_filter()
1318 if (!wpa_s->ap_iface) in wpas_ap_wps_add_nfc_pw()
1320 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_wps_add_nfc_pw()
1361 if (!wpa_s->ap_iface) in wpas_ap_stop_ap()
1363 hapd = wpa_s->ap_iface->bss[0]; in wpas_ap_stop_ap()
1377 if (wpa_s->ap_iface) { in wpas_ap_pmksa_cache_list()
1384 for (i = 0; i < wpa_s->ap_iface->num_bss; i++) { in wpas_ap_pmksa_cache_list()
1386 wpa_s->ap_iface->bss[i], in wpas_ap_pmksa_cache_list()
1411 if (wpa_s->ap_iface) { in wpas_ap_pmksa_cache_flush()
1412 for (i = 0; i < wpa_s->ap_iface->num_bss; i++) in wpas_ap_pmksa_cache_flush()
1413 hostapd_ctrl_iface_pmksa_flush(wpa_s->ap_iface->bss[i]); in wpas_ap_pmksa_cache_flush()
1425 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]) in wpas_event_dfs_radar_detected()
1428 hostapd_dfs_radar_detected(wpa_s->ap_iface, radar->freq, in wpas_event_dfs_radar_detected()
1438 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]) in wpas_event_dfs_cac_started()
1441 hostapd_dfs_start_cac(wpa_s->ap_iface, radar->freq, in wpas_event_dfs_cac_started()
1450 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]) in wpas_event_dfs_cac_finished()
1453 hostapd_dfs_complete_cac(wpa_s->ap_iface, 1, radar->freq, in wpas_event_dfs_cac_finished()
1462 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]) in wpas_event_dfs_cac_aborted()
1465 hostapd_dfs_complete_cac(wpa_s->ap_iface, 0, radar->freq, in wpas_event_dfs_cac_aborted()
1474 if (!wpa_s->ap_iface || !wpa_s->ap_iface->bss[0]) in wpas_event_dfs_cac_nop_finished()
1477 hostapd_dfs_nop_finished(wpa_s->ap_iface, radar->freq, in wpas_event_dfs_cac_nop_finished()
1486 if (wpa_s->ap_iface) in ap_periodic()
1487 hostapd_periodic_iface(wpa_s->ap_iface); in ap_periodic()