input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
u8 *hostapd_eid_vendor_vht(hostapd_data *hapd, u8 *eid) { u8 *v3; if (!hapd->iface->current_mode || hapd->iface->current_mode->mode != hostapd_hw_mode_HOSTAPD_MODE_IEEE80211G) return eid; *eid = -35; eid[1] = 26; WPA_PUT_BE32_22(eid + 2, 0x904C04u); eid[6] = 8; ...
u8 *hostapd_eid_vendor_vht(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; if (!hapd->iface->current_mode || hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) return eid; *pos++ = WLAN_EID_VENDOR_SPECIFIC; *pos++ = (5 + 2 + sizeof(struct ieee80211_vht_capabilities) + 2 + s...
hostapd_eid_vendor_vht
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_event_ch_switch(hostapd_data *hapd, int freq, int ht, int offset, int width, int cf1, int cf2, int finished) { const char *v8; const char *v9; const char *v10; const char *v11; u8 seg0_idx; u8 seg1_idx; bool check_sa_query; int chwidth; int channel; int is_d...
void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht, int offset, int width, int cf1, int cf2, int finished) { #ifdef NEED_AP_MLME int channel, chwidth, is_dfs; u8 seg0_idx = 0, seg1_idx = 0; size_t i; hostapd_logger(hapd, NULL, HOST...
hostapd_event_ch_switch
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_event_get_survey(hostapd_iface *iface, survey_results *survey_results) { freq_survey *survey; freq_survey *tmp; hostapd_channel_data *chan; if (dl_list_empty_8(&survey_results->survey_list)) { wpa_printf(2, "No survey data received"); } else if (survey_results->...
void hostapd_event_get_survey(struct hostapd_iface *iface, struct survey_results *survey_results) { struct freq_survey *survey, *tmp; struct hostapd_channel_data *chan; if (dl_list_empty(&survey_results->survey_list)) { wpa_printf(MSG_DEBUG, "No survey data received"); retur...
hostapd_event_get_survey
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_event_sta_low_ack(hostapd_data *hapd, const u8 *addr) { sta_info *sta; sta = ap_get_sta(hapd, addr); if (sta && hapd->conf->disassoc_low_ack && (*((_BYTE *)sta + 357) & 2) == 0) { hostapd_logger(hapd, addr, 1u, 2, "disconnected due to excessive missing ACKs"); hostapd_drv_...
void hostapd_event_sta_low_ack(struct hostapd_data *hapd, const u8 *addr) { struct sta_info *sta = ap_get_sta(hapd, addr); if (!sta || !hapd->conf->disassoc_low_ack || sta->agreed_to_steer) return; hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, HOSTAPD_LEVEL_INFO, "disconnected due to...
hostapd_event_sta_low_ack
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_event_sta_opmode_changed(hostapd_data *hapd, const u8 *addr, smps_mode smps_mode, chan_width chan_width, u8 rx_nss) { const char *txt; const char *txta; if (ap_get_sta(hapd, addr)) { if (smps_mode == smps_mode_SMPS_STATI...
void hostapd_event_sta_opmode_changed(struct hostapd_data *hapd, const u8 *addr, enum smps_mode smps_mode, enum chan_width chan_width, u8 rx_nss) { struct sta_info *sta = ap_get_sta(hapd, addr); const char *txt; if (!sta) return; ...
hostapd_event_sta_opmode_changed
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_ext_capab_byte(hostapd_data *hapd, u8 *pos, int idx) { int in_use; *pos = 0; switch (idx) { case 0: if (hapd->iconf->obss_interval) *pos |= 1u; if ((hapd->iface->drv_flags & 0x80000000) != 0) *pos |= 4u; break; case 1: if (hapd->conf->proxy_arp) *pos |= 0x10u; ...
static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx) { *pos = 0x00; switch (idx) { case 0: if (hapd->iconf->obss_interval) *pos |= 0x01; if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA) *pos |= 0x04; break; case 1: i...
hostapd_ext_capab_byte
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_fils_discovery(hostapd_data *hapd, wpa_driver_ap_params *params) { params->fd_max_int = hapd->conf->fils_discovery_max_int; if (is_6ghz_op_class(hapd->iconf->op_class) && params->fd_max_int > 0x14) params->fd_max_int = 20; params->fd_min_int = hapd->conf->fils_discovery_min_int; if (params->fd_m...
static u8 *hostapd_fils_discovery(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) { params->fd_max_int = hapd->conf->fils_discovery_max_int; if (is_6ghz_op_class(hapd->iconf->op_class) && params->fd_max_int > FD_MAX_INTERVAL_6GHZ) params->fd_max_int = FD_M...
hostapd_fils_discovery
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u16 hostapd_fils_discovery_cap(hostapd_data *hapd) { int op_class; u8 oper_chwidth_3; u8 chwidth; u8 mcs_nss_size; u16 cap_info; u16 cap_infoa; u16 phy_index; u16 nss; u16 nss_mask; int i; hostapd_hw_modes *mode; phy_index = 0; chwidth = 0; mcs_nss_size = 4; mode = hapd->iface->current_mo...
static u16 hostapd_fils_discovery_cap(struct hostapd_data *hapd) { u16 cap_info, phy_index = 0; u8 chwidth = FD_CAP_BSS_CHWIDTH_20, mcs_nss_size = 4; struct hostapd_hw_modes *mode = hapd->iface->current_mode; cap_info = FD_CAP_ESS; if (hapd->conf->wpa) cap_info |= FD_CAP_PRIVACY; if (is_6ghz_op_class(...
hostapd_fils_discovery_cap
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_flush_old_stations(hostapd_data *hapd, u16 reason) { int ret; u8 addr[6]; unsigned long v5; v5 = __readfsqword(0x28u); ret = 0; if (hostapd_drv_none(hapd) || !hapd->drv_priv) return 0; if ((*((_BYTE *)hapd->iface + 104) & 1) == 0) { wpa_msg(hapd->msg_ctx, 2, "Flushing old station entr...
static int hostapd_flush_old_stations(struct hostapd_data *hapd, u16 reason) { int ret = 0; u8 addr[ETH_ALEN]; if (hostapd_drv_none(hapd) || hapd->drv_priv == NULL) return 0; if (!hapd->iface->driver_ap_teardown) { wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "Flushing old station entries"); if (hostapd_flu...
hostapd_flush_old_stations
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_free_hapd_data(hostapd_data *hapd) { hostapd_bss_config *conf; dl_list *v2; hostapd_sae_commit_queue *q; free(hapd->probereq_cb); hapd->probereq_cb = 0; hapd->num_probereq_cb = 0; if ((*((_BYTE *)hapd + 28) & 1) != 0) { *((_BYTE *)hapd + 28) &= ~1u; hapd->beacon_set_done = 0; wpa...
void hostapd_free_hapd_data(struct hostapd_data *hapd) { os_free(hapd->probereq_cb); hapd->probereq_cb = NULL; hapd->num_probereq_cb = 0; #ifdef CONFIG_P2P wpabuf_free(hapd->p2p_beacon_ie); hapd->p2p_beacon_ie = NULL; wpabuf_free(hapd->p2p_probe_resp_ie); hapd->p2p_probe_resp_ie = NULL; #endif if (!ha...
hostapd_free_hapd_data
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_free_neighbor_db(hostapd_data *hapd) { hostapd_neighbor_entry *nr; hostapd_neighbor_entry *prev; nr = (hostapd_neighbor_entry *)hapd->nr_db.next; prev = (hostapd_neighbor_entry *)nr->list.next; while (nr != (hostapd_neighbor_entry *)&hapd->nr_db) { hostapd_neighbor_clear_entry(nr); dl_li...
void hostapd_free_neighbor_db(struct hostapd_data *hapd) { struct hostapd_neighbor_entry *nr, *prev; dl_list_for_each_safe(nr, prev, &hapd->nr_db, struct hostapd_neighbor_entry, list) { hostapd_neighbor_clear_entry(nr); dl_list_del(&nr->list); os_free(nr); } }
hostapd_free_neighbor_db
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_gen_fils_discovery(hostapd_data *hapd, size_t *len) { u16 v3; u16 ctl; u8 *pos; u8 *posa; size_t total_len; size_t total_lena; const u8 *mobility_domain; signed long buf_len; ieee80211_mgmt *head; u8 fd_rsn_info[5]; u8 buf[200]; unsigned long v14; v14 = __readfsqword(0x28u); ctl...
static u8 *hostapd_gen_fils_discovery(struct hostapd_data *hapd, size_t *len) { struct ieee80211_mgmt *head; const u8 *mobility_domain; u8 *pos, *length_pos, buf[200]; u16 ctl = 0; u8 fd_rsn_info[5]; size_t total_len, buf_len; total_len = 24 + 2 + 12; ctl = (sizeof(hapd->conf->ssid.short_ssid) - 1) | ...
hostapd_gen_fils_discovery
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_gen_probe_resp(hostapd_data *hapd, const ieee80211_mgmt *req, int is_p2p, size_t *resp_len) { u8 *v5; u8 *v6; u8 *v7; u8 *v8; u8 *v9; u8 *rsne; u8 *v11; u8 *v12; u8 *v13; u8 *v14; u8 *v15; u8 *v16; u8 *v17; u8 *v18; u8 *v19; u8 *v20; size_t v21; ...
static u8 *hostapd_gen_probe_resp(struct hostapd_data *hapd, const struct ieee80211_mgmt *req, int is_p2p, size_t *resp_len) { struct ieee80211_mgmt *resp; u8 *pos, *epos, *csa_pos; size_t buflen; #define MAX_PROBERESP_LEN 768 buflen = MAX_PRO...
hostapd_gen_probe_resp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const hostapd_eap_user *hostapd_get_eap_user(hostapd_data *hapd, const u8 *identity, size_t identity_len, int phase2) { hostapd_eap_user *user; for (user = hapd->conf->eap_user; user && (phase2 || user->identity) && ...
const struct hostapd_eap_user *hostapd_get_eap_user(struct hostapd_data *hapd, const u8 *identity, size_t identity_len, int phase2) { const struct hostapd_bss_con...
hostapd_get_eap_user
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_get_hw_features(hostapd_iface *iface) { _BOOL4 v2; char *v3; u8 dfs_domain; u16 num_modes; u16 flags; int i; int j; int dfs; int dfs_enabled; hostapd_data *hapd; hostapd_hw_modes *modes; hostapd_hw_modes *feature; unsigned long v14; v14 = __readfsqword(0x28u); hapd = *iface->b...
int hostapd_get_hw_features(struct hostapd_iface *iface) { struct hostapd_data *hapd = iface->bss[0]; int i, j; u16 num_modes, flags; struct hostapd_hw_modes *modes; u8 dfs_domain; if (hostapd_drv_none(hapd)) return -1; modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags, &dfs_domain); if ...
hostapd_get_hw_features
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
nr_chan_width hostapd_get_nr_chan_width(hostapd_data *hapd, int ht, int vht, int he) { u8 oper_chwidth; oper_chwidth = hostapd_get_oper_chwidth_4(hapd->iconf); if (!ht && !vht && !he) return nr_chan_width_NR_CHAN_WIDTH_20; if (!hapd->iconf->secondary_channel) ret...
static enum nr_chan_width hostapd_get_nr_chan_width(struct hostapd_data *hapd, int ht, int vht, int he) { u8 oper_chwidth = hostapd_get_oper_chwidth(hapd->iconf); if (!ht && !vht && !he) return NR_CHAN_WIDTH_20; if (!hapd->iconf->secondary_channel) retu...
hostapd_get_nr_chan_width
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const u8 *hostapd_get_psk(const hostapd_bss_config *conf, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, int *vlan_id) { const u8 *addra; _BOOL4 next_ok; hostapd_wpa_psk *psk; addra = addr; next_ok = prev_psk == 0; if (vlan_id) *vlan_id =...
const u8 *hostapd_get_psk(const struct hostapd_bss_config *conf, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, int *vlan_id) { struct hostapd_wpa_psk *psk; int next_ok = prev_psk == NULL; if (vlan_id) *vlan_id = 0; if (p2p_dev_addr && !is_z...
hostapd_get_psk
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_get_sta_conn_time(sta_info *sta, hostap_sta_driver_data *data, char *buf, size_t buflen) { int v4; int ret; os_reltime age; unsigned long v10; v10 = __readfsqword(0x28u); if (sta->connected_time.sec) { os_reltime_age_1(&sta->connected_time, &age); v4 = snpr...
static int hostapd_get_sta_conn_time(struct sta_info *sta, struct hostap_sta_driver_data *data, char *buf, size_t buflen) { struct os_reltime age; unsigned long secs; int ret; if (sta->connected_time.sec) { os_reltime_age(&sta->conn...
hostapd_get_sta_conn_time
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_get_sta_info(hostapd_data *hapd, sta_info *sta, char *buf, size_t buflen) { int len; int lena; int lenb; int ret; int reta; int retb; int retc; int retd; int rete; int retf; int retg; int reth; int reti; int retj; int retk; int retl; int retm; int...
static int hostapd_get_sta_info(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) { struct hostap_sta_driver_data data; int ret; int len = 0; if (hostapd_drv_read_sta_data(hapd, &data, sta->addr) < 0) return 0; ret = os_snprintf(buf, buflen, ...
hostapd_get_sta_info
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_handle_dfs(hostapd_iface *iface) { const char *v2; const char *v3; unsigned int v4; int oper_centr_freq_seg1_idx_4; int oper_centr_freq_seg0_idx_4; u8 oper_chwidth_6; int v8; int v9; u8 v10; u8 cf1; u8 cf2; int n_chans1; int start_chan_idx1; int sec; int skip_radar; int start...
int hostapd_handle_dfs(struct hostapd_iface *iface) { struct hostapd_channel_data *channel; int res, n_chans, n_chans1, start_chan_idx, start_chan_idx1; int skip_radar = 0; if (is_6ghz_freq(iface->freq)) return 1; if (!iface->current_mode) { wpa_printf(MSG_DEBUG, "DFS: No current_mode information -...
hostapd_handle_dfs
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_handle_dfs_offload(hostapd_iface *iface) { int dfs_res; wpa_printf(2, "%s: iface->cac_started: %d", "hostapd_handle_dfs_offload", (*((_BYTE *)iface + 80) & 2) != 0); if ((*((_BYTE *)iface + 80) & 2) != 0) { wpa_printf(2, "%s: iface->cac_started: %d", "hostapd_handle_dfs_offload", ...
int hostapd_handle_dfs_offload(struct hostapd_iface *iface) { int dfs_res; wpa_printf(MSG_DEBUG, "%s: iface->cac_started: %d", __func__, iface->cac_started); if (iface->cac_started) { wpa_printf(MSG_DEBUG, "%s: iface->cac_started: %d", __func__, iface->cac_started); iface->ca...
hostapd_handle_dfs_offload
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_handle_lci_report(hostapd_data *hapd, u8 token, const u8 *pos, size_t len) { if ((*((_BYTE *)hapd + 3467) & 1) != 0 && token == hapd->lci_req_token) { *((_BYTE *)hapd + 3467) &= ~1u; eloop_cancel_timeout((eloop_timeout_handler)hostapd_lci_rep_timeout_handler, ...
static void hostapd_handle_lci_report(struct hostapd_data *hapd, u8 token, const u8 *pos, size_t len) { if (!hapd->lci_req_active || hapd->lci_req_token != token) { wpa_printf(MSG_DEBUG, "Unexpected LCI report, token %u", token); return; } hapd->lci_req_active = 0; ...
hostapd_handle_lci_report
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_handle_range_report(hostapd_data *hapd, u8 token, const u8 *pos, size_t len) { if ((*((_BYTE *)hapd + 3467) & 2) != 0 && token == hapd->range_req_token) { *((_BYTE *)hapd + 3467) &= ~2u; eloop_cancel_timeout( (eloop_timeout_handler)hostapd_range_rep_timeou...
static void hostapd_handle_range_report(struct hostapd_data *hapd, u8 token, const u8 *pos, size_t len) { if (!hapd->range_req_active || hapd->range_req_token != token) { wpa_printf(MSG_DEBUG, "Unexpected range report, token %u", token); return; } hapd->range_req_a...
hostapd_handle_range_report
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
hostapd_iface *hostapd_iface_alloc(hapd_interfaces *interfaces) { hostapd_iface **v2; hostapd_iface **iface; hostapd_iface *hapd_iface; iface = (hostapd_iface **)os_realloc_array_4(interfaces->iface, interfaces->count + 1, 8u); if (!iface) return 0; interf...
static struct hostapd_iface * hostapd_iface_alloc(struct hapd_interfaces *interfaces) { struct hostapd_iface **iface, *hapd_iface; iface = os_realloc_array(interfaces->iface, interfaces->count + 1, sizeof(struct hostapd_iface *)); if (iface == NULL) return NULL; interfaces->iface...
hostapd_iface_alloc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
hostapd_iface *hostapd_init(hapd_interfaces *interfaces, const char *config_file) { long v2; hostapd_config *conf; size_t i; hostapd_iface *hapd_iface; conf = 0; hapd_iface = hostapd_alloc_iface(); if (hapd_iface && (hapd_iface->config_fname = strdup(config_file)) != 0 && ...
struct hostapd_iface *hostapd_init(struct hapd_interfaces *interfaces, const char *config_file) { struct hostapd_iface *hapd_iface = NULL; struct hostapd_config *conf = NULL; struct hostapd_data *hapd; size_t i; hapd_iface = hostapd_alloc_iface(); if (hapd_iface == NULL) ...
hostapd_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_interface_deinit(hostapd_iface *iface) { int j; wpa_printf(2, "%s(%p)", "hostapd_interface_deinit", iface); if (iface) { hostapd_set_state(iface, hostapd_iface_state_HAPD_IFACE_DISABLED); eloop_cancel_timeout((eloop_timeout_handler)channel_list_update_timeout, iface,...
void hostapd_interface_deinit(struct hostapd_iface *iface) { int j; wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface); if (iface == NULL) return; hostapd_set_state(iface, HAPD_IFACE_DISABLED); eloop_cancel_timeout(channel_list_update_timeout, iface, NULL); iface->wait_channel_update = 0; #ifdef CONFI...
hostapd_interface_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
hostapd_iface *hostapd_interface_init_bss(hapd_interfaces *interfaces, const char *phy, const char *config_fname, int debug) { const char *v5; hostapd_bss_config **v6; size_t num_bss; hostapd_bss_config *v8; int k; hostapd_i...
struct hostapd_iface * hostapd_interface_init_bss(struct hapd_interfaces *interfaces, const char *phy, const char *config_fname, int debug) { struct hostapd_iface *new_iface = NULL, *iface = NULL; struct hostapd_data *hapd; int k; size_t i, bss_idx; if (!phy || !*phy) return NU...
hostapd_interface_init_bss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_interface_setup_failure_handler(void *eloop_ctx, void *timeout_ctx) { hostapd_data *hapd; if (*((_QWORD *)eloop_ctx + 8) && *((_QWORD *)eloop_ctx + 9) && **((_QWORD **)eloop_ctx + 9)) { hapd = (hostapd_data *)**((_QWORD **)eloop_ctx + 9); if (...
static void hostapd_interface_setup_failure_handler(void *eloop_ctx, void *timeout_ctx) { struct hostapd_iface *iface = eloop_ctx; struct hostapd_data *hapd; if (iface->num_bss < 1 || !iface->bss || !iface->bss[0]) return; hapd = iface->bss[0]; if (hapd...
hostapd_interface_setup_failure_handler
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const char *hostapd_ip_txt(const hostapd_ip_addr *addr, char *buf, size_t buflen) { char *v4; if (!buflen || !addr) return 0; if (addr->af == 2) { v4 = inet_ntoa(addr->u.v4); os_strlcpy(buf, v4, buflen); } else { *buf = 0; } return buf; }
const char *hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf, size_t buflen) { if (buflen == 0 || addr == NULL) return NULL; if (addr->af == AF_INET) { os_strlcpy(buf, inet_ntoa(addr->u.v4), buflen); } else { buf[0] = '\0'; } #ifdef CONFIG_IPV6 if (addr->af ...
hostapd_ip_txt
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_is_usable_chan(hostapd_iface *iface, int frequency, int primary) { const char *v4; const char *v5; const char *v6; hostapd_channel_data *chan; if (!iface->current_mode) return 0; chan = hw_get_channel_freq(iface->current_mode->mode, frequency, 0, iface->hw_featu...
static int hostapd_is_usable_chan(struct hostapd_iface *iface, int frequency, int primary) { struct hostapd_channel_data *chan; if (!iface->current_mode) return 0; chan = hw_get_channel_freq(iface->current_mode->mode, frequency, NULL, iface->hw_...
hostapd_is_usable_chan
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_lci_rep_timeout_handler(void *eloop_data, void *user_ctx) { wpa_printf(2, "RRM: LCI request (token %u) timed out", *((unsigned char *)eloop_data + 3465)); *((_BYTE *)eloop_data + 3467) &= ~1u; }
static void hostapd_lci_rep_timeout_handler(void *eloop_data, void *user_ctx) { struct hostapd_data *hapd = eloop_data; wpa_printf(MSG_DEBUG, "RRM: LCI request (token %u) timed out", hapd->lci_req_token); hapd->lci_req_active = 0; }
hostapd_lci_rep_timeout_handler
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 hostapd_mbo_ie_len(hostapd_data *hapd) { char v2; u8 len; if (!hapd->conf->mbo_enabled && ((hapd->conf->oce & 2) == 0 || (hapd->iface->drv_flags & 0x20000000000000LL) == 0) && ((hapd->conf->oce & 4) == 0 || (hapd->iface->drv_flags & 0x10000000000000LL) == 0)) { return 0; } le...
u8 hostapd_mbo_ie_len(struct hostapd_data *hapd) { u8 len; if (!hapd->conf->mbo_enabled && !OCE_STA_CFON_ENABLED(hapd) && !OCE_AP_ENABLED(hapd)) return 0; len = 6; if (hapd->conf->mbo_enabled) len += 3 + (hapd->mbo_assoc_disallow ? 3 : 0); if (OCE_STA_CFON_ENABLED(hapd) || OCE_AP_ENABLED(hapd...
hostapd_mbo_ie_len
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
hostapd_neighbor_entry *hostapd_neighbor_add(hostapd_data *hapd) { hostapd_neighbor_entry *nr; nr = (hostapd_neighbor_entry *)os_zalloc(0x78u); if (!nr) return 0; dl_list_add_10(&hapd->nr_db, &nr->list); return nr; }
static struct hostapd_neighbor_entry * hostapd_neighbor_add(struct hostapd_data *hapd) { struct hostapd_neighbor_entry *nr; nr = os_zalloc(sizeof(struct hostapd_neighbor_entry)); if (!nr) return NULL; dl_list_add(&hapd->nr_db, &nr->list); return nr; }
hostapd_neighbor_add
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_neighbor_remove(hostapd_data *hapd, const u8 *bssid, const wpa_ssid_value *ssid) { hostapd_neighbor_entry *nr; nr = hostapd_neighbor_get(hapd, bssid, ssid); if (!nr) return -1; hostapd_neighbor_clear_entry(nr); dl_list_del_13(&nr->list); free(nr); return 0; }
int hostapd_neighbor_remove(struct hostapd_data *hapd, const u8 *bssid, const struct wpa_ssid_value *ssid) { struct hostapd_neighbor_entry *nr; nr = hostapd_neighbor_get(hapd, bssid, ssid); if (!nr) return -1; hostapd_neighbor_clear_entry(nr); dl_list_del(&nr->list); os_fre...
hostapd_neighbor_remove
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
size_t hostapd_neighbor_report_len(wpabuf *buf, hostapd_neighbor_entry *nr, int send_lci, int send_civic) { size_t len; len = wpabuf_len_47(nr->nr) + 2; if (send_lci && nr->lci) len += wpabuf_len_47(nr->lci) + 2; if (send_civic && nr->civic) len += wpabuf_len_47(nr->c...
static size_t hostapd_neighbor_report_len(struct wpabuf *buf, struct hostapd_neighbor_entry *nr, int send_lci, int send_civic) { size_t len = 2 + wpabuf_len(nr->nr); if (send_lci && nr->lci) len += 2 + wpabuf_len(nr->lci); i...
hostapd_neighbor_report_len
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_neighbor_set(hostapd_data *hapd, const u8 *bssid, const wpa_ssid_value *ssid, const wpabuf *nr, const wpabuf *lci, const wpabuf *civic, int stationary, u8 bss_parameters) { hostapd_neighbor_entry *entry; entry = hostapd_neighbor...
int hostapd_neighbor_set(struct hostapd_data *hapd, const u8 *bssid, const struct wpa_ssid_value *ssid, const struct wpabuf *nr, const struct wpabuf *lci, const struct wpabuf *civic, int stationary, u8 bss_parameters) { ...
hostapd_neighbor_set
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_neighbor_set_own_report(hostapd_data *hapd) { _BOOL4 v1; _BOOL4 v2; _BOOL4 v3; u8 oper_chwidth_4; u8 phy_type; u8 channel; u8 op_class; u8 center_freq1_idx; u8 center_freq2_idx; u16 capab; u32 bssid_info; int ht; int vht; int he; nr_chan_width width; wpabuf *nr; wpa_ssid_v...
void hostapd_neighbor_set_own_report(struct hostapd_data *hapd) { #ifdef NEED_AP_MLME u16 capab = hostapd_own_capab_info(hapd); int ht = hapd->iconf->ieee80211n && !hapd->conf->disable_11n; int vht = hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac; int he = hapd->iconf->ieee80211ax && !hapd->conf->disable...
hostapd_neighbor_set_own_report
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_neighbor_show(hostapd_data *hapd, char *buf, size_t buflen) { size_t v3; const u8 *v4; size_t v5; const u8 *v6; size_t v7; const u8 *v8; const char *v9; const char *v10; const char *v11; const char *v12; int bufa; int ret; hostapd_neighbor_entry *nr; char *pos; char *end; cha...
int hostapd_neighbor_show(struct hostapd_data *hapd, char *buf, size_t buflen) { struct hostapd_neighbor_entry *nr; char *pos, *end; pos = buf; end = buf + buflen; dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, list) { int ret; char nrie[2 * 255 + 1]; char lci[2 * 255 + 1]; ...
hostapd_neighbor_show
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_new_assoc_sta(hostapd_data *hapd, sta_info *sta, int reassoc) { if (hapd->tkip_countermeasures) { hostapd_drv_sta_deauth(hapd, sta->addr, 14); } else { hostapd_prune_associations(hapd, sta->addr); ap_sta_clear_disconnect_timeouts(hapd, sta); *((_BYTE *)sta + 357) &= ~0x20u; airtime_...
void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta, int reassoc) { if (hapd->tkip_countermeasures) { hostapd_drv_sta_deauth(hapd, sta->addr, WLAN_REASON_MICHAEL_MIC_FAILURE); return; } hostapd_prune_associations(hapd, sta->addr); ap_sta_clear_disconnec...
hostapd_new_assoc_sta
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_notif_assoc(hostapd_data *hapd, const u8 *addr, const u8 *req_ies, size_t req_ies_len, int reassoc) { size_t v6; const u8 *v7; u32 flags; size_t v9; const u8 *v10; dpp_pfs *v11; wpabuf *secret; u16 ret_status; u16 reason; int status; int delay_assoc; wpa_valid...
int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, const u8 *req_ies, size_t req_ies_len, int reassoc) { struct sta_info *sta; int new_assoc; enum wpa_validate_result res; struct ieee802_11_elems elems; const u8 *ie; size_t ielen; u8 buf[sizeof(struct ieee80211_mgmt...
hostapd_notif_assoc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_notify_assoc_fils_finish(hostapd_data *hapd, sta_info *sta) { u16 reply_res; _BOOL4 new_assoc; u8 *p; ieee802_11_elems elems; u8 buf[2312]; unsigned long v7; v7 = __readfsqword(0x28u); wpa_printf(2, "%s FILS: Finish association with %02x:%02x:%02x:%02x:%02x:%02x", ...
void hostapd_notify_assoc_fils_finish(struct hostapd_data *hapd, struct sta_info *sta) { u16 reply_res = WLAN_STATUS_SUCCESS; struct ieee802_11_elems elems; u8 buf[IEEE80211_MAX_MMPDU_SIZE], *p = buf; int new_assoc; wpa_printf(MSG_DEBUG, "%s FILS: Finish association with...
hostapd_notify_assoc_fils_finish
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_ocv_check_csa_sa_query(void *eloop_ctx, void *timeout_ctx) { sta_info *sta; wpa_printf(2, "OCV: Post-CSA SA Query initiation check"); for (sta = (sta_info *)*((_QWORD *)eloop_ctx + 5); sta; sta = sta->next) { if ((*((_BYTE *)sta + 357) & 0x20) != 0) { wpa_printf(2, "OCV: O...
void hostapd_ocv_check_csa_sa_query(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct sta_info *sta; wpa_printf(MSG_DEBUG, "OCV: Post-CSA SA Query initiation check"); for (sta = hapd->sta_list; sta; sta = sta->next) { if (!sta->post_csa_sa_query) continue; wpa_...
hostapd_ocv_check_csa_sa_query
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_owe_iface_iter(hostapd_iface *iface, void *ctx) { const char *v2; size_t i; hostapd_data *bss; for (i = 0; i < iface->num_bss; ++i) { bss = iface->bss[i]; if (!strcmp((const char *)(*((_QWORD *)ctx + 2) + 1784LL), bss->conf->iface)) { v2 = wpa_ssid_txt(bss->conf->ssid....
static int hostapd_owe_iface_iter(struct hostapd_iface *iface, void *ctx) { struct hostapd_data *hapd = ctx; size_t i; for (i = 0; i < iface->num_bss; i++) { struct hostapd_data *bss = iface->bss[i]; if (os_strcmp(hapd->conf->owe_transition_ifname, bss->conf->iface) != 0) continue; wpa_printf...
hostapd_owe_iface_iter
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_owe_trans_get_info(hostapd_data *hapd) { if (hapd->conf->owe_transition_ssid_len && !is_zero_ether_addr_8(hapd->conf->owe_transition_bssid)) return 0; if (hapd->iface->interfaces && hapd->iface->interfaces->for_each_interface) return hapd->iface->interfaces->for_each_interface( hap...
int hostapd_owe_trans_get_info(struct hostapd_data *hapd) { if (hapd->conf->owe_transition_ssid_len > 0 && !is_zero_ether_addr(hapd->conf->owe_transition_bssid)) return 0; if (!hapd->iface->interfaces || !hapd->iface->interfaces->for_each_interface) return hostapd_owe_iface_iter(hapd->iface, hapd); ...
hostapd_owe_trans_get_info
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_parse_ip_addr(const char *txt, hostapd_ip_addr *addr) { if (!inet_aton(txt, &addr->u.v4)) return -1; addr->af = 2; return 0; }
int hostapd_parse_ip_addr(const char *txt, struct hostapd_ip_addr *addr) { #ifndef CONFIG_NATIVE_WINDOWS if (inet_aton(txt, &addr->u.v4)) { addr->af = AF_INET; return 0; } #ifdef CONFIG_IPV6 if (inet_pton(AF_INET6, txt, &addr->u.v6) > 0) { addr->af = AF_INET6; return 0; } #endif #endif retur...
hostapd_parse_ip_addr
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u16 hostapd_parse_location_lci_req_age(const u8 *buf, size_t len) { const u8 *subelem; if (len <= 7) return 0; subelem = get_ie(buf + 4, len - 4, 4u); if (subelem && subelem[1] == 2) return WPA_GET_LE16_17(subelem + 2); else return 0; }
static u16 hostapd_parse_location_lci_req_age(const u8 *buf, size_t len) { const u8 *subelem; if (len < 3 + 1 + 4) return 0; subelem = get_ie(buf + 4, len - 4, LCI_REQ_SUBELEM_MAX_AGE); if (subelem && subelem[1] == 2) return WPA_GET_LE16(subelem + 2); return 0; }
hostapd_parse_location_lci_req_age
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
hostapd_radius_attr *hostapd_parse_radius_attr(const char *value) { size_t v2; u8 *v3; u32 v4; char syntax; hostapd_radius_attr *attr; char *pos; const char *posa; const char *posb; size_t len; size_t lena; attr = (hostapd_radius_attr *)os_zalloc(0x18u); if (!attr) return 0; attr->type = ...
struct hostapd_radius_attr *hostapd_parse_radius_attr(const char *value) { const char *pos; char syntax; struct hostapd_radius_attr *attr; size_t len; attr = os_zalloc(sizeof(*attr)); if (!attr) return NULL; attr->type = atoi(value); pos = os_strchr(value, ':'); if (!pos) { attr->val = wpab...
hostapd_parse_radius_attr
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_periodic_iface(hostapd_iface *iface) { size_t i; ap_list_timer(iface); for (i = 0; i < iface->num_bss; ++i) ; }
void hostapd_periodic_iface(struct hostapd_iface *iface) { size_t i; ap_list_timer(iface); for (i = 0; i < iface->num_bss; i++) { struct hostapd_data *hapd = iface->bss[i]; if (!hapd->started) continue; #ifndef CONFIG_NO_RADIUS hostapd_acl_expire(hapd); #endif } }
hostapd_periodic_iface
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_prepare_rates(hostapd_iface *iface, hostapd_hw_modes *mode) { hostapd_hw_mode v2; int i; int ia; int num_basic_rates; int *basic_rates; hostapd_rate_data *rate; int basic_rates_b[3]; int basic_rates_a[4]; int basic_rates_g[6]; unsigned long v12; v12 = __readfsqword(0x28u); num_basic...
int hostapd_prepare_rates(struct hostapd_iface *iface, struct hostapd_hw_modes *mode) { int i, num_basic_rates = 0; int basic_rates_a[] = {60, 120, 240, -1}; int basic_rates_b[] = {10, 20, -1}; int basic_rates_g[] = {10, 20, 55, 110, -1}; int *basic_rates; if (iface->conf->basic_r...
hostapd_prepare_rates
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_probe_resp_offloads(hostapd_data *hapd, size_t *resp_len) { if ((hapd->iface->drv_flags & 0x200000) == 0) return 0; if (hapd->conf->interworking) { if ((hapd->iface->probe_resp_offloads & 8) == 0) wpa_printf(4, "Device is trying to offload Interworking Probe Response " ...
static u8 *hostapd_probe_resp_offloads(struct hostapd_data *hapd, size_t *resp_len) { if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_PROBE_RESP_OFFLOAD)) return NULL; #ifdef CONFIG_WPS if (hapd->conf->wps_state && hapd->wps_probe_resp_ie && (!(hapd->iface->probe_r...
hostapd_probe_resp_offloads
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_range_rep_timeout_handler(void *eloop_data, void *user_ctx) { wpa_printf(2, "RRM: Range request (token %u) timed out", *((unsigned char *)eloop_data + 3466)); *((_BYTE *)eloop_data + 3467) &= ~2u; }
static void hostapd_range_rep_timeout_handler(void *eloop_data, void *user_ctx) { struct hostapd_data *hapd = eloop_data; wpa_printf(MSG_DEBUG, "RRM: Range request (token %u) timed out", hapd->range_req_token); hapd->range_req_active = 0; }
hostapd_range_rep_timeout_handler
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_register_probereq_cb(hostapd_data *hapd, int (*cb)(void *, const u8 *, const u8 *, const u8 *, const u8 *, size_t, int), void *ctx) { hostapd_probereq_cb *n; hostapd_probereq_cb *na; n = (host...
int hostapd_register_probereq_cb(struct hostapd_data *hapd, int (*cb)(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid, const u8 *ie, size_t ie_len, int...
hostapd_register_probereq_cb
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_reload_bss(hostapd_data *hapd) { size_t wpa_ie_len; hostapd_ssid *ssid; const u8 *wpa_ie; unsigned long v4; v4 = __readfsqword(0x28u); if ((*((_BYTE *)hapd + 28) & 1) != 0) { if (hapd->conf->wmm_enabled < 0) hapd->conf->wmm_enabled = hapd->iconf->ieee80211n | hapd->iconf->i...
static void hostapd_reload_bss(struct hostapd_data *hapd) { struct hostapd_ssid *ssid; if (!hapd->started) return; if (hapd->conf->wmm_enabled < 0) hapd->conf->wmm_enabled = hapd->iconf->ieee80211n | hapd->iconf->ieee80211ax; #ifndef CONFIG_NO_RADIUS radius_client_reconfig(hapd->radius, hapd-...
hostapd_reload_bss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_reload_config(hostapd_iface *iface) { u8 oper_chwidth_1; u8 oper_centr_freq_seg0_idx_1; u8 oper_centr_freq_seg1_idx_1; hostapd_iface *ifacea; int res; size_t j; size_t ja; hapd_interfaces *interfaces; hostapd_data *hapd; hostapd_data *hapda; hostapd_config *newconf; hostapd_config *o...
int hostapd_reload_config(struct hostapd_iface *iface) { struct hapd_interfaces *interfaces = iface->interfaces; struct hostapd_data *hapd = iface->bss[0]; struct hostapd_config *newconf, *oldconf; size_t j; if (iface->config_fname == NULL) { hostapd_clear_old(iface); for (j = 0; j < iface->num_bss;...
hostapd_reload_config
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_remove_iface(hapd_interfaces *interfaces, char *buf) { size_t i; size_t j; size_t k; hostapd_iface *hapd_iface; for (i = 0;; ++i) { if (i >= interfaces->count) return -1; hapd_iface = interfaces->iface[i]; if (!hapd_iface) return -1; if (!strcmp((const char *)*hapd_ifa...
int hostapd_remove_iface(struct hapd_interfaces *interfaces, char *buf) { struct hostapd_iface *hapd_iface; size_t i, j, k = 0; for (i = 0; i < interfaces->count; i++) { hapd_iface = interfaces->iface[i]; if (hapd_iface == NULL) return -1; if (!os_strcmp(hapd_iface->conf->bss[0]->iface, buf)) {...
hostapd_remove_iface
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_send_beacon_req(hostapd_data *hapd, const u8 *addr, u8 req_mode, const wpabuf *req) { size_t v5; char v6; size_t v7; const u8 *v8; beacon_report_mode mode; int ret; sta_info *sta; wpabuf *buf; sta = ap_get_sta(hapd, addr); if (wpabuf_len_47(req) <= 0xC) { ...
int hostapd_send_beacon_req(struct hostapd_data *hapd, const u8 *addr, u8 req_mode, const struct wpabuf *req) { struct wpabuf *buf; struct sta_info *sta = ap_get_sta(hapd, addr); int ret; enum beacon_report_mode mode; const u8 *pos; if (wpabuf_len(req) < 13) { wpa_printf(MSG...
hostapd_send_beacon_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_send_lci_req(hostapd_data *hapd, const u8 *addr) { size_t v3; const u8 *v4; int ret; sta_info *sta; wpabuf *buf; sta = ap_get_sta(hapd, addr); if (sta && (sta->flags & 0x20) != 0) { if ((sta->rrm_enabled_capa[1] & 0x10) != 0) { if ((*((_BYTE *)hapd + 3467) & 1) != 0) { wpa_p...
int hostapd_send_lci_req(struct hostapd_data *hapd, const u8 *addr) { struct wpabuf *buf; struct sta_info *sta = ap_get_sta(hapd, addr); int ret; if (!sta || !(sta->flags & WLAN_STA_AUTHORIZED)) { wpa_printf(MSG_INFO, "Request LCI: Destination address is not connected"); return -1; } if (!(sta->rr...
hostapd_send_lci_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_send_nei_report_resp(hostapd_data *hapd, const u8 *addr, u8 dialog_token, wpa_ssid_value *ssid, u8 lci, u8 civic, u16 lci_max_age) { _BOOL4 v7; u8 v8; u8 v9; size_t v10; const u8 *v11; int send_lci; hostapd_neighbor_entry *nr...
static void hostapd_send_nei_report_resp(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token, struct wpa_ssid_value *ssid, u8 lci, u8 civic, u16 lci_max_age) { struct hostapd_neighbor_entr...
hostapd_send_nei_report_resp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_send_range_req(hostapd_data *hapd, const u8 *addr, u16 random_interval, u8 min_ap, const u8 *responders, unsigned int n_responders) { size_t v7; u8 v8; size_t v9; const u8 *v10; unsigned int i; int ret; sta_info *sta; wpabuf *buf; u8 *l...
int hostapd_send_range_req(struct hostapd_data *hapd, const u8 *addr, u16 random_interval, u8 min_ap, const u8 *responders, unsigned int n_responders) { struct wpabuf *buf; struct sta_info *sta; u8 *len; unsigned int i; int ret; wpa_printf(MSG_DEBUG, ...
hostapd_send_range_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_set_6ghz_sec_chan(hostapd_iface *iface) { u8 oper_centr_freq_seg0_idx_1; if (is_6ghz_op_class(iface->conf->op_class)) { oper_centr_freq_seg0_idx_1 = hostapd_get_oper_centr_freq_seg0_idx_1(iface->conf); if (center_idx_to_bw_6ghz(oper_centr_freq_seg0_idx_1) > 20 && !iface->conf->...
static void hostapd_set_6ghz_sec_chan(struct hostapd_iface *iface) { int bw, seg0; if (!is_6ghz_op_class(iface->conf->op_class)) return; seg0 = hostapd_get_oper_centr_freq_seg0_idx(iface->conf); bw = center_idx_to_bw_6ghz(seg0); if (bw > 20 && !iface->conf->secondary_channel) { if (((iface->conf->c...
hostapd_set_6ghz_sec_chan
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_set_security_params(hostapd_bss_config *bss, int full_config) { void (*v2)(int, const char *, ...); if ((bss->wpa & 2) != 0 && !bss->rsn_pairwise) bss->rsn_pairwise = bss->wpa_pairwise; if (bss->group_cipher) bss->wpa_group = bss->group_cipher; else bss->wpa_group = wpa_select_ap_group...
void hostapd_set_security_params(struct hostapd_bss_config *bss, int full_config) { #ifdef CONFIG_WEP if (bss->individual_wep_key_len == 0) { bss->broadcast_key_idx_min = 0; } #endif if ((bss->wpa & 2) && bss->rsn_pairwise == 0) bss->rsn_pairwise = bss->wpa_pairwise; i...
hostapd_set_security_params
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_setup_bss(hostapd_data *hapd, int first) { const char *bridge; _BOOL4 v4; const char *v5; int set_ssid; int flush_old_stations; int ssid_len; const u8 *addr; hostapd_bss_config *conf; u8 if_addr[6]; u8 addr_0[6]; char force_ifname[16]; u8 ssid[40]; unsigned long v16; v16 = __rea...
static int hostapd_setup_bss(struct hostapd_data *hapd, int first) { struct hostapd_bss_config *conf = hapd->conf; u8 ssid[SSID_MAX_LEN + 1]; int ssid_len, set_ssid; char force_ifname[IFNAMSIZ]; u8 if_addr[ETH_ALEN]; int flush_old_stations = 1; wpa_printf(MSG_DEBUG, "%s(hapd=%p (%s), first=%d)", __func__...
hostapd_setup_bss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_setup_interface_complete(hostapd_iface *iface, int err) { hostapd_iface *v3; unsigned int i; unsigned int ia; int not_ready_in_sync_ifaces; hapd_interfaces *interfaces; hostapd_data *hapd; interfaces = iface->interfaces; hapd = *iface->bss; not_ready_in_sync_ifaces = 0; if ((*((_BYTE *)...
int hostapd_setup_interface_complete(struct hostapd_iface *iface, int err) { struct hapd_interfaces *interfaces = iface->interfaces; struct hostapd_data *hapd = iface->bss[0]; unsigned int i; int not_ready_in_sync_ifaces = 0; if (!iface->need_to_start_in_sync) return hostapd_setup_interface_complete_sync...
hostapd_setup_interface_complete
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_setup_interface_complete_sync(hostapd_iface *iface, int err) { int freq; int channel; const char *v4; int oper_centr_freq_seg1_idx_1; int oper_centr_freq_seg0_idx_1; u8 oper_chwidth_1; int delay_apply_cfg; int res_dfs_offload; int res; hostapd_data *hapd; hostapd_data *hapda; size_t ...
static int hostapd_setup_interface_complete_sync(struct hostapd_iface *iface, int err) { struct hostapd_data *hapd = iface->bss[0]; size_t j; u8 *prev_addr; int delay_apply_cfg = 0; int res_dfs_offload = 0; if (err) goto fail; wpa_printf(MSG_DEBUG, "C...
hostapd_setup_interface_complete_sync
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_setup_sae_pt(hostapd_bss_config *conf) { size_t v2; const char *identifier; size_t v4; sae_password_entry *pw; if (!conf->sae_pwe && !hostapd_sae_pw_id_in_use(conf) && !hostapd_sae_pk_in_use(conf) || conf->sae_pwe == 3 || !wpa_key_mgmt_sae_5(conf->wpa_key_mgmt)) { return 0; ...
int hostapd_setup_sae_pt(struct hostapd_bss_config *conf) { #ifdef CONFIG_SAE struct hostapd_ssid *ssid = &conf->ssid; struct sae_password_entry *pw; if ((conf->sae_pwe == 0 && !hostapd_sae_pw_id_in_use(conf) && !hostapd_sae_pk_in_use(conf)) || conf->sae_pwe == 3 || !wpa_key_mgmt_sae(conf->wpa_key_m...
hostapd_setup_sae_pt
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_setup_wpa(hostapd_data *hapd) { size_t wpa_ie_len; const u8 *wpa_ie; wpa_auth_config _conf; unsigned long v5; v5 = __readfsqword(0x28u); hostapd_wpa_auth_conf(hapd->conf, hapd->iconf, &_conf); _conf.msg_ctx = hapd->msg_ctx; if ((hapd->iface->drv_flags & 0x10000) != 0) _conf.tx_status = ...
int hostapd_setup_wpa(struct hostapd_data *hapd) { struct wpa_auth_config _conf; static const struct wpa_auth_callbacks cb = { .logger = hostapd_wpa_auth_logger, .disconnect = hostapd_wpa_auth_disconnect, .mic_failure_report = hostapd_wpa_auth_mic_failure_report, .psk_failure_report = hostap...
hostapd_setup_wpa
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_single_channel_get_survey(hostapd_iface *iface, survey_results *survey_res) { freq_survey *p_prev; freq_survey *survey; hostapd_channel_data *chan; if (dl_list_empty_8(&survey_res->survey_list)) p_prev = 0; else p_prev = (freq_survey *)&survey_res->...
static void hostapd_single_channel_get_survey(struct hostapd_iface *iface, struct survey_results *survey_res) { struct hostapd_channel_data *chan; struct freq_survey *survey; u64 divisor, dividend; survey = dl_list_first(&survey_res->survey_list, struct freq_survey, list); i...
hostapd_single_channel_get_survey
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_sta_auth(hostapd_data *hapd, const u8 *addr, u16 seq, u16 status, const u8 *ie, size_t len) { sta_info *sta; wpa_driver_sta_auth_params params; unsigned long v13; v13 = __readfsqword(0x28u); if (!hapd->driver || !hapd->driver->sta_auth) return 0; memset(&params, 0, size...
int hostapd_sta_auth(struct hostapd_data *hapd, const u8 *addr, u16 seq, u16 status, const u8 *ie, size_t len) { struct wpa_driver_sta_auth_params params; #ifdef CONFIG_FILS struct sta_info *sta; #endif if (hapd->driver == NULL || hapd->driver->sta_auth == NULL) return 0; os_memset(&p...
hostapd_sta_auth
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_start_dfs_cac(hostapd_iface *iface, hostapd_hw_mode mode, int freq, int channel, int ht_enabled, int vht_enabled, int he_enabled, int sec_channel_offset, int oper_chwidth, int center_segment0, int center_...
int hostapd_start_dfs_cac(struct hostapd_iface *iface, enum hostapd_hw_mode mode, int freq, int channel, int ht_enabled, int vht_enabled, int he_enabled, int sec_channel_offset, int oper_chwidth, int center_segment0,...
hostapd_start_dfs_cac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_switch_channel_fallback(hostapd_iface *iface, const hostapd_freq_params *freq_params) { int bandwidth; int seg0_idx; int seg1_idx; u8 bw; LOBYTE(seg0_idx) = 0; LOBYTE(seg1_idx) = 0; bw = 0; wpa_printf(2, "Restarting all CSA-related BSSes"); if (freq_p...
void hostapd_switch_channel_fallback( struct hostapd_iface *iface, const struct hostapd_freq_params *freq_params) { int seg0_idx = 0, seg1_idx = 0, bw = CHANWIDTH_USE_HT; wpa_printf(MSG_DEBUG, "Restarting all CSA-related BSSes"); if (freq_params->center_freq1) seg0_idx = 36 + (freq_params->center_fr...
hostapd_switch_channel_fallback
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_update_nf(hostapd_iface *iface, hostapd_channel_data *chan, freq_survey *survey) { if (iface->chans_surveyed) { if (dl_list_empty_8(&chan->survey_list)) { chan->min_nf = survey->nf; } else if (survey->nf < chan->min_nf) { chan->min_nf = survey->nf; } if ...
static void hostapd_update_nf(struct hostapd_iface *iface, struct hostapd_channel_data *chan, struct freq_survey *survey) { if (!iface->chans_surveyed) { chan->min_nf = survey->nf; iface->lowest_nf = survey->nf; } else { if (dl_list_empty(&chan...
hostapd_update_nf
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_update_time_adv(hostapd_data *hapd) { _BYTE *v2; _BYTE *v3; u8 time_update_counter; u8 *pos; u8 *posa; os_time t; os_tm tm; unsigned long v9; v9 = __readfsqword(0x28u); if (hapd->conf->time_advertisement != 2) return 0; if (os_get_time(&t) < 0 || os_gmtime(t.sec, &tm) < 0) ret...
int hostapd_update_time_adv(struct hostapd_data *hapd) { const int elen = 2 + 1 + 10 + 5 + 1; struct os_time t; struct os_tm tm; u8 *pos; if (hapd->conf->time_advertisement != 2) return 0; if (os_get_time(&t) < 0 || os_gmtime(t.sec, &tm) < 0) return -1; if (!hapd->time_adv) { hapd->time_adv...
hostapd_update_time_adv
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_validate_bssid_configuration(hostapd_iface *iface) { unsigned int i; unsigned int ia; unsigned int ib; unsigned int ic; unsigned int id; unsigned int ie; unsigned int bits; unsigned int j; unsigned int ja; unsigned int jb; int auto_addr; hostapd_data *hapd; u8 mask[6]; unsigned l...
static int hostapd_validate_bssid_configuration(struct hostapd_iface *iface) { u8 mask[ETH_ALEN] = {0}; struct hostapd_data *hapd = iface->bss[0]; unsigned int i = iface->conf->num_bss, bits = 0, j; int auto_addr = 0; if (hostapd_drv_none(hapd)) return 0; if (iface->conf->use_driver_iface_addr) re...
hostapd_validate_bssid_configuration
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_wpa_auth_conf(hostapd_bss_config *conf, hostapd_config *iconf, wpa_auth_config *wconf) { int sae_pw_id; memset(wconf, 0, sizeof(wpa_auth_config)); wconf->wpa = conf->wpa; wconf->extended_key_id = conf->extended_key_id; wconf->wpa_key_mgmt = conf->wpa_key_mgmt; wconf-...
static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf, struct hostapd_config *iconf, struct wpa_auth_config *wconf) { int sae_pw_id; os_memset(wconf, 0, sizeof(*wconf)); wconf->wpa = conf->wpa; wconf->extended_key_id = conf->extend...
hostapd_wpa_auth_conf
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const u8 *hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, size_t *psk_len, int *vlan_id) { const u8 *psk; hostapd_sta_wpa_psk_short *pos; sta_info *sta; rsn_pmksa_cache_entry *sa; sta = ap_ge...
static const u8 *hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, size_t *psk_len, int *vlan_id) { struct hostapd_data *hapd = ctx; struct sta_...
hostapd_wpa_auth_get_psk
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_wpa_auth_send_ether(void *ctx, const u8 *dst, u16 proto, const u8 *data, size_t data_len) { int ret; l2_ethhdr *buf; if (!*((_QWORD *)ctx + 321)) return -1; buf = (l2_ethhdr *)malloc(data_len + 14); if (!buf) return -1; memcpy(buf, dst, 6u); memcpy(buf-...
static int hostapd_wpa_auth_send_ether(void *ctx, const u8 *dst, u16 proto, const u8 *data, size_t data_len) { struct hostapd_data *hapd = ctx; struct l2_ethhdr *buf; int ret; #ifdef CONFIG_TESTING_OPTIONS if (hapd->ext_eapol_frame_io && proto == ETH_P_EAPOL) { size_t...
hostapd_wpa_auth_send_ether
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_wpa_auth_send_oui(void *ctx, const u8 *dst, u8 oui_suffix, const u8 *data, size_t data_len) { return -1; }
static int hostapd_wpa_auth_send_oui(void *ctx, const u8 *dst, u8 oui_suffix, const u8 *data, size_t data_len) { #ifdef CONFIG_ETH_P_OUI struct hostapd_data *hapd = ctx; struct eth_p_oui_ctx *oui_ctx; wpa_printf( MSG_DEBUG, "RRB(%s): send to dst=" MACSTR " oui_suffix=%u...
hostapd_wpa_auth_send_oui
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_wpa_auth_set_eapol(void *ctx, const u8 *addr, wpa_eapol_variable var, int value) { sta_info *sta; sta = ap_get_sta((hostapd_data *)ctx, addr); if (sta) { switch (var) { case WPA_EAPOL_portEnabled: ieee802_1x_notify_port_enabled(sta->eapol_sm, value != 0)...
static void hostapd_wpa_auth_set_eapol(void *ctx, const u8 *addr, wpa_eapol_variable var, int value) { struct hostapd_data *hapd = ctx; struct sta_info *sta = ap_get_sta(hapd, addr); if (sta == NULL) return; switch (var) { case WPA_EAPOL_portEnabled: ieee802_1x_n...
hostapd_wpa_auth_set_eapol
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len, key_flag key_flag) { const char *ifname; ifname = (const char *)*((_QWORD *)ctx + 2); if (vlan_id > 0) { ifname = hostapd_get_vlan_id_i...
static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len, enum key_flag key_flag) { struct hostapd_data *hapd = ctx; const char *ifname = hapd->conf->iface; if (vlan_id > ...
hostapd_wpa_auth_set_key
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_wpa_auth_update_vlan(void *ctx, const u8 *addr, int vlan_id) { return 0; }
static int hostapd_wpa_auth_update_vlan(void *ctx, const u8 *addr, int vlan_id) { #ifndef CONFIG_NO_VLAN struct hostapd_data *hapd = ctx; struct sta_info *sta; sta = ap_get_sta(hapd, addr); if (!sta) return -1; if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_VLAN_...
hostapd_wpa_auth_update_vlan
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
size_t hostapd_write_ht_mcs_bitmask(char *buf, size_t buflen, size_t curr_len, const u8 *mcs_set) { int ret; int reta; size_t lena; ret = snprintf(&buf[curr_len], buflen - curr_len, "ht_mcs_bitmask="); if (os_snprintf_error_24(buflen - curr_len, ret)) return curr_len; ...
static size_t hostapd_write_ht_mcs_bitmask(char *buf, size_t buflen, size_t curr_len, const u8 *mcs_set) { int ret; size_t len = curr_len; ret = os_snprintf(buf + len, buflen - len, "ht_mcs_bitmask="); if (os_snprintf_error(buflen - len, ret)) return len; len +=...
hostapd_write_ht_mcs_bitmask
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hs20_add_nai_home_realm_matches(hostapd_data *hapd, wpabuf *buf, const u8 *home_realm, size_t home_realm_len) { u8 *v5; u8 num_matching; u8 num_realms; u8 encoding; u8 realm_len; unsigned int i; unsigned int ia; unsigned int j; ...
static int hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) { unsigned int i, j, k; u8 num_realms, num_matching ...
hs20_add_nai_home_realm_matches
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hs20_anqp_send_req(wpa_supplicant *wpa_s, const u8 *dst, u32 stypes, const u8 *payload, size_t payload_len, int inmem) { int freq; int res; wpa_bss *bss; wpabuf *buf; icon_entry *icon_entry; bss = wpa_bss_get_bssid(wpa_s, dst); if (!bss) { wpa_printf( 4, "AN...
int hs20_anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, u32 stypes, const u8 *payload, size_t payload_len, int inmem) { struct wpabuf *buf; int ret = 0; int freq; struct wpa_bss *bss; int res; struct icon_entry *icon_entry; bss = wpa_bss_get_bssid(wpa_s, dst); if (!bs...
hs20_anqp_send_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *hs20_build_anqp_req(u32 stypes, const u8 *payload, size_t payload_len) { wpabuf *buf; buf = gas_anqp_build_initial_req(0, payload_len + 100); if (!buf) return 0; hs20_put_anqp_req(stypes, payload, payload_len, buf); return buf; }
static struct wpabuf *hs20_build_anqp_req(u32 stypes, const u8 *payload, size_t payload_len) { struct wpabuf *buf; buf = gas_anqp_build_initial_req(0, 100 + payload_len); if (buf == NULL) return NULL; hs20_put_anqp_req(stypes, payload, payload_len, buf); return...
hs20_build_anqp_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hs20_cancel_fetch_osu(wpa_supplicant *wpa_s) { wpa_printf(2, "Cancel OSU fetch"); interworking_stop_fetch_anqp(wpa_s); *((_BYTE *)wpa_s + 3464) &= ~0x80u; *((_BYTE *)wpa_s + 3464) &= ~2u; *((_BYTE *)wpa_s + 3464) &= ~0x40u; *((_BYTE *)wpa_s + 3465) &= ~1u; }
void hs20_cancel_fetch_osu(struct wpa_supplicant *wpa_s) { wpa_printf(MSG_DEBUG, "Cancel OSU fetch"); interworking_stop_fetch_anqp(wpa_s); wpa_s->fetch_osu_waiting_scan = 0; wpa_s->network_select = 0; wpa_s->fetch_osu_info = 0; wpa_s->fetch_osu_icon_in_progress = 0; }
hs20_cancel_fetch_osu
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hs20_configure_frame_filters(wpa_supplicant *wpa_s) { u32 filter; wpa_bss *bss; u8 *bssid; const u8 *ie; const u8 *ext_capa; bss = wpa_s->current_bss; filter = 0; if (bss && is_hs20_network(wpa_s, wpa_s->current_ssid, bss)) { ie = wpa_bss_get_vendor_ie(bss, 0x506F9A10u); if (ie && ie[1] > ...
void hs20_configure_frame_filters(struct wpa_supplicant *wpa_s) { struct wpa_bss *bss = wpa_s->current_bss; u8 *bssid = wpa_s->bssid; const u8 *ie; const u8 *ext_capa; u32 filter = 0; if (!bss || !is_hs20_network(wpa_s, wpa_s->current_ssid, bss)) { wpa_printf(MSG_DEBUG, "Not configuring ...
hs20_configure_frame_filters
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hs20_continue_icon_fetch(void *eloop_ctx, void *sock_ctx) { if ((*((_BYTE *)eloop_ctx + 3465) & 1) != 0) hs20_next_osu_icon((wpa_supplicant *)eloop_ctx); }
static void hs20_continue_icon_fetch(void *eloop_ctx, void *sock_ctx) { struct wpa_supplicant *wpa_s = eloop_ctx; if (wpa_s->fetch_osu_icon_in_progress) hs20_next_osu_icon(wpa_s); }
hs20_continue_icon_fetch
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hs20_deinit(wpa_supplicant *wpa_s) { eloop_cancel_timeout((eloop_timeout_handler)hs20_continue_icon_fetch, wpa_s, 0); hs20_free_osu_prov(wpa_s); if (wpa_s->icon_head.next) hs20_del_icon(wpa_s, 0, 0); }
void hs20_deinit(struct wpa_supplicant *wpa_s) { eloop_cancel_timeout(hs20_continue_icon_fetch, wpa_s, NULL); hs20_free_osu_prov(wpa_s); if (wpa_s->icon_head.next) hs20_del_icon(wpa_s, NULL, NULL); }
hs20_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hs20_del_icon(wpa_supplicant *wpa_s, const u8 *bssid, const char *file_name) { int count; icon_entry *icon; icon_entry *tmp; count = 0; if (bssid) { if (file_name) wpa_printf(2, "HS20: Delete stored icons for %02x:%02x:%02x:%02x:%02x:%02x " "f...
int hs20_del_icon(struct wpa_supplicant *wpa_s, const u8 *bssid, const char *file_name) { struct icon_entry *icon, *tmp; int count = 0; if (!bssid) wpa_printf(MSG_DEBUG, "HS20: Delete all stored icons"); else if (!file_name) wpa_printf(MSG_DEBUG, "HS20: Delete all stored icons for " M...
hs20_del_icon
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hs20_fetch_osu(wpa_supplicant *wpa_s, int skip_scan) { if (wpa_s->wpa_state == wpa_states_WPA_INTERFACE_DISABLED) { wpa_printf(2, "HS 2.0: Cannot start fetch_osu - interface disabled"); return -1; } else if (wpa_s->scanning) { wpa_printf(2, "HS 2.0: Cannot start fetch_osu - scanning"); return -1...
int hs20_fetch_osu(struct wpa_supplicant *wpa_s, int skip_scan) { if (wpa_s->wpa_state == WPA_INTERFACE_DISABLED) { wpa_printf(MSG_DEBUG, "HS 2.0: Cannot start fetch_osu - " "interface disabled"); return -1; } if (wpa_s->scanning) { wpa_printf(MSG_DEBUG, "HS 2.0: Cannot star...
hs20_fetch_osu
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
icon_entry *hs20_find_icon(wpa_supplicant *wpa_s, const u8 *bssid, const char *file_name) { icon_entry *icon; for (icon = (icon_entry *)wpa_s->icon_head.next; icon != (icon_entry *)&wpa_s->icon_head; icon = (icon_entry *)icon->list.next) { if (!memcmp(icon->bssid, bssid...
static struct icon_entry *hs20_find_icon(struct wpa_supplicant *wpa_s, const u8 *bssid, const char *file_name) { struct icon_entry *icon; dl_list_for_each(icon, &wpa_s->icon_head, struct icon_entry, list) { if (os_memcmp(icon->bs...
hs20_find_icon
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hs20_free_icon_entry(icon_entry *icon) { char *file_name; if (icon->file_name) file_name = icon->file_name; else file_name = "N/A"; wpa_printf(2, "HS20: Free stored icon from %02x:%02x:%02x:%02x:%02x:%02x " "dialog_token=%u file_name=%s image_len=%u", icon->b...
static void hs20_free_icon_entry(struct icon_entry *icon) { wpa_printf(MSG_DEBUG, "HS20: Free stored icon from " MACSTR " dialog_token=%u file_name=%s image_len=%u", MAC2STR(icon->bssid), icon->dialog_token, icon->file_name ? icon->file_name : "N/A", (u...
hs20_free_icon_entry
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hs20_free_osu_prov(wpa_supplicant *wpa_s) { size_t i; for (i = 0; i < wpa_s->osu_prov_count; ++i) hs20_free_osu_prov_entry(&wpa_s->osu_prov[i]); free(wpa_s->osu_prov); wpa_s->osu_prov = 0; wpa_s->osu_prov_count = 0; }
void hs20_free_osu_prov(struct wpa_supplicant *wpa_s) { size_t i; for (i = 0; i < wpa_s->osu_prov_count; i++) hs20_free_osu_prov_entry(&wpa_s->osu_prov[i]); os_free(wpa_s->osu_prov); wpa_s->osu_prov = NULL; wpa_s->osu_prov_count = 0; }
hs20_free_osu_prov
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hs20_free_osu_prov_entry(osu_provider *prov) { ; }
static void hs20_free_osu_prov_entry(struct osu_provider *prov) {}
hs20_free_osu_prov_entry
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hs20_get_icon(wpa_supplicant *wpa_s, const u8 *bssid, const char *file_name, size_t offset, size_t size, char *reply, size_t buf_len) { size_t sizea; int reply_size; size_t b64_size; icon_entry *icon; size_t out_size; char *b64; unsigned long v17; sizea = size; v17 = __readfsqwo...
int hs20_get_icon(struct wpa_supplicant *wpa_s, const u8 *bssid, const char *file_name, size_t offset, size_t size, char *reply, size_t buf_len) { struct icon_entry *icon; size_t out_size; char *b64; size_t b64_size; int reply_size; wpa_printf(MSG_DEBUG, "HS20: Get icon ...
hs20_get_icon
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hs20_get_nai_home_realm_list(wpa_supplicant *wpa_s, char *dst) { int used; int ret; wpa_cred *cred; size_t len; size_t lena; u8 *buf; u8 dst_addr[6]; unsigned long v10; v10 = __readfsqword(0x28u); cred = wpa_s->conf->cred; used = hwaddr_aton2(dst, dst_addr); if (used < 0) return -1; w...
static int hs20_get_nai_home_realm_list(struct wpa_supplicant *wpa_s, char *dst) { struct wpa_cred *cred = wpa_s->conf->cred; u8 dst_addr[ETH_ALEN]; int used; u8 *buf; size_t len; int ret; used = hwaddr_aton2(dst, dst_addr); if (used < 0) return -1; while ...
hs20_get_nai_home_realm_list
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hs20_get_pps_mo_id(wpa_supplicant *wpa_s, wpa_ssid *ssid) { wpa_cred *cred; if (!ssid) return 0; if (ssid->update_identifier) return ssid->update_identifier; if (!ssid->parent_cred) return 0; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred == ssid->parent_cred) re...
int hs20_get_pps_mo_id(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) { struct wpa_cred *cred; if (ssid == NULL) return 0; if (ssid->update_identifier) return ssid->update_identifier; if (ssid->parent_cred == NULL) return 0; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { i...
hs20_get_pps_mo_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hs20_icon_fetch_failed(wpa_supplicant *wpa_s) { hs20_osu_icon_fetch_result(wpa_s, -1); eloop_cancel_timeout((eloop_timeout_handler)hs20_continue_icon_fetch, wpa_s, 0); eloop_register_timeout(0, 0, (eloop_timeout_handler)hs20_continue_icon_fetch, wpa_s, 0); }
void hs20_icon_fetch_failed(struct wpa_supplicant *wpa_s) { hs20_osu_icon_fetch_result(wpa_s, -1); eloop_cancel_timeout(hs20_continue_icon_fetch, wpa_s, NULL); eloop_register_timeout(0, 0, hs20_continue_icon_fetch, wpa_s, NULL); }
hs20_icon_fetch_failed
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hs20_icon_request(wpa_supplicant *wpa_s, char *cmd, int inmem) { size_t v4; int used; u8 dst_addr[6]; unsigned long v8; v8 = __readfsqword(0x28u); used = hwaddr_aton2(cmd, dst_addr); if (used < 0) return -1; while (cmd[used] == 32) ++used; *((_BYTE *)wpa_s + 3465) &= ~1u; v4 = strlen(&c...
static int hs20_icon_request(struct wpa_supplicant *wpa_s, char *cmd, int inmem) { u8 dst_addr[ETH_ALEN]; int used; char *icon; used = hwaddr_aton2(cmd, dst_addr); if (used < 0) return -1; while (cmd[used] == ' ') used++; icon = &cmd[used]; wpa_s->fetch_osu_icon_i...
hs20_icon_request
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hs20_init(wpa_supplicant *wpa_s) { dl_list_init_6(&wpa_s->icon_head); }
void hs20_init(struct wpa_supplicant *wpa_s) { dl_list_init(&wpa_s->icon_head); }
hs20_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0