Home
last modified time | relevance | path

Searched refs:hapd (Results 1 – 25 of 109) sorted by relevance

12345

/freebsd/contrib/wpa/src/ap/
H A Dap_drv_ops.h20 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
24 void hostapd_free_ap_extra_ies(struct hostapd_data *hapd, struct wpabuf *beacon,
27 int hostapd_reset_ap_wps_ie(struct hostapd_data *hapd);
28 int hostapd_set_ap_wps_ie(struct hostapd_data *hapd);
29 bool hostapd_sta_is_link_sta(struct hostapd_data *hapd,
31 int hostapd_set_authorized(struct hostapd_data *hapd,
33 int hostapd_set_sta_flags(struct hostapd_data *hapd, struct sta_info *sta);
34 int hostapd_set_drv_ieee8021x(struct hostapd_data *hapd, const char *ifname,
36 int hostapd_vlan_if_add(struct hostapd_data *hapd, const char *ifname);
37 int hostapd_vlan_if_remove(struct hostapd_data *hapd, const char *ifname);
[all …]
H A Dap_drv_ops.c71 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, in hostapd_build_ap_extra_ies() argument
83 pos = hostapd_eid_rm_enabled_capab(hapd, pos, sizeof(buf)); in hostapd_build_ap_extra_ies()
90 pos = hostapd_eid_time_adv(hapd, pos); in hostapd_build_ap_extra_ies()
93 pos = hostapd_eid_time_zone(hapd, pos); in hostapd_build_ap_extra_ies()
98 pos = hostapd_eid_ext_capab(hapd, pos, false); in hostapd_build_ap_extra_ies()
101 pos = hostapd_eid_interworking(hapd, pos); in hostapd_build_ap_extra_ies()
102 pos = hostapd_eid_adv_proto(hapd, pos); in hostapd_build_ap_extra_ies()
103 pos = hostapd_eid_roaming_consortium(hapd, pos); in hostapd_build_ap_extra_ies()
109 if (add_buf(&beacon, hapd->iface->fst_ies) < 0 || in hostapd_build_ap_extra_ies()
110 add_buf(&proberesp, hapd->iface->fst_ies) < 0 || in hostapd_build_ap_extra_ies()
[all …]
H A Dwpa_auth_kay.c27 struct hostapd_data *hapd = priv; in hapd_macsec_init() local
29 if (!hapd->driver->macsec_init) in hapd_macsec_init()
31 return hapd->driver->macsec_init(hapd->drv_priv, params); in hapd_macsec_init()
37 struct hostapd_data *hapd = priv; in hapd_macsec_deinit() local
39 if (!hapd->driver->macsec_deinit) in hapd_macsec_deinit()
41 return hapd->driver->macsec_deinit(hapd->drv_priv); in hapd_macsec_deinit()
47 struct hostapd_data *hapd = priv; in hapd_macsec_get_capability() local
49 if (!hapd->driver->macsec_get_capability) in hapd_macsec_get_capability()
51 return hapd->driver->macsec_get_capability(hapd->drv_priv, cap); in hapd_macsec_get_capability()
57 struct hostapd_data *hapd = priv; in hapd_enable_protect_frames() local
[all …]
H A Ddpp_hostapd.c31 static void hostapd_dpp_auth_success(struct hostapd_data *hapd, int initiator);
33 static int hostapd_dpp_auth_init_next(struct hostapd_data *hapd);
34 static void hostapd_dpp_set_testing_options(struct hostapd_data *hapd,
36 static void hostapd_dpp_start_gas_client(struct hostapd_data *hapd);
40 static void hostapd_dpp_handle_config_obj(struct hostapd_data *hapd,
56 int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd) in hostapd_dpp_qr_code() argument
59 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_qr_code()
61 bi = dpp_add_qr_code(hapd->iface->interfaces->dpp, cmd); in hostapd_dpp_qr_code()
69 wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR in hostapd_dpp_qr_code()
73 hostapd_drv_send_action(hapd, auth->curr_freq, 0, in hostapd_dpp_qr_code()
[all …]
H A Dauthsrv.c31 static int hostapd_sim_db_cb_sta(struct hostapd_data *hapd, in hostapd_sim_db_cb_sta() argument
42 struct hostapd_data *hapd = ctx; in hostapd_sim_db_cb() local
43 if (ap_for_each_sta(hapd, hostapd_sim_db_cb_sta, session_ctx) == 0) { in hostapd_sim_db_cb()
45 radius_server_eap_pending_cb(hapd->radius_srv, session_ctx); in hostapd_sim_db_cb()
213 static int hostapd_setup_radius_srv(struct hostapd_data *hapd) in hostapd_setup_radius_srv() argument
216 struct hostapd_bss_config *conf = hapd->conf; in hostapd_setup_radius_srv()
219 if (!hostapd_mld_is_first_bss(hapd)) { in hostapd_setup_radius_srv()
225 first = hostapd_mld_get_first_bss(hapd); in hostapd_setup_radius_srv()
228 hapd->radius_srv = first->radius_srv; in hostapd_setup_radius_srv()
237 srv.conf_ctx = hapd; in hostapd_setup_radius_srv()
[all …]
H A Dsta_info.c43 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd,
50 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta);
53 int ap_for_each_sta(struct hostapd_data *hapd, in ap_for_each_sta() argument
54 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument
60 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta()
61 if (cb(hapd, sta, ctx)) in ap_for_each_sta()
69 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument
73 s = hapd->sta_hash[STA_HASH(sta)]; in ap_get_sta()
81 struct sta_info * ap_get_link_sta(struct hostapd_data *hapd, in ap_get_link_sta() argument
86 for (link_sta = hapd->sta_list; link_sta; link_sta = link_sta->next) { in ap_get_link_sta()
[all …]
H A Dbeacon.c41 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) in hostapd_eid_bss_load() argument
47 if (hapd->conf->bss_load_test_set) { in hostapd_eid_bss_load()
50 os_memcpy(eid, hapd->conf->bss_load_test, 5); in hostapd_eid_bss_load()
55 if (hapd->conf->bss_load_update_period) { in hostapd_eid_bss_load()
58 WPA_PUT_LE16(eid, hapd->num_sta); in hostapd_eid_bss_load()
60 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load()
68 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) in ieee802_11_erp_info() argument
72 if (hapd->iface->current_mode == NULL || in ieee802_11_erp_info()
73 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in ieee802_11_erp_info()
76 if (hapd->iface->olbc) in ieee802_11_erp_info()
[all …]
H A Ddrv_callbacks.c52 void hostapd_notify_assoc_fils_finish(struct hostapd_data *hapd, in hostapd_notify_assoc_fils_finish() argument
63 eloop_cancel_timeout(fils_hlp_timeout, hapd, sta); in hostapd_notify_assoc_fils_finish()
82 reply_res = hostapd_sta_assoc(hapd, sta->addr, in hostapd_notify_assoc_fils_finish()
86 updated = ap_sta_set_authorized_flag(hapd, sta, 1); in hostapd_notify_assoc_fils_finish()
90 hostapd_set_sta_flags(hapd, sta); in hostapd_notify_assoc_fils_finish()
92 ap_sta_set_authorized_event(hapd, sta, 1); in hostapd_notify_assoc_fils_finish()
95 hostapd_new_assoc_sta(hapd, sta, !new_assoc); in hostapd_notify_assoc_fils_finish()
103 fils_hlp_deinit(hapd); in hostapd_notify_assoc_fils_finish()
111 hostapd_drv_sta_remove(hapd, sta->addr); in hostapd_notify_assoc_fils_finish()
118 static bool check_sa_query_need(struct hostapd_data *hapd, struct sta_info *sta) in check_sa_query_need() argument
[all …]
H A Dieee802_11_shared.c36 u8 * hostapd_eid_assoc_comeback_time(struct hostapd_data *hapd, in hostapd_eid_assoc_comeback_time() argument
46 if (hapd->conf->assoc_sa_query_max_timeout > tu) in hostapd_eid_assoc_comeback_time()
47 timeout = hapd->conf->assoc_sa_query_max_timeout - tu; in hostapd_eid_assoc_comeback_time()
50 if (timeout < hapd->conf->assoc_sa_query_max_timeout) in hostapd_eid_assoc_comeback_time()
54 if (hapd->conf->test_assoc_comeback_type != -1) in hostapd_eid_assoc_comeback_time()
55 type = hapd->conf->test_assoc_comeback_type; in hostapd_eid_assoc_comeback_time()
62 void ieee802_11_send_sa_query_req(struct hostapd_data *hapd, in ieee802_11_send_sa_query_req() argument
66 struct sta_info *sta = ap_get_sta(hapd, addr); in ieee802_11_send_sa_query_req()
72 const u8 *own_addr = hapd->own_addr; in ieee802_11_send_sa_query_req()
83 if (hostapd_drv_channel_info(hapd, &ci) != 0) { in ieee802_11_send_sa_query_req()
[all …]
H A Dhostapd.c62 static int hostapd_flush_old_stations(struct hostapd_data *hapd, u16 reason);
64 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd);
65 static int hostapd_broadcast_wep_clear(struct hostapd_data *hapd);
93 struct hostapd_data * hostapd_mbssid_get_tx_bss(struct hostapd_data *hapd) in hostapd_mbssid_get_tx_bss() argument
95 if (hapd->iconf->mbssid) in hostapd_mbssid_get_tx_bss()
96 return hapd->iface->bss[0]; in hostapd_mbssid_get_tx_bss()
98 return hapd; in hostapd_mbssid_get_tx_bss()
102 int hostapd_mbssid_get_bss_index(struct hostapd_data *hapd) in hostapd_mbssid_get_bss_index() argument
104 if (hapd->iconf->mbssid) { in hostapd_mbssid_get_bss_index()
107 for (i = 1; i < hapd->iface->num_bss; i++) in hostapd_mbssid_get_bss_index()
[all …]
H A Dwps_hostapd.c34 static int hostapd_wps_upnp_init(struct hostapd_data *hapd,
36 static void hostapd_wps_upnp_deinit(struct hostapd_data *hapd);
62 struct hostapd_data *hapd = iface->bss[j]; in wps_for_each() local
65 if (hapd != data->calling_hapd && in wps_for_each()
66 (hapd->conf->wps_independent || in wps_for_each()
70 ret = data->func(hapd, data->ctx); in wps_for_each()
79 static int hostapd_wps_for_each(struct hostapd_data *hapd, in hostapd_wps_for_each() argument
83 struct hostapd_iface *iface = hapd->iface; in hostapd_wps_for_each()
87 data.calling_hapd = hapd; in hostapd_wps_for_each()
100 struct hostapd_data *hapd = ctx; in hostapd_wps_new_psk_cb() local
[all …]
H A Dwpa_auth_glue.c38 static void hostapd_wpa_auth_config_update(struct hostapd_data *hapd, in hostapd_wpa_auth_config_update() argument
43 _conf->msg_ctx = hapd->msg_ctx; in hostapd_wpa_auth_config_update()
44 tx_bss = hostapd_mbssid_get_tx_bss(hapd); in hostapd_wpa_auth_config_update()
45 if (tx_bss != hapd) in hostapd_wpa_auth_config_update()
47 if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_EAPOL_TX_STATUS) in hostapd_wpa_auth_config_update()
49 if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_MLME) in hostapd_wpa_auth_config_update()
52 if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_WIRED) && in hostapd_wpa_auth_config_update()
53 (hapd->conf->wpa_deny_ptk0_rekey == PTK0_REKEY_ALLOW_NEVER || in hostapd_wpa_auth_config_update()
54 (hapd->conf->wpa_deny_ptk0_rekey == PTK0_REKEY_ALLOW_LOCAL_OK && in hostapd_wpa_auth_config_update()
55 !(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_SAFE_PTK0_REKEYS)))) { in hostapd_wpa_auth_config_update()
[all …]
H A Dieee802_11.h60 int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
62 void ieee802_11_mgmt_cb(struct hostapd_data *hapd, const u8 *buf, size_t len,
64 void hostapd_2040_coex_action(struct hostapd_data *hapd,
67 int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen);
68 int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
71 static inline int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, in ieee802_11_get_mib() argument
77 static inline int ieee802_11_get_mib_sta(struct hostapd_data *hapd, in ieee802_11_get_mib_sta() argument
84 u16 hostapd_own_capab_info(struct hostapd_data *hapd);
86 u8 * hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid,
88 u8 * hostapd_eid_qos_map_set(struct hostapd_data *hapd, u8 *eid);
[all …]
H A Dgas_serv.c47 gas_dialog_create(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token) in gas_dialog_create() argument
53 sta = ap_get_sta(hapd, addr); in gas_dialog_create()
61 sta = ap_sta_add(hapd, addr); in gas_dialog_create()
73 ap_sta_session_timeout(hapd, sta, in gas_dialog_create()
74 hapd->conf->gas_comeback_delay / 1024 + in gas_dialog_create()
77 ap_sta_replenish_timeout(hapd, sta, 5); in gas_dialog_create()
99 wpa_msg(hapd->msg_ctx, MSG_ERROR, "ANQP: Could not create dialog for " in gas_dialog_create()
108 gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr, in gas_serv_dialog_find() argument
114 sta = ap_get_sta(hapd, addr); in gas_serv_dialog_find()
124 ap_sta_replenish_timeout(hapd, sta, 5); in gas_serv_dialog_find()
[all …]
H A Dwps_hostapd.h14 int hostapd_init_wps(struct hostapd_data *hapd,
16 int hostapd_init_wps_complete(struct hostapd_data *hapd);
17 void hostapd_deinit_wps(struct hostapd_data *hapd);
18 void hostapd_update_wps(struct hostapd_data *hapd);
19 void hostapd_wps_eap_completed(struct hostapd_data *hapd);
20 int hostapd_wps_add_pin(struct hostapd_data *hapd, const u8 *addr,
22 int hostapd_wps_button_pushed(struct hostapd_data *hapd,
24 int hostapd_wps_cancel(struct hostapd_data *hapd);
25 int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
27 void hostapd_wps_ap_pin_disable(struct hostapd_data *hapd);
[all …]
H A Dieee802_11.c69 prepare_auth_resp_fils(struct hostapd_data *hapd,
80 static void pasn_fils_auth_resp(struct hostapd_data *hapd,
88 static void handle_auth(struct hostapd_data *hapd,
91 static int add_associated_sta(struct hostapd_data *hapd,
99 static u8 * hostapd_eid_multi_ap(struct hostapd_data *hapd, u8 *eid, size_t len) in hostapd_eid_multi_ap() argument
103 if (!hapd->conf->multi_ap) in hostapd_eid_multi_ap()
106 if (hapd->conf->multi_ap & BACKHAUL_BSS) in hostapd_eid_multi_ap()
108 if (hapd->conf->multi_ap & FRONTHAUL_BSS) in hostapd_eid_multi_ap()
111 if (hapd->conf->multi_ap_client_disallow & in hostapd_eid_multi_ap()
115 if (hapd->conf->multi_ap_client_disallow & in hostapd_eid_multi_ap()
[all …]
H A Dtkip_countermeasures.c26 struct hostapd_data *hapd = eloop_ctx; in ieee80211_tkip_countermeasures_stop() local
27 hapd->tkip_countermeasures = 0; in ieee80211_tkip_countermeasures_stop()
28 hostapd_drv_set_countermeasures(hapd, 0); in ieee80211_tkip_countermeasures_stop()
29 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, in ieee80211_tkip_countermeasures_stop()
34 static void ieee80211_tkip_countermeasures_start(struct hostapd_data *hapd) in ieee80211_tkip_countermeasures_start() argument
38 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, in ieee80211_tkip_countermeasures_start()
41 wpa_auth_countermeasures_start(hapd->wpa_auth); in ieee80211_tkip_countermeasures_start()
42 hapd->tkip_countermeasures = 1; in ieee80211_tkip_countermeasures_start()
43 hostapd_drv_set_countermeasures(hapd, 1); in ieee80211_tkip_countermeasures_start()
44 wpa_gtk_rekey(hapd->wpa_auth); in ieee80211_tkip_countermeasures_start()
[all …]
H A Dnan_usd_ap.c24 struct hostapd_data *hapd = ctx; in hostapd_nan_de_tx() local
32 return hostapd_drv_send_action_forced_addr3(hapd, hapd->iface->freq, 0, in hostapd_nan_de_tx()
49 struct hostapd_data *hapd = ctx; in hostapd_nan_de_discovery_result() local
58 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_DISCOVERY_RESULT in hostapd_nan_de_discovery_result()
74 struct hostapd_data *hapd = ctx; in hostapd_nan_de_replied() local
82 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_REPLIED in hostapd_nan_de_replied()
109 struct hostapd_data *hapd = ctx; in hostapd_nan_de_publish_terminated() local
111 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_PUBLISH_TERMINATED in hostapd_nan_de_publish_terminated()
120 struct hostapd_data *hapd = ctx; in hostapd_nan_de_subscribe_terminated() local
122 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_SUBSCRIBE_TERMINATED in hostapd_nan_de_subscribe_terminated()
[all …]
H A Drrm.c27 struct hostapd_data *hapd = eloop_data; in hostapd_lci_rep_timeout_handler() local
30 hapd->lci_req_token); in hostapd_lci_rep_timeout_handler()
31 hapd->lci_req_active = 0; in hostapd_lci_rep_timeout_handler()
35 static void hostapd_handle_lci_report(struct hostapd_data *hapd, u8 token, in hostapd_handle_lci_report() argument
38 if (!hapd->lci_req_active || hapd->lci_req_token != token) { in hostapd_handle_lci_report()
43 hapd->lci_req_active = 0; in hostapd_handle_lci_report()
44 eloop_cancel_timeout(hostapd_lci_rep_timeout_handler, hapd, NULL); in hostapd_handle_lci_report()
51 struct hostapd_data *hapd = eloop_data; in hostapd_range_rep_timeout_handler() local
54 hapd->range_req_token); in hostapd_range_rep_timeout_handler()
55 hapd->range_req_active = 0; in hostapd_range_rep_timeout_handler()
[all …]
H A Ddpp_hostapd.h15 int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd);
16 int hostapd_dpp_nfc_uri(struct hostapd_data *hapd, const char *cmd);
17 int hostapd_dpp_nfc_handover_req(struct hostapd_data *hapd, const char *cmd);
18 int hostapd_dpp_nfc_handover_sel(struct hostapd_data *hapd, const char *cmd);
19 int hostapd_dpp_auth_init(struct hostapd_data *hapd, const char *cmd);
20 int hostapd_dpp_listen(struct hostapd_data *hapd, const char *cmd);
21 void hostapd_dpp_listen_stop(struct hostapd_data *hapd);
22 void hostapd_dpp_rx_action(struct hostapd_data *hapd, const u8 *src,
24 void hostapd_dpp_tx_status(struct hostapd_data *hapd, const u8 *dst,
27 hostapd_dpp_gas_req_handler(struct hostapd_data *hapd, const u8 *sa,
[all …]
H A Dvlan_init.c22 static int vlan_if_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan, in vlan_if_add() argument
30 if (!hapd->conf->ssid.wep.key[i]) in vlan_if_add()
40 ret = hostapd_vlan_if_add(hapd, vlan->ifname); in vlan_if_add()
51 if (hapd->wpa_auth) in vlan_if_add()
52 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_add()
59 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id)) in vlan_if_add()
63 if (hostapd_vlan_if_remove(hapd, vlan->ifname)) in vlan_if_add()
70 int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) in vlan_if_remove() argument
74 ret = wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_remove()
80 return hostapd_vlan_if_remove(hapd, vlan->ifname); in vlan_if_remove()
[all …]
H A Dieee802_1x.c46 static bool ieee802_1x_finished(struct hostapd_data *hapd,
51 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, in ieee802_1x_send() argument
68 xhdr->version = hapd->conf->eapol_version; in ieee802_1x_send()
70 if (xhdr->version > 2 && hapd->conf->macsec_policy == 0) in ieee802_1x_send()
82 if (hapd->ext_eapol_frame_io) { in ieee802_1x_send()
88 wpa_msg(hapd->msg_ctx, MSG_INFO, in ieee802_1x_send()
96 rsn_preauth_send(hapd, sta, buf, len); in ieee802_1x_send()
101 link_id = hapd->conf->mld_ap ? hapd->mld_link_id : -1; in ieee802_1x_send()
104 hapd, sta->addr, buf, len, in ieee802_1x_send()
112 static void ieee802_1x_set_authorized(struct hostapd_data *hapd, in ieee802_1x_set_authorized() argument
[all …]
H A Dieee802_11_he.c91 u8 * hostapd_eid_he_capab(struct hostapd_data *hapd, u8 *eid, in hostapd_eid_he_capab() argument
95 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_he_capab()
130 if (hapd->iface->conf->he_phy_capab.he_su_beamformer) in hostapd_eid_he_capab()
137 if (hapd->iface->conf->he_phy_capab.he_su_beamformee) in hostapd_eid_he_capab()
144 if (hapd->iface->conf->he_phy_capab.he_mu_beamformer) in hostapd_eid_he_capab()
157 u8 * hostapd_eid_he_operation(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_he_operation() argument
164 if (!hapd->iface->current_mode) in hostapd_eid_he_operation()
167 if (is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_he_operation()
177 if (hapd->iface->conf->he_op.he_default_pe_duration) in hostapd_eid_he_operation()
178 params |= (hapd->iface->conf->he_op.he_default_pe_duration << in hostapd_eid_he_operation()
[all …]
H A Dneighbor_db.c20 hostapd_neighbor_get(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_get() argument
25 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_neighbor_get()
38 int hostapd_neighbor_show(struct hostapd_data *hapd, char *buf, size_t buflen) in hostapd_neighbor_show() argument
46 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_neighbor_show()
110 hostapd_neighbor_add(struct hostapd_data *hapd) in hostapd_neighbor_add() argument
118 dl_list_add(&hapd->nr_db, &nr->list); in hostapd_neighbor_add()
124 int hostapd_neighbor_set(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_set() argument
132 entry = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_set()
134 entry = hostapd_neighbor_add(hapd); in hostapd_neighbor_set()
166 hostapd_neighbor_remove(hapd, bssid, ssid); in hostapd_neighbor_set()
[all …]
/freebsd/contrib/wpa/hostapd/
H A Dctrl_iface.c85 static void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level,
90 static int hostapd_ctrl_iface_attach(struct hostapd_data *hapd, in hostapd_ctrl_iface_attach() argument
94 return ctrl_iface_attach(&hapd->ctrl_dst, from, fromlen, input); in hostapd_ctrl_iface_attach()
98 static int hostapd_ctrl_iface_detach(struct hostapd_data *hapd, in hostapd_ctrl_iface_detach() argument
102 return ctrl_iface_detach(&hapd->ctrl_dst, from, fromlen); in hostapd_ctrl_iface_detach()
106 static int hostapd_ctrl_iface_level(struct hostapd_data *hapd, in hostapd_ctrl_iface_level() argument
111 return ctrl_iface_level(&hapd->ctrl_dst, from, fromlen, level); in hostapd_ctrl_iface_level()
115 static int hostapd_ctrl_iface_new_sta(struct hostapd_data *hapd, in hostapd_ctrl_iface_new_sta() argument
126 sta = ap_get_sta(hapd, addr); in hostapd_ctrl_iface_new_sta()
132 sta = ap_sta_add(hapd, addr); in hostapd_ctrl_iface_new_sta()
[all …]

12345