/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | driver_i.h | 15 static inline void * wpa_drv_init(struct wpa_supplicant *wpa_s, in wpa_drv_init() argument 18 if (wpa_s->driver->init2) in wpa_drv_init() 19 return wpa_s->driver->init2(wpa_s, ifname, in wpa_drv_init() 20 wpa_s->global_drv_priv); in wpa_drv_init() 21 if (wpa_s->driver->init) { in wpa_drv_init() 22 return wpa_s->driver->init(wpa_s, ifname); in wpa_drv_init() 27 static inline void wpa_drv_deinit(struct wpa_supplicant *wpa_s) in wpa_drv_deinit() argument 29 if (wpa_s->driver->deinit) in wpa_drv_deinit() 30 wpa_s->driver->deinit(wpa_s->drv_priv); in wpa_drv_deinit() 33 static inline int wpa_drv_set_param(struct wpa_supplicant *wpa_s, in wpa_drv_set_param() argument [all …]
|
H A D | notify.c | 64 int wpas_notify_iface_added(struct wpa_supplicant *wpa_s) in wpas_notify_iface_added() argument 66 if (wpa_s->p2p_mgmt) in wpas_notify_iface_added() 69 if (wpas_dbus_register_interface(wpa_s)) in wpas_notify_iface_added() 76 void wpas_notify_iface_removed(struct wpa_supplicant *wpa_s) in wpas_notify_iface_removed() argument 78 if (wpa_s->p2p_mgmt) in wpas_notify_iface_removed() 82 wpas_dbus_unregister_interface(wpa_s); in wpas_notify_iface_removed() 86 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s, in wpas_notify_state_changed() argument 90 if (wpa_s->p2p_mgmt) in wpas_notify_state_changed() 94 wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_STATE); in wpas_notify_state_changed() 97 if (wpa_s->fst && !is_zero_ether_addr(wpa_s->bssid)) { in wpas_notify_state_changed() [all …]
|
H A D | offchannel.c | 22 wpas_get_tx_interface(struct wpa_supplicant *wpa_s, const u8 *src) in wpas_get_tx_interface() argument 26 if (ether_addr_equal(src, wpa_s->own_addr)) { in wpas_get_tx_interface() 28 if (wpa_s->p2p_mgmt && wpa_s != wpa_s->parent && in wpas_get_tx_interface() 29 wpa_s->parent->ap_iface && in wpas_get_tx_interface() 30 ether_addr_equal(wpa_s->parent->own_addr, in wpas_get_tx_interface() 31 wpa_s->own_addr) && in wpas_get_tx_interface() 32 wpabuf_len(wpa_s->pending_action_tx) >= 2 && in wpas_get_tx_interface() 33 *wpabuf_head_u8(wpa_s->pending_action_tx) != in wpas_get_tx_interface() 43 wpa_s->parent->ifname, wpa_s->ifname); in wpas_get_tx_interface() 44 return wpa_s->parent; in wpas_get_tx_interface() [all …]
|
H A D | wpa_supplicant.c | 130 static void wpas_update_fils_connect_params(struct wpa_supplicant *wpa_s); 133 static void wpas_update_owe_connect_params(struct wpa_supplicant *wpa_s); 139 int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) in wpa_set_wep_keys() argument 148 wpa_drv_set_key(wpa_s, -1, WPA_ALG_WEP, NULL, in wpa_set_wep_keys() 161 int wpa_supplicant_set_wpa_none_key(struct wpa_supplicant *wpa_s, in wpa_supplicant_set_wpa_none_key() argument 174 wpa_msg(wpa_s, MSG_INFO, "WPA: Invalid mode %d (not " in wpa_supplicant_set_wpa_none_key() 180 wpa_msg(wpa_s, MSG_INFO, "WPA: No PSK configured for " in wpa_supplicant_set_wpa_none_key() 185 switch (wpa_s->group_cipher) { in wpa_supplicant_set_wpa_none_key() 204 wpa_msg(wpa_s, MSG_INFO, "WPA: Invalid group cipher %d for " in wpa_supplicant_set_wpa_none_key() 205 "WPA-None", wpa_s->group_cipher); in wpa_supplicant_set_wpa_none_key() [all …]
|
H A D | sme.c | 42 static void sme_stop_sa_query(struct wpa_supplicant *wpa_s); 58 static int sme_set_sae_group(struct wpa_supplicant *wpa_s, bool external) in sme_set_sae_group() argument 60 int *groups = wpa_s->conf->sae_groups; in sme_set_sae_group() 67 if (!index_within_array(groups, wpa_s->sme.sae_group_index)) in sme_set_sae_group() 71 int group = groups[wpa_s->sme.sae_group_index]; in sme_set_sae_group() 74 if (!int_array_includes(wpa_s->sme.sae_rejected_groups, in sme_set_sae_group() 76 sae_set_group(&wpa_s->sme.sae, group) == 0) { in sme_set_sae_group() 77 wpa_dbg(wpa_s, MSG_DEBUG, "SME: Selected SAE group %d", in sme_set_sae_group() 78 wpa_s->sme.sae.group); in sme_set_sae_group() 79 wpa_s->sme.sae.akmp = external ? in sme_set_sae_group() [all …]
|
H A D | events.c | 61 static int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s, 68 int wpas_temp_disabled(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) in wpas_temp_disabled() argument 79 wpas_clear_temp_disabled(wpa_s, ssid, 0); in wpas_temp_disabled() 96 static int wpas_reenabled_network_time(struct wpa_supplicant *wpa_s) in wpas_reenabled_network_time() argument 102 if (wpa_s->conf->auto_interworking && wpa_s->conf->interworking && in wpas_reenabled_network_time() 103 wpa_s->conf->cred) in wpas_reenabled_network_time() 107 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_reenabled_network_time() 111 disabled_for = wpas_temp_disabled(wpa_s, ssid); in wpas_reenabled_network_time() 126 struct wpa_supplicant *wpa_s = eloop_ctx; in wpas_network_reenabled() local 128 if (wpa_s->disconnected || wpa_s->wpa_state != WPA_SCANNING) in wpas_network_reenabled() [all …]
|
H A D | p2p_supplicant.c | 123 wpas_p2p_get_group_iface(struct wpa_supplicant *wpa_s, int addr_allocated, 125 static int wpas_p2p_join_start(struct wpa_supplicant *wpa_s, int freq, 127 static int wpas_p2p_setup_freqs(struct wpa_supplicant *wpa_s, int freq, 131 static void wpas_p2p_join_scan_req(struct wpa_supplicant *wpa_s, int freq, 134 static int wpas_p2p_join(struct wpa_supplicant *wpa_s, const u8 *iface_addr, 138 static int wpas_p2p_create_iface(struct wpa_supplicant *wpa_s); 139 static void wpas_p2p_cross_connect_setup(struct wpa_supplicant *wpa_s); 141 static void wpas_p2p_set_group_idle_timeout(struct wpa_supplicant *wpa_s); 145 static int wpas_p2p_fallback_to_go_neg(struct wpa_supplicant *wpa_s, 147 static void wpas_p2p_stop_find_oper(struct wpa_supplicant *wpa_s); [all …]
|
H A D | dpp_supplicant.c | 34 static int wpas_dpp_listen_start(struct wpa_supplicant *wpa_s, 38 static void wpas_dpp_auth_success(struct wpa_supplicant *wpa_s, int initiator); 39 static void wpas_dpp_tx_status(struct wpa_supplicant *wpa_s, 45 static int wpas_dpp_auth_init_next(struct wpa_supplicant *wpa_s); 47 wpas_dpp_tx_pkex_status(struct wpa_supplicant *wpa_s, 56 static void wpas_dpp_start_gas_client(struct wpa_supplicant *wpa_s); 75 int wpas_dpp_qr_code(struct wpa_supplicant *wpa_s, const char *cmd) in wpas_dpp_qr_code() argument 78 struct dpp_authentication *auth = wpa_s->dpp_auth; in wpas_dpp_qr_code() 80 bi = dpp_add_qr_code(wpa_s->dpp, cmd); in wpas_dpp_qr_code() 88 wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_TX "dst=" MACSTR in wpas_dpp_qr_code() [all …]
|
H A D | scan.c | 27 static struct wpabuf * wpa_supplicant_extra_ies(struct wpa_supplicant *wpa_s); 30 static void wpa_supplicant_gen_assoc_event(struct wpa_supplicant *wpa_s) in wpa_supplicant_gen_assoc_event() argument 35 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_gen_assoc_event() 39 if (wpa_s->current_ssid == NULL) { in wpa_supplicant_gen_assoc_event() 40 wpa_s->current_ssid = ssid; in wpa_supplicant_gen_assoc_event() 41 wpas_notify_network_changed(wpa_s); in wpa_supplicant_gen_assoc_event() 43 wpa_supplicant_initiate_eapol(wpa_s); in wpa_supplicant_gen_assoc_event() 44 wpa_dbg(wpa_s, MSG_DEBUG, "Already associated with a configured " in wpa_supplicant_gen_assoc_event() 47 wpa_supplicant_event(wpa_s, EVENT_ASSOC, &data); in wpa_supplicant_gen_assoc_event() 52 static int wpas_wps_in_use(struct wpa_supplicant *wpa_s, in wpas_wps_in_use() argument [all …]
|
H A D | notify.h | 23 int wpas_notify_iface_added(struct wpa_supplicant *wpa_s); 24 void wpas_notify_iface_removed(struct wpa_supplicant *wpa_s); 25 void wpas_notify_state_changed(struct wpa_supplicant *wpa_s, 28 void wpas_notify_disconnect_reason(struct wpa_supplicant *wpa_s); 29 void wpas_notify_auth_status_code(struct wpa_supplicant *wpa_s); 30 void wpas_notify_assoc_status_code(struct wpa_supplicant *wpa_s); 31 void wpas_notify_roam_time(struct wpa_supplicant *wpa_s); 32 void wpas_notify_roam_complete(struct wpa_supplicant *wpa_s); 33 void wpas_notify_session_length(struct wpa_supplicant *wpa_s); 34 void wpas_notify_bss_tm_status(struct wpa_supplicant *wpa_s); [all …]
|
H A D | p2p_supplicant.h | 29 int wpas_p2p_add_p2pdev_interface(struct wpa_supplicant *wpa_s, 31 struct wpa_supplicant * wpas_get_p2p_go_iface(struct wpa_supplicant *wpa_s, 33 struct wpa_supplicant * wpas_get_p2p_client_iface(struct wpa_supplicant *wpa_s, 35 int wpas_p2p_connect(struct wpa_supplicant *wpa_s, const u8 *peer_addr, 43 int wpas_p2p_handle_frequency_conflicts(struct wpa_supplicant *wpa_s, 45 int wpas_p2p_group_add(struct wpa_supplicant *wpa_s, int persistent_group, 48 int wpas_p2p_group_add_persistent(struct wpa_supplicant *wpa_s, 57 struct p2p_group * wpas_p2p_group_init(struct wpa_supplicant *wpa_s, 65 int wpas_p2p_prov_disc(struct wpa_supplicant *wpa_s, const u8 *peer_addr, 69 void wpas_send_action_tx_status(struct wpa_supplicant *wpa_s, const u8 *dst, [all …]
|
H A D | wps_supplicant.c | 51 static void wpas_clear_wps(struct wpa_supplicant *wpa_s); 54 static void wpas_wps_clear_ap_info(struct wpa_supplicant *wpa_s) in wpas_wps_clear_ap_info() argument 56 os_free(wpa_s->wps_ap); in wpas_wps_clear_ap_info() 57 wpa_s->wps_ap = NULL; in wpas_wps_clear_ap_info() 58 wpa_s->num_wps_ap = 0; in wpas_wps_clear_ap_info() 59 wpa_s->wps_ap_iter = 0; in wpas_wps_clear_ap_info() 65 struct wpa_supplicant *wpa_s = eloop_ctx; in wpas_wps_assoc_with_cred() local 70 wpa_supplicant_fast_associate(wpa_s) != 1) in wpas_wps_assoc_with_cred() 71 wpa_supplicant_req_scan(wpa_s, 0, 0); in wpas_wps_assoc_with_cred() 75 static void wpas_wps_assoc_with_cred_cancel(struct wpa_supplicant *wpa_s) in wpas_wps_assoc_with_cred_cancel() argument [all …]
|
H A D | wnm_sta.c | 33 static int ieee80211_11_get_tfs_ie(struct wpa_supplicant *wpa_s, u8 *buf, in ieee80211_11_get_tfs_ie() argument 38 return wpa_drv_wnm_oper(wpa_s, oper, wpa_s->bssid, buf, buf_len); in ieee80211_11_get_tfs_ie() 43 static int ieee80211_11_set_tfs_ie(struct wpa_supplicant *wpa_s, in ieee80211_11_set_tfs_ie() argument 51 return wpa_drv_wnm_oper(wpa_s, oper, addr, (u8 *) buf, &len); in ieee80211_11_set_tfs_ie() 56 int ieee802_11_send_wnmsleep_req(struct wpa_supplicant *wpa_s, in ieee802_11_send_wnmsleep_req() argument 72 MAC2STR(wpa_s->bssid)); in ieee802_11_send_wnmsleep_req() 101 if (ieee80211_11_get_tfs_ie(wpa_s, wnmtfs_ie, &wnmtfs_ie_len, in ieee802_11_send_wnmsleep_req() 114 if (action == WNM_SLEEP_MODE_EXIT && wpa_sm_ocv_enabled(wpa_s->wpa)) { in ieee802_11_send_wnmsleep_req() 117 if (wpa_drv_channel_info(wpa_s, &ci) != 0) { in ieee802_11_send_wnmsleep_req() 125 if (wpa_s->oci_freq_override_wnm_sleep) { in ieee802_11_send_wnmsleep_req() [all …]
|
H A D | ap.c | 70 static void wpas_conf_ap_vht(struct wpa_supplicant *wpa_s, in wpas_conf_ap_vht() argument 117 center_chan = wpas_p2p_get_vht80_center(wpa_s, mode, channel, in wpas_conf_ap_vht() 124 center_chan = wpas_p2p_get_vht160_center(wpa_s, mode, channel, in wpas_conf_ap_vht() 141 center_chan = wpas_p2p_get_vht160_center(wpa_s, mode, channel, in wpas_conf_ap_vht() 153 center_chan = wpas_p2p_get_vht80_center(wpa_s, mode, in wpas_conf_ap_vht() 185 wpa_supplicant_find_hw_mode(struct wpa_supplicant *wpa_s, in wpa_supplicant_find_hw_mode() argument 191 for (i = 0; i < wpa_s->hw.num_modes; i++) { in wpa_supplicant_find_hw_mode() 192 if (wpa_s->hw.modes[i].mode == hw_mode) { in wpa_supplicant_find_hw_mode() 193 mode = &wpa_s->hw.modes[i]; in wpa_supplicant_find_hw_mode() 222 static void wpas_conf_ap_he_6ghz(struct wpa_supplicant *wpa_s, in wpas_conf_ap_he_6ghz() argument [all …]
|
H A D | wpas_glue.c | 39 struct wpa_supplicant *wpa_s = ctx; in wpa_supplicant_set_config_blob() local 40 wpa_config_set_blob(wpa_s->conf, blob); in wpa_supplicant_set_config_blob() 41 if (wpa_s->conf->update_config) { in wpa_supplicant_set_config_blob() 42 int ret = wpa_config_write(wpa_s->confname, wpa_s->conf); in wpa_supplicant_set_config_blob() 54 struct wpa_supplicant *wpa_s = ctx; in wpa_supplicant_get_config_blob() local 55 return wpa_config_get_blob(wpa_s->conf, name); in wpa_supplicant_get_config_blob() 62 static u8 * wpa_alloc_eapol(const struct wpa_supplicant *wpa_s, u8 type, in wpa_alloc_eapol() argument 73 hdr->version = wpa_s->conf->eapol_version; in wpa_alloc_eapol() 98 int wpa_ether_send(struct wpa_supplicant *wpa_s, const u8 *dest, in wpa_ether_send() argument 102 if (wpa_s->ext_eapol_frame_io && proto == ETH_P_EAPOL) { in wpa_ether_send() [all …]
|
H A D | preauth_test.c | 39 static void _wpa_supplicant_deauthenticate(void *wpa_s, u16 reason_code) in _wpa_supplicant_deauthenticate() argument 41 wpa_supplicant_deauthenticate(wpa_s, reason_code); in _wpa_supplicant_deauthenticate() 45 static void _wpa_supplicant_reconnect(void *wpa_s) in _wpa_supplicant_reconnect() argument 47 wpa_supplicant_reconnect(wpa_s); in _wpa_supplicant_reconnect() 51 static u8 * wpa_alloc_eapol(const struct wpa_supplicant *wpa_s, u8 type, in wpa_alloc_eapol() argument 62 hdr->version = wpa_s->conf->eapol_version; in wpa_alloc_eapol() 78 static u8 * _wpa_alloc_eapol(void *wpa_s, u8 type, in _wpa_alloc_eapol() argument 82 return wpa_alloc_eapol(wpa_s, type, data, data_len, msg_len, data_pos); in _wpa_alloc_eapol() 88 struct wpa_supplicant *wpa_s = ctx; in _wpa_supplicant_set_state() local 89 wpa_s->wpa_state = state; in _wpa_supplicant_set_state() [all …]
|
H A D | nan_usd.c | 35 static void wpas_nan_de_tx_status(struct wpa_supplicant *wpa_s, in wpas_nan_de_tx_status() argument 41 if (!wpa_s->nan_de) in wpas_nan_de_tx_status() 49 nan_de_tx_status(wpa_s->nan_de, freq, dst); in wpas_nan_de_tx_status() 72 static void wpas_nan_usd_tx_work_done(struct wpa_supplicant *wpa_s) in wpas_nan_usd_tx_work_done() argument 76 if (!wpa_s->nan_usd_tx_work) in wpas_nan_usd_tx_work_done() 79 twork = wpa_s->nan_usd_tx_work->ctx; in wpas_nan_usd_tx_work_done() 81 radio_work_done(wpa_s->nan_usd_tx_work); in wpas_nan_usd_tx_work_done() 82 wpa_s->nan_usd_tx_work = NULL; in wpas_nan_usd_tx_work_done() 86 static int wpas_nan_de_tx_send(struct wpa_supplicant *wpa_s, unsigned int freq, in wpas_nan_de_tx_send() argument 96 return offchannel_send_action(wpa_s, freq, dst, src, bssid, in wpas_nan_de_tx_send() [all …]
|
H A D | wps_supplicant.h | 28 int wpas_wps_init(struct wpa_supplicant *wpa_s); 29 void wpas_wps_deinit(struct wpa_supplicant *wpa_s); 30 int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s); 32 int wpas_wps_start_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid, 34 int wpas_wps_start_pin(struct wpa_supplicant *wpa_s, const u8 *bssid, 36 void wpas_wps_pbc_overlap(struct wpa_supplicant *wpa_s); 37 int wpas_wps_cancel(struct wpa_supplicant *wpa_s); 38 int wpas_wps_start_reg(struct wpa_supplicant *wpa_s, const u8 *bssid, 40 int wpas_wps_ssid_bss_match(struct wpa_supplicant *wpa_s, 42 int wpas_wps_ssid_wildcard_ok(struct wpa_supplicant *wpa_s, [all …]
|
H A D | autoscan.c | 31 static void request_scan(struct wpa_supplicant *wpa_s) in request_scan() argument 33 wpa_s->scan_req = MANUAL_SCAN_REQ; in request_scan() 35 if (wpa_supplicant_req_sched_scan(wpa_s)) in request_scan() 36 wpa_supplicant_req_scan(wpa_s, wpa_s->scan_interval, 0); in request_scan() 40 int autoscan_init(struct wpa_supplicant *wpa_s, int req_scan) in autoscan_init() argument 42 const char *name = wpa_s->conf->autoscan; in autoscan_init() 50 if (wpa_s->sched_scan_plans) { in autoscan_init() 56 if (wpa_s->autoscan && wpa_s->autoscan_priv) { in autoscan_init() 86 scan_plans = os_malloc(sizeof(*wpa_s->sched_scan_plans)); in autoscan_init() 90 wpa_s->autoscan_params = NULL; in autoscan_init() [all …]
|
H A D | mesh.c | 31 static void wpa_supplicant_mesh_deinit(struct wpa_supplicant *wpa_s, in wpa_supplicant_mesh_deinit() argument 34 wpa_supplicant_mesh_iface_deinit(wpa_s, wpa_s->ifmsh, in wpa_supplicant_mesh_deinit() 38 wpa_s->ifmsh = NULL; in wpa_supplicant_mesh_deinit() 39 wpa_s->current_ssid = NULL; in wpa_supplicant_mesh_deinit() 40 os_free(wpa_s->mesh_params); in wpa_supplicant_mesh_deinit() 41 wpa_s->mesh_params = NULL; in wpa_supplicant_mesh_deinit() 44 os_free(wpa_s->mesh_rsn); in wpa_supplicant_mesh_deinit() 45 wpa_s->mesh_rsn = NULL; in wpa_supplicant_mesh_deinit() 48 wpa_supplicant_leave_mesh(wpa_s, false); in wpa_supplicant_mesh_deinit() 52 void wpa_supplicant_mesh_iface_deinit(struct wpa_supplicant *wpa_s, in wpa_supplicant_mesh_iface_deinit() argument [all …]
|
H A D | ap.h | 15 int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s, 17 void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s); 18 void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s, 21 int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid, 23 int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid, 26 int wpa_supplicant_ap_wps_cancel(struct wpa_supplicant *wpa_s); 27 void wpas_wps_ap_pin_disable(struct wpa_supplicant *wpa_s); 28 const char * wpas_wps_ap_pin_random(struct wpa_supplicant *wpa_s, int timeout); 29 const char * wpas_wps_ap_pin_get(struct wpa_supplicant *wpa_s); 30 int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin, [all …]
|
H A D | wpas_module_tests.c | 19 struct wpa_supplicant wpa_s; in wpas_bssid_ignore_module_tests() local 23 os_memset(&wpa_s, 0, sizeof(wpa_s)); in wpas_bssid_ignore_module_tests() 25 wpa_s.global = &global; in wpas_bssid_ignore_module_tests() 27 wpa_bssid_ignore_clear(&wpa_s); in wpas_bssid_ignore_module_tests() 31 wpa_bssid_ignore_get(&wpa_s, NULL) != NULL || in wpas_bssid_ignore_module_tests() 32 wpa_bssid_ignore_get(&wpa_s, (u8 *) "123456") != NULL) in wpas_bssid_ignore_module_tests() 37 wpa_bssid_ignore_add(&wpa_s, NULL) == 0) in wpas_bssid_ignore_module_tests() 42 wpa_bssid_ignore_del(&wpa_s, NULL) == 0 || in wpas_bssid_ignore_module_tests() 43 wpa_bssid_ignore_del(&wpa_s, (u8 *) "123456") == 0) in wpas_bssid_ignore_module_tests() 46 if (wpa_bssid_ignore_add(&wpa_s, (u8 *) "111111") < 0 || in wpas_bssid_ignore_module_tests() [all …]
|
H A D | wpas_kay.c | 47 static int wpas_enable_protect_frames(void *wpa_s, bool enabled) in wpas_enable_protect_frames() argument 49 return wpa_drv_enable_protect_frames(wpa_s, enabled); in wpas_enable_protect_frames() 53 static int wpas_enable_encrypt(void *wpa_s, bool enabled) in wpas_enable_encrypt() argument 55 return wpa_drv_enable_encrypt(wpa_s, enabled); in wpas_enable_encrypt() 59 static int wpas_set_replay_protect(void *wpa_s, bool enabled, u32 window) in wpas_set_replay_protect() argument 61 return wpa_drv_set_replay_protect(wpa_s, enabled, window); in wpas_set_replay_protect() 65 static int wpas_set_current_cipher_suite(void *wpa_s, u64 cs) in wpas_set_current_cipher_suite() argument 67 return wpa_drv_set_current_cipher_suite(wpa_s, cs); in wpas_set_current_cipher_suite() 71 static int wpas_enable_controlled_port(void *wpa_s, bool enabled) in wpas_enable_controlled_port() argument 73 return wpa_drv_enable_controlled_port(wpa_s, enabled); in wpas_enable_controlled_port() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new.h | 157 int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s); 158 int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s); 159 void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s, 161 void wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant *wpa_s, 164 void wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant *wpa_s, 166 void wpas_dbus_signal_network_selected(struct wpa_supplicant *wpa_s, int id); 167 void wpas_dbus_signal_network_request(struct wpa_supplicant *wpa_s, 171 void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, int success); 172 void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s, 174 void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s, [all …]
|
H A D | dbus_new.c | 65 struct wpa_supplicant *wpa_s; in noc_filter() local 79 for (wpa_s = priv->global->ifaces; wpa_s; wpa_s = wpa_s->next) { in noc_filter() 80 if (wpa_s->preq_notify_peer != NULL && in noc_filter() 81 os_strcmp(name, wpa_s->preq_notify_peer) == 0 && in noc_filter() 84 os_free(wpa_s->preq_notify_peer); in noc_filter() 85 wpa_s->preq_notify_peer = NULL; in noc_filter() 131 static void wpas_dbus_signal_interface(struct wpa_supplicant *wpa_s, in wpas_dbus_signal_interface() argument 139 iface = wpa_s->global->dbus; in wpas_dbus_signal_interface() 142 if (iface == NULL || !wpa_s->dbus_new_path) in wpas_dbus_signal_interface() 152 &wpa_s->dbus_new_path) || in wpas_dbus_signal_interface() [all …]
|