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
hostapd_iface *hostapd_alloc_iface() { hostapd_iface *hapd_iface; hapd_iface = (hostapd_iface *)os_zalloc(0x9D8u); if (!hapd_iface) return 0; dl_list_init_8(&hapd_iface->sta_seen); return hapd_iface; }
struct hostapd_iface *hostapd_alloc_iface(void) { struct hostapd_iface *hapd_iface; hapd_iface = os_zalloc(sizeof(*hapd_iface)); if (!hapd_iface) return NULL; dl_list_init(&hapd_iface->sta_seen); return hapd_iface; }
hostapd_alloc_iface
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_allowed_address(hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, radius_sta *out, int is_probe_req) { int res; memset(out, 0, sizeof(radius_sta)); res = hostapd_check_acl(hapd, addr, &out->vlan_id); if (res == 2) return 0; else return res; }
int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, struct radius_sta *out, int is_probe_req) { int res; os_memset(out, 0, sizeof(*out)); res = hostapd_check_acl(hapd, addr, &out->vlan_id); if (res != HOSTAPD...
hostapd_allowed_address
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_build_ap_extra_ies(hostapd_data *hapd, wpabuf **beacon_ret, wpabuf **proberesp_ret, wpabuf **assocresp_ret) { wpabuf *beacon; wpabuf *proberesp; wpabuf *assocresp; u8 *pos; u8 buf[200]; unsigned long v12; v12 = __readfsqword(0x28u); beacon = 0; proberesp = 0...
int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, struct wpabuf **beacon_ret, struct wpabuf **proberesp_ret, struct wpabuf **assocresp_ret) { struct wpabuf *beacon = NULL, *proberesp = NULL, *assocresp = NULL; u8 bu...
hostapd_build_ap_extra_ies
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_build_beacon_data(hostapd_data *hapd, beacon_data *beacon) { size_t v3; size_t v4; size_t v5; int ret; int reta; wpabuf *beacon_extra; wpabuf *proberesp_extra; wpabuf *assocresp_extra; wpa_driver_ap_params params; unsigned long v12; v12 = __readfsqword(0x28u); memset(beacon, 0, size...
static int hostapd_build_beacon_data(struct hostapd_data *hapd, struct beacon_data *beacon) { struct wpabuf *beacon_extra, *proberesp_extra, *assocresp_extra; struct wpa_driver_ap_params params; int ret; os_memset(beacon, 0, sizeof(*beacon)); ret = ieee802_11_build_ap_par...
hostapd_build_beacon_data
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_change_config_freq(hostapd_data *hapd, hostapd_config *conf, hostapd_freq_params *params, hostapd_freq_params *old_params) { int secondary_channel; int ieee80211ax; int ieee80211ac; int ieee80211n; int v9; int freq; int bandwidth; ...
static int hostapd_change_config_freq(struct hostapd_data *hapd, struct hostapd_config *conf, struct hostapd_freq_params *params, struct hostapd_freq_params *old_params) { int channel; u8 seg0, seg1; ...
hostapd_change_config_freq
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_channel_list_updated(hostapd_iface *iface, int initiator) { if ((*((_BYTE *)iface + 80) & 1) != 0 && initiator == 1) { wpa_printf(2, "Channel list updated - continue setup"); eloop_cancel_timeout((eloop_timeout_handler)channel_list_update_timeout, iface, 0); setup_int...
void hostapd_channel_list_updated(struct hostapd_iface *iface, int initiator) { if (!iface->wait_channel_update || initiator != REGDOM_SET_BY_USER) return; wpa_printf(MSG_DEBUG, "Channel list updated - continue setup"); eloop_cancel_timeout(channel_list_update_timeout, iface, NULL); setup_interface2(iface)...
hostapd_channel_list_updated
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_clean_rrm(hostapd_data *hapd) { hostapd_free_neighbor_db(hapd); eloop_cancel_timeout((eloop_timeout_handler)hostapd_lci_rep_timeout_handler, hapd, 0); *((_BYTE *)hapd + 3467) &= ~1u; eloop_cancel_timeout((eloop_timeout_handler)hostapd_range_rep_timeout_handler, ...
void hostapd_clean_rrm(struct hostapd_data *hapd) { hostapd_free_neighbor_db(hapd); eloop_cancel_timeout(hostapd_lci_rep_timeout_handler, hapd, NULL); hapd->lci_req_active = 0; eloop_cancel_timeout(hostapd_range_rep_timeout_handler, hapd, NULL); hapd->range_req_active = 0; }
hostapd_clean_rrm
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_clear_old(hostapd_iface *iface) { size_t j; for (j = 0; j < iface->num_bss; ++j) hostapd_flush_old_stations(iface->bss[j], 2u); }
static void hostapd_clear_old(struct hostapd_iface *iface) { size_t j; for (j = 0; j < iface->num_bss; j++) { hostapd_flush_old_stations(iface->bss[j], WLAN_REASON_PREV_AUTH_NOT_VALID); #ifdef CONFIG_WEP hostapd_broadcast_wep_clear(iface->bss[j]); #endif #ifndef CONFIG_NO_RADIUS radius_client_flush(i...
hostapd_clear_old
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_config_check_bss(hostapd_bss_config *bss, hostapd_config *conf, int full_config) { size_t i; if (full_config && is_6ghz_op_class(conf->op_class) && !hostapd_config_check_bss_6g(bss)) return -1; if (!full_config || !bss->ieee802_1x || bss->eap_server || bss...
static int hostapd_config_check_bss(struct hostapd_bss_config *bss, struct hostapd_config *conf, int full_config) { if (full_config && is_6ghz_op_class(conf->op_class) && !hostapd_config_check_bss_6g(bss)) return -1; if (full_config ...
hostapd_config_check_bss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
hostapd_config *hostapd_config_defaults() { hostapd_config *conf; hostapd_bss_config *bss; conf = (hostapd_config *)os_zalloc(0x1C0u); bss = (hostapd_bss_config *)os_zalloc(0x750u); if (conf && bss) { conf->bss = (hostapd_bss_config **)os_calloc_8(1u, 8u); if (conf->bss) { *conf->bss = bss; ...
struct hostapd_config *hostapd_config_defaults(void) { #define ecw2cw(ecw) ((1 << (ecw)) - 1) struct hostapd_config *conf; struct hostapd_bss_config *bss; const int aCWmin = 4, aCWmax = 10; const struct hostapd_wmm_ac_params ac_bk = {aCWmin, aCWmax, 7, 0, 0}; const struct hostapd_wmm_ac_params ac_be = {aCWmi...
hostapd_config_defaults
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_config_defaults_bss(hostapd_bss_config *bss) { dl_list_init_9(&bss->anqp_elem); bss->logger_syslog_level = hostapd_logger_level_HOSTAPD_LEVEL_INFO; bss->logger_stdout_level = hostapd_logger_level_HOSTAPD_LEVEL_INFO; bss->logger_syslog = -1; bss->logger_stdout = -1; bss->auth_algs = 1; bss->ea...
void hostapd_config_defaults_bss(struct hostapd_bss_config *bss) { dl_list_init(&bss->anqp_elem); bss->logger_syslog_level = HOSTAPD_LEVEL_INFO; bss->logger_stdout_level = HOSTAPD_LEVEL_INFO; bss->logger_syslog = (unsigned int)-1; bss->logger_stdout = (unsigned int)-1; #ifdef CONFIG_WEP bss->auth_algs = W...
hostapd_config_defaults_bss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_config_free(hostapd_config *conf) { size_t i; if (conf) { for (i = 0; i < conf->num_bss; ++i) hostapd_config_free_bss(conf->bss[i]); free(conf->bss); free(conf->supported_rates); free(conf->basic_rates); free(conf->acs_ch_list.range); free(conf->acs_freq_list.range); ...
void hostapd_config_free(struct hostapd_config *conf) { size_t i; if (conf == NULL) return; for (i = 0; i < conf->num_bss; i++) hostapd_config_free_bss(conf->bss[i]); os_free(conf->bss); os_free(conf->supported_rates); os_free(conf->basic_rates); os_free(conf->acs_ch_list.range); os_free(conf-...
hostapd_config_free
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_config_free_anqp_elem(hostapd_bss_config *conf) { dl_list *v1; anqp_element *elem; while (1) { v1 = dl_list_empty_6(&conf->anqp_elem) ? 0LL : conf->anqp_elem.next; elem = (anqp_element *)v1; if (!v1) break; dl_list_del_9(v1); wpabuf_free(elem->payload); free(elem); } ...
static void hostapd_config_free_anqp_elem(struct hostapd_bss_config *conf) { struct anqp_element *elem; while ((elem = dl_list_first(&conf->anqp_elem, struct anqp_element, list))) { dl_list_del(&elem->list); wpabuf_free(elem->payload); os_free(elem); } }
hostapd_config_free_anqp_elem
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_config_free_bss(hostapd_bss_config *conf) { size_t i; size_t ia; size_t j; hs20_osu_provider *p; if (conf) { hostapd_config_clear_wpa_psk(&conf->ssid.wpa_psk); str_clear_free(conf->ssid.wpa_passphrase); free(conf->ssid.wpa_psk_file); sae_deinit_pt(conf->ssid.pt); hostapd_conf...
void hostapd_config_free_bss(struct hostapd_bss_config *conf) { #if defined(CONFIG_WPS) || defined(CONFIG_HS20) size_t i; #endif if (conf == NULL) return; hostapd_config_clear_wpa_psk(&conf->ssid.wpa_psk); str_clear_free(conf->ssid.wpa_passphrase); os_free(conf->ssid.wpa_psk_file); #ifdef CONFIG_WEP ...
hostapd_config_free_bss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_config_free_fils_realms(hostapd_bss_config *conf) { dl_list *v1; fils_realm *realm; while (1) { v1 = dl_list_empty_6(&conf->fils_realms) ? 0LL : conf->fils_realms.next; realm = (fils_realm *)v1; if (!v1) break; dl_list_del_9(v1); free(realm); } }
static void hostapd_config_free_fils_realms(struct hostapd_bss_config *conf) { #ifdef CONFIG_FILS struct fils_realm *realm; while ((realm = dl_list_first(&conf->fils_realms, struct fils_realm, list))) { dl_list_del(&realm->list); os_free(realm); } #endif }
hostapd_config_free_fils_realms
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_config_read_wpa_psk(const char *fname, hostapd_ssid *ssid) { u8 *v3; int line; int ret; int ok; int vlan_id; int wps; int len; char *context; char *context2; char *pos; const char *keyid; char *token; char *value; FILE *f; char *name; hostapd_wpa_psk *psk; u8 addr[6]; cha...
static int hostapd_config_read_wpa_psk(const char *fname, struct hostapd_ssid *ssid) { FILE *f; char buf[128], *pos; const char *keyid; char *context; char *context2; char *token; char *name; char *value; int line = 0, ret = 0, len, ok; u8 addr[ETH_ALEN]; str...
hostapd_config_read_wpa_psk
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_ctrl_iface_deauthenticate(hostapd_data *hapd, const char *txtaddr) { u16 reason; int encrypt; char *pos; char *posa; sta_info *sta; ieee80211_mgmt mgmt; u8 addr[6]; unsigned long v10; v10 = __readfsqword(0x28u); reason = 2; wpa_msg(hapd->msg_ctx, 2, "CTRL_IFACE DEAUTHENTICATE %s", txt...
int hostapd_ctrl_iface_deauthenticate(struct hostapd_data *hapd, const char *txtaddr) { u8 addr[ETH_ALEN]; struct sta_info *sta; const char *pos; u16 reason = WLAN_REASON_PREV_AUTH_NOT_VALID; wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "CTRL_IFACE DEAUTHENTICATE %s", txtaddr); ...
hostapd_ctrl_iface_deauthenticate
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_ctrl_iface_disassociate(hostapd_data *hapd, const char *txtaddr) { u16 reason; int encrypt; char *pos; char *posa; sta_info *sta; ieee80211_mgmt mgmt; u8 addr[6]; unsigned long v10; v10 = __readfsqword(0x28u); reason = 2; wpa_msg(hapd->msg_ctx, 2, "CTRL_IFACE DISASSOCIATE %s", txtaddr...
int hostapd_ctrl_iface_disassociate(struct hostapd_data *hapd, const char *txtaddr) { u8 addr[ETH_ALEN]; struct sta_info *sta; const char *pos; u16 reason = WLAN_REASON_PREV_AUTH_NOT_VALID; wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "CTRL_IFACE DISASSOCIATE %s", txtaddr); if (hw...
hostapd_ctrl_iface_disassociate
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_ctrl_iface_sta(hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) { int ret; int reta; sta_info *sta; u8 addr[6]; unsigned long v11; v11 = __readfsqword(0x28u); if (hwaddr_aton(txtaddr, addr)) { ret = snprintf(buf, buflen, "FAIL\n"); if (os_s...
int hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) { u8 addr[ETH_ALEN]; int ret; const char *pos; struct sta_info *sta; if (hwaddr_aton(txtaddr, addr)) { ret = os_snprintf(buf, buflen, "FAIL\n"); if (os_snprintf_error(buflen...
hostapd_ctrl_iface_sta
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_ctrl_iface_sta_mib(hostapd_data *hapd, sta_info *sta, char *buf, size_t buflen) { const char *v5; const char *str; int v7; const char *v8; int len; int lena; int lenb; int lenc; int lend; int lene; int lenf; int leng; int lenh; int i; unsigned int...
static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) { int len, res, ret, i; const char *keyid; if (!sta) return 0; len = 0; ret = os_snprintf(buf + len, buflen - len, ...
hostapd_ctrl_iface_sta_mib
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_ctrl_iface_sta_next(hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) { int ret; sta_info *sta; u8 addr[6]; unsigned long v10; v10 = __readfsqword(0x28u); if (!hwaddr_aton(txtaddr, addr) && (sta = ap_get_sta(hapd, addr)) != 0) { if (sta->next...
int hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) { u8 addr[ETH_ALEN]; struct sta_info *sta; int ret; if (hwaddr_aton(txtaddr, addr) || (sta = ap_get_sta(hapd, addr)) == NULL) { ret = os_snprintf(buf, buflen, "FAIL\n");...
hostapd_ctrl_iface_sta_next
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_ctrl_iface_status(hostapd_data *hapd, char *buf, size_t buflen) { int num_sta_ht_no_gf; int olbc; int num_sta_no_short_preamble; int num_sta_no_short_slot_time; int num_sta_non_erp; const char *v8; int v10; _BOOL4 v11; _BOOL4 v12; _BOOL4 v13; int secondary_channel; const char *v15; ...
int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf, size_t buflen) { struct hostapd_iface *iface = hapd->iface; struct hostapd_hw_modes *mode = iface->current_mode; int len = 0, ret, j; size_t i; ret = os_snprintf(buf + len, buflen - len, "sta...
hostapd_ctrl_iface_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_data_alloc(hostapd_iface *hapd_iface, hostapd_config *conf) { hostapd_data **v3; size_t i; hapd_iface->bss = (hostapd_data **)os_calloc_7(conf->num_bss, 8u); if (!hapd_iface->bss) return -1; for (i = 0;; ++i) { if (i >= conf->num_bss) { hapd_iface->conf = conf; hapd_iface->num...
static int hostapd_data_alloc(struct hostapd_iface *hapd_iface, struct hostapd_config *conf) { size_t i; struct hostapd_data *hapd; hapd_iface->bss = os_calloc(conf->num_bss, sizeof(struct hostapd_data *)); if (hapd_iface->bss == NULL) return -1; for (i = 0; i < conf->num_b...
hostapd_data_alloc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_deinit_wpa(hostapd_data *hapd) { ieee80211_tkip_countermeasures_deinit(hapd); ptksa_cache_deinit(hapd->ptksa); hapd->ptksa = 0; rsn_preauth_iface_deinit(hapd); if (hapd->wpa_auth) { wpa_deinit(hapd->wpa_auth); hapd->wpa_auth = 0; if (hapd->drv_priv && hostapd_set_privacy(hapd, 0)) ...
void hostapd_deinit_wpa(struct hostapd_data *hapd) { ieee80211_tkip_countermeasures_deinit(hapd); ptksa_cache_deinit(hapd->ptksa); hapd->ptksa = NULL; rsn_preauth_iface_deinit(hapd); if (hapd->wpa_auth) { wpa_deinit(hapd->wpa_auth); hapd->wpa_auth = NULL; if (hapd->drv_priv && hostapd_set_privac...
hostapd_deinit_wpa
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dfs_complete_cac(hostapd_iface *iface, int success, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) { wpa_msg((*iface->bss)->msg_ctx, 3, "DFS-CAC-COMPLETED success=%d freq=%d ht_enabled=%d chan_offset=%d " ...
int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) { wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO, DFS_EVENT_CAC_COMPLETED "success=%d freq=%d ht_enabled=%d ...
hostapd_dfs_complete_cac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dfs_nop_finished(hostapd_iface *iface, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) { wpa_msg((*iface->bss)->msg_ctx, 3, "DFS-NOP-FINISHED freq=%d ht_enabled=%d chan_offset=%d chan_width=%d " "cf1...
int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) { wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO, DFS_EVENT_NOP_FINISHED "freq=%d ht_enabled=%d chan_offset=%d ...
hostapd_dfs_nop_finished
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dfs_start_cac(hostapd_iface *iface, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) { hostapd_set_state(iface, hostapd_iface_state_HAPD_IFACE_DFS); iface->dfs_cac_ms = 60000; wpa_msg((*iface->bss)->msg_ctx, 3, "DFS-CAC-START freq=%d chan...
int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) { hostapd_set_state(iface, HAPD_IFACE_DFS); iface->dfs_cac_ms = 60000; wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO, DFS_EVENT_CAC_START "freq=%d ch...
hostapd_dfs_start_cac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dfs_start_channel_switch(hostapd_iface *iface) { const char *v1; const char *v2; u8 oper_centr_freq_seg0_idx; u8 oper_centr_freq_seg1_idx; u8 current_vht_oper_chwidth; u8 new_vht_oper_chwidth; int secondary_channel; int skip_radar; unsigned int i; int err; int ieee80211_mode; hostapd...
static int hostapd_dfs_start_channel_switch(struct hostapd_iface *iface) { struct hostapd_channel_data *channel; int secondary_channel; u8 oper_centr_freq_seg0_idx; u8 oper_centr_freq_seg1_idx; u8 new_vht_oper_chwidth; int skip_radar = 1; struct csa_settings csa_settings; unsigned int i; int err = 1; ...
hostapd_dfs_start_channel_switch
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dfs_start_channel_switch_cac(hostapd_iface *iface) { u8 oper_centr_freq_seg0_idx; u8 oper_centr_freq_seg1_idx; int secondary_channel; int skip_radar; int err; hostapd_channel_data *channel; unsigned long v8; v8 = __readfsqword(0x28u); oper_centr_freq_seg0_idx = 0; oper_centr_freq_seg1_i...
static int hostapd_dfs_start_channel_switch_cac(struct hostapd_iface *iface) { struct hostapd_channel_data *channel; int secondary_channel; u8 oper_centr_freq_seg0_idx = 0; u8 oper_centr_freq_seg1_idx = 0; int skip_radar = 0; int err = 1; iface->cac_started = 0; channel = dfs_get_valid_channel(iface, &...
hostapd_dfs_start_channel_switch_cac
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_disable_iface(hostapd_iface *hapd_iface) { size_t j; size_t ja; const wpa_driver_ops *driver; void *drv_priv; hostapd_data *hapd; if (!hapd_iface) return -1; if (hapd_iface->disable_iface_cb) return hapd_iface->disable_iface_cb(hapd_iface); if ((*hapd_iface->bss)->drv_priv) { wp...
int hostapd_disable_iface(struct hostapd_iface *hapd_iface) { size_t j; const struct wpa_driver_ops *driver; void *drv_priv; if (hapd_iface == NULL) return -1; if (hapd_iface->disable_iface_cb) return hapd_iface->disable_iface_cb(hapd_iface); if (hapd_iface->bss[0]->drv_priv == NULL) { wpa_pr...
hostapd_disable_iface
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dpp_add_controllers(hostapd_data *hapd) { dpp_controller_conf *ctrl; dpp_relay_config config; unsigned long v4; v4 = __readfsqword(0x28u); memset(&config, 0, sizeof(config)); config.cb_ctx = hapd; config.tx = (void (*)(void *, const u8 *, unsigned int, const u8 *, size...
static int hostapd_dpp_add_controllers(struct hostapd_data *hapd) { #ifdef CONFIG_DPP2 struct dpp_controller_conf *ctrl; struct dpp_relay_config config; os_memset(&config, 0, sizeof(config)); config.cb_ctx = hapd; config.tx = hostapd_dpp_relay_tx; config.gas_resp_tx = hostapd_dpp_relay_gas_resp_tx; for (...
hostapd_dpp_add_controllers
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_auth_conf_wait_timeout(void *eloop_ctx, void *timeout_ctx) { dpp_authentication *auth; auth = (dpp_authentication *)*((_QWORD *)eloop_ctx + 436); if (auth) { if (auth->waiting_auth_conf) { wpa_printf( 2, "DPP: Terminate authentication exchange due to Auth Confirm ti...
static void hostapd_dpp_auth_conf_wait_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct dpp_authentication *auth = hapd->dpp_auth; if (!auth || !auth->waiting_auth_conf) return; wpa_printf( MSG_DEBUG, "DP...
hostapd_dpp_auth_conf_wait_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dpp_auth_init(hostapd_data *hapd, const char *cmd) { unsigned int v3; unsigned int v4; u8 allowed_roles; int neg_freq; int tcp; int tcp_port; int res; dpp_bootstrap_info *own_bi; char *pos; char *posa; char *posb; char *posc; const char *posd; char *pose; dpp_bootstrap_info *pe...
int hostapd_dpp_auth_init(struct hostapd_data *hapd, const char *cmd) { const char *pos; struct dpp_bootstrap_info *peer_bi, *own_bi = NULL; struct dpp_authentication *auth; u8 allowed_roles = DPP_CAPAB_CONFIGURATOR; unsigned int neg_freq = 0; int tcp = 0; #ifdef CONFIG_DPP2 int tcp_port = DPP_TCP_PORT; ...
hostapd_dpp_auth_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dpp_auth_init_next(hostapd_data *hapd) { unsigned int freq_idx; unsigned int dpp_resp_wait_time; size_t v4; const u8 *v5; unsigned int wait_time; unsigned int wait_timea; unsigned int wait_timeb; unsigned int wait_timed; unsigned int wait_timec; unsigned int max_tries; unsigned int fre...
static int hostapd_dpp_auth_init_next(struct hostapd_data *hapd) { struct dpp_authentication *auth = hapd->dpp_auth; const u8 *dst; unsigned int wait_time, max_wait_time, freq, max_tries, used; struct os_reltime now, diff; if (!auth) return -1; if (auth->freq_idx == 0) os_get_reltime(&hapd->dpp_in...
hostapd_dpp_auth_init_next
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_auth_resp_retry_timeout(void *eloop_ctx, void *timeout_ctx) { size_t v2; const u8 *v3; dpp_authentication *auth; auth = (dpp_authentication *)*((_QWORD *)eloop_ctx + 436); if (auth) { if (auth->resp_msg) { wpa_printf(2, "DPP: Retry Authentication Response after timeout"); wpa...
static void hostapd_dpp_auth_resp_retry_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct dpp_authentication *auth = hapd->dpp_auth; if (!auth || !auth->resp_msg) return; wpa_printf(MSG_DEBUG, "DPP: Retry Authenticat...
hostapd_dpp_auth_resp_retry_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dpp_chirp(hostapd_data *hapd, const char *cmd) { unsigned int v3; int iter; int listen_freq; char *pos; char *posa; char *posb; dpp_bootstrap_info *bi; iter = 1; listen_freq = 0; pos = strstr(cmd, " own="); if (!pos) return -1; v3 = atoi(pos + 5); bi = dpp_bootstrap_get_id(hap...
int hostapd_dpp_chirp(struct hostapd_data *hapd, const char *cmd) { const char *pos; int iter = 1, listen_freq = 0; struct dpp_bootstrap_info *bi; pos = os_strstr(cmd, " own="); if (!pos) return -1; pos += 5; bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, atoi(pos)); if (!bi) { wpa_pri...
hostapd_dpp_chirp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_chirp_next(void *eloop_ctx, void *timeout_ctx) { char *v2; int i; int ia; int ret; wpa_driver_scan_params_0 params; unsigned long v7; v7 = __readfsqword(0x28u); if (*((_DWORD *)eloop_ctx + 917)) hostapd_dpp_listen_stop((hostapd_data *)eloop_ctx); if (!*((_DWORD *)eloop_ctx + 910)...
static void hostapd_dpp_chirp_next(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; int i; if (hapd->dpp_chirp_listen) hostapd_dpp_listen_stop(hapd); if (hapd->dpp_chirp_freq == 0) { if (hapd->dpp_chirp_round % 4 == 0 && !hapd->dpp_chirp_scan_done) { struct wpa_driver...
hostapd_dpp_chirp_next
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_chirp_scan_res_handler(hostapd_iface *iface) { char chan6; unsigned int i; unsigned int ia; int c; int ca; int cb; int chan44; int chan149; size_t ie_len; hostapd_data *hapd; dpp_bootstrap_info *bi; wpa_scan_results *scan_res; hostapd_hw_modes *mode; hostapd_hw_modes *modea;...
static void hostapd_dpp_chirp_scan_res_handler(struct hostapd_iface *iface) { struct hostapd_data *hapd = iface->bss[0]; struct wpa_scan_results *scan_res; struct dpp_bootstrap_info *bi = hapd->dpp_chirp_bi; unsigned int i; struct hostapd_hw_modes *mode; int c; bool chan6 = hapd->iface->hw_features == NUL...
hostapd_dpp_chirp_scan_res_handler
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_chirp_start(hostapd_data *hapd) { size_t v1; const u8 *v2; const wpabuf *msg; msg = hapd->dpp_presence_announcement; wpa_printf(2, "DPP: Chirp on %d MHz", hapd->dpp_chirp_freq); wpa_msg(hapd->msg_ctx, 3, "DPP-TX dst=%02x:%02x:%02x:%02x:%02x:%02x freq=%u type=%d", 255, 255, ...
static void hostapd_dpp_chirp_start(struct hostapd_data *hapd) { struct wpabuf *msg; int type; msg = hapd->dpp_presence_announcement; type = DPP_PA_PRESENCE_ANNOUNCEMENT; wpa_printf(MSG_DEBUG, "DPP: Chirp on %d MHz", hapd->dpp_chirp_freq); wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVENT_TX "dst=" MACS...
hostapd_dpp_chirp_start
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_chirp_stop(hostapd_data *hapd) { if (hapd->dpp_presence_announcement) { hostapd_drv_send_action_cancel_wait(hapd); wpa_msg(hapd->msg_ctx, 3, "DPP-CHIRP-STOPPED "); } hapd->dpp_chirp_bi = 0; wpabuf_free(hapd->dpp_presence_announcement); hapd->dpp_presence_announcement = 0; if (hapd->...
void hostapd_dpp_chirp_stop(struct hostapd_data *hapd) { if (hapd->dpp_presence_announcement) { hostapd_drv_send_action_cancel_wait(hapd); wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVENT_CHIRP_STOPPED); } hapd->dpp_chirp_bi = NULL; wpabuf_free(hapd->dpp_presence_announcement); hapd->dpp_presence_announceme...
hostapd_dpp_chirp_stop
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_chirp_timeout(void *eloop_ctx, void *timeout_ctx) { wpa_printf(2, "DPP: No chirp response received"); hostapd_drv_send_action_cancel_wait((hostapd_data *)eloop_ctx); hostapd_dpp_chirp_next(eloop_ctx, 0); }
static void hostapd_dpp_chirp_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; wpa_printf(MSG_DEBUG, "DPP: No chirp response received"); hostapd_drv_send_action_cancel_wait(hapd); hostapd_dpp_chirp_next(hapd, NULL); }
hostapd_dpp_chirp_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_config_result_wait_timeout(void *eloop_ctx, void *timeout_ctx) { dpp_authentication *auth; auth = (dpp_authentication *)*((_QWORD *)eloop_ctx + 436); if (auth) { if (auth->waiting_conf_result) { wpa_printf(2, "DPP: Timeout while waiting for C...
static void hostapd_dpp_config_result_wait_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct dpp_authentication *auth = hapd->dpp_auth; if (!auth || !auth->waiting_conf_result) return; wpa_printf(MSG_DEBUG, "DPP: ...
hostapd_dpp_config_result_wait_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_conn_status_result_wait_timeout(void *eloop_ctx, void *timeout_ctx) { dpp_authentication *auth; auth = (dpp_authentication *)*((_QWORD *)eloop_ctx + 436); if (auth) { if (auth->waiting_conf_result) { wpa_printf(2, "DPP: Timeout while wai...
static void hostapd_dpp_conn_status_result_wait_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct dpp_authentication *auth = hapd->dpp_auth; if (!auth || !auth->waiting_conf_result) return; wpa_printf(MSG_DEB...
hostapd_dpp_conn_status_result_wait_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_controller_conf_free(dpp_controller_conf *conf) { dpp_controller_conf *prev; while (conf) { prev = conf; conf = conf->next; free(prev); } }
static void hostapd_dpp_controller_conf_free(struct dpp_controller_conf *conf) { struct dpp_controller_conf *prev; while (conf) { prev = conf; conf = conf->next; os_free(prev); } }
hostapd_dpp_controller_conf_free
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dpp_controller_start(hostapd_data *hapd, const char *cmd) { char *pos; char *posa; const char *posb; dpp_controller_config config; unsigned long v7; v7 = __readfsqword(0x28u); memset(&config, 0, sizeof(config)); config.allowed_roles = 3; config.netrole = dpp_netrole_DPP_NETROLE_AP; conf...
int hostapd_dpp_controller_start(struct hostapd_data *hapd, const char *cmd) { struct dpp_controller_config config; const char *pos; os_memset(&config, 0, sizeof(config)); config.allowed_roles = DPP_CAPAB_ENROLLEE | DPP_CAPAB_CONFIGURATOR; config.netrole = DPP_NETROLE_AP; config.msg_ctx = hapd->msg_ctx; ...
hostapd_dpp_controller_start
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_deinit(hostapd_data *hapd) { if (hapd->dpp_init_done) { eloop_cancel_timeout((eloop_timeout_handler)hostapd_dpp_reply_wait_timeout, hapd, 0); eloop_cancel_timeout( (eloop_timeout_handler)hostapd_dpp_auth_conf_wait_timeout, hapd, 0); eloop_cancel_timeout((e...
void hostapd_dpp_deinit(struct hostapd_data *hapd) { #ifdef CONFIG_TESTING_OPTIONS os_free(hapd->dpp_config_obj_override); hapd->dpp_config_obj_override = NULL; os_free(hapd->dpp_discovery_override); hapd->dpp_discovery_override = NULL; os_free(hapd->dpp_groups_override); hapd->dpp_groups_override = NULL; ...
hostapd_dpp_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *hostapd_dpp_gas_req_handler(hostapd_data *hapd, const u8 *sa, const u8 *query, size_t query_len, const u8 *data, size_t data_len) { dpp_authentication *auth; wpabuf *resp; auth = hapd->dpp_auth; wpa_printf(2, "DPP: GAS request from...
struct wpabuf *hostapd_dpp_gas_req_handler(struct hostapd_data *hapd, const u8 *sa, const u8 *query, size_t query_len, const u8 *data, size_t data_len) { struct dpp_authentication *auth = h...
hostapd_dpp_gas_req_handler
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_gas_resp_cb(void *ctx, const u8 *addr, u8 dialog_token, gas_query_ap_result result, const wpabuf *adv_proto, const wpabuf *resp, u16 status_code) { size_t v7; const u8 *v8; dpp_status_error status; dpp_authen...
static void hostapd_dpp_gas_resp_cb(void *ctx, const u8 *addr, u8 dialog_token, enum gas_query_ap_result result, const struct wpabuf *adv_proto, const struct wpabuf *resp, u16 ...
hostapd_dpp_gas_resp_cb
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_gas_status_handler(hostapd_data *hapd, int ok) { dpp_authentication *auth; auth = hapd->dpp_auth; if (auth) { wpa_printf(2, "DPP: Configuration exchange completed (ok=%d)", ok); eloop_cancel_timeout((eloop_timeout_handler)hostapd_dpp_reply_wait_timeout, hapd, 0);...
void hostapd_dpp_gas_status_handler(struct hostapd_data *hapd, int ok) { struct dpp_authentication *auth = hapd->dpp_auth; if (!auth) return; wpa_printf(MSG_DEBUG, "DPP: Configuration exchange completed (ok=%d)", ok); eloop_cancel_timeout(hostapd_dpp_reply_wait_timeout, hapd, NULL); eloop_cancel_timeout...
hostapd_dpp_gas_status_handler
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_handle_config_obj(hostapd_data *hapd, dpp_authentication *auth, dpp_config_obj *conf) { const char *v3; const char *v4; size_t v5; size_t v6; const u8 *v7; size_t v8; const u8 *v9; size_t hexlen; char *hex_0; size_t hexlen_0; char *hex_1; char ...
static void hostapd_dpp_handle_config_obj(struct hostapd_data *hapd, struct dpp_authentication *auth, struct dpp_config_obj *conf) { wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVENT_CONF_RECEIVED); wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVE...
hostapd_dpp_handle_config_obj
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dpp_handle_key_pkg(hostapd_data *hapd, dpp_asymmetric_key *key) { dpp_asymmetric_key *keya; int res; keya = key; if (!key) return 0; wpa_printf(2, "DPP: Received Configurator backup"); wpa_msg(hapd->msg_ctx, 3, "DPP-CONF-RECEIVED "); while (keya) { res = dpp_configurator_from_backup(h...
static int hostapd_dpp_handle_key_pkg(struct hostapd_data *hapd, struct dpp_asymmetric_key *key) { #ifdef CONFIG_DPP2 int res; if (!key) return 0; wpa_printf(MSG_DEBUG, "DPP: Received Configurator backup"); wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVENT_CONF_RECEIVED); ...
hostapd_dpp_handle_key_pkg
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_init_timeout(void *eloop_ctx, void *timeout_ctx) { if (*((_QWORD *)eloop_ctx + 436)) { wpa_printf(2, "DPP: Retry initiation after timeout"); hostapd_dpp_auth_init_next((hostapd_data *)eloop_ctx); } }
static void hostapd_dpp_init_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; if (!hapd->dpp_auth) return; wpa_printf(MSG_DEBUG, "DPP: Retry initiation after timeout"); hostapd_dpp_auth_init_next(hapd); }
hostapd_dpp_init_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dpp_pkex_add(hostapd_data *hapd, const char *cmd) { unsigned int v3; int v4; size_t v5; const u8 *v6; bool v2; char *pos; char *posa; const char *posb; char *posc; dpp_bootstrap_info *own_bi; char *end; const wpabuf *msg; pos = strstr(cmd, " own="); if (!pos) return -1; v3...
int hostapd_dpp_pkex_add(struct hostapd_data *hapd, const char *cmd) { struct dpp_bootstrap_info *own_bi; const char *pos, *end; pos = os_strstr(cmd, " own="); if (!pos) return -1; pos += 5; own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp, atoi(pos)); if (!own_bi) { wpa_printf(MSG_DEBU...
hostapd_dpp_pkex_add
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dpp_process_conf_obj(void *ctx, dpp_authentication *auth) { unsigned int i; for (i = 0; i < auth->num_conf_obj; ++i) hostapd_dpp_handle_config_obj((hostapd_data *)ctx, auth, &auth->conf_obj[i]); return 0; }
static int hostapd_dpp_process_conf_obj(void *ctx, struct dpp_authentication *auth) { struct hostapd_data *hapd = ctx; unsigned int i; for (i = 0; i < auth->num_conf_obj; i++) hostapd_dpp_handle_config_obj(hapd, auth, &auth->conf_obj[i]); return 0; }
hostapd_dpp_process_conf_obj
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_dpp_qr_code(hostapd_data *hapd, const char *cmd) { size_t v3; const u8 *v4; dpp_authentication *auth; dpp_bootstrap_info *bi; auth = hapd->dpp_auth; bi = dpp_add_qr_code(hapd->iface->interfaces->dpp, cmd); if (!bi) return -1; if (auth && auth->response_pending && dpp_notify_new_qr_code(...
int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd) { struct dpp_bootstrap_info *bi; struct dpp_authentication *auth = hapd->dpp_auth; bi = dpp_add_qr_code(hapd->iface->interfaces->dpp, cmd); if (!bi) return -1; if (auth && auth->response_pending && dpp_notify_new_qr_code(auth, bi) == 1)...
hostapd_dpp_qr_code
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_reconfig_reply_wait_timeout(void *eloop_ctx, void *timeout_ctx) { dpp_authentication *auth; auth = (dpp_authentication *)*((_QWORD *)eloop_ctx + 436); if (auth) { wpa_printf(2, "DPP: Reconfig Reply wait timeout"); hostapd_dpp_listen_stop((host...
static void hostapd_dpp_reconfig_reply_wait_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct dpp_authentication *auth = hapd->dpp_auth; if (!auth) return; wpa_printf(MSG_DEBUG, "DPP: Reconfig Reply wait timeout"...
hostapd_dpp_reconfig_reply_wait_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_relay_gas_resp_tx(void *ctx, const u8 *addr, u8 dialog_token, int prot, wpabuf *buf) { gas_serv_req_dpp_processing((hostapd_data *)ctx, addr, dialog_token, prot, buf); }
static void hostapd_dpp_relay_gas_resp_tx(void *ctx, const u8 *addr, u8 dialog_token, int prot, struct wpabuf *buf) { struct hostapd_data *hapd = ctx; gas_serv_req_dpp_processing(hapd, addr, dialog_token, prot, buf); }
hostapd_dpp_relay_gas_resp_tx
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_relay_tx(void *ctx, const u8 *addr, unsigned int freq, const u8 *msg, size_t len) { u8 *buf; wpa_printf(2, "DPP: Send action frame dst=%02x:%02x:%02x:%02x:%02x:%02x freq=%u", *addr, addr[1], addr[2], addr[3], addr[4], addr[5], freq); buf = (u8 ...
static void hostapd_dpp_relay_tx(void *ctx, const u8 *addr, unsigned int freq, const u8 *msg, size_t len) { struct hostapd_data *hapd = ctx; u8 *buf; wpa_printf(MSG_DEBUG, "DPP: Send action frame dst=" MACSTR " freq=%u", MAC2STR(addr), freq); buf = os_malloc(2 + le...
hostapd_dpp_relay_tx
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_remove_bi(void *ctx, dpp_bootstrap_info *bi) { hostapd_for_each_interface( (hapd_interfaces *)ctx, (int (*)(hostapd_iface *, void *))handle_dpp_remove_bi, bi); }
void hostapd_dpp_remove_bi(void *ctx, struct dpp_bootstrap_info *bi) { struct hapd_interfaces *interfaces = ctx; hostapd_for_each_interface(interfaces, handle_dpp_remove_bi, bi); }
hostapd_dpp_remove_bi
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_reply_wait_timeout(void *eloop_ctx, void *timeout_ctx) { int v2; unsigned int freq; unsigned int wait_time; unsigned int wait_timea; unsigned int diff_ms; dpp_authentication *auth; os_reltime now; os_reltime diff; unsigned long v10; v10 = __readfsqword(0x28u); auth = (dpp_authent...
static void hostapd_dpp_reply_wait_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct dpp_authentication *auth = hapd->dpp_auth; unsigned int freq; struct os_reltime now, diff; unsigned int wait_time, diff_ms; if (!auth || !auth->waiting_auth_resp) return; wa...
hostapd_dpp_reply_wait_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_action(hostapd_data *hapd, const u8 *src, const u8 *buf, size_t len, unsigned int freq) { const u8 *v5; size_t lenb; const u8 *bufb; u8 crypto_suite; unsigned int pkex_t; dpp_public_action_frame_type type; const u8 *hdr; if (len > 5 && WPA_GET_BE24_12(buf)...
void hostapd_dpp_rx_action(struct hostapd_data *hapd, const u8 *src, const u8 *buf, size_t len, unsigned int freq) { u8 crypto_suite; enum dpp_public_action_frame_type type; const u8 *hdr; unsigned int pkex_t; if (len < DPP_HDR_LEN) return; if (WPA_GET_BE24(buf) != OUI_WFA ||...
hostapd_dpp_rx_action
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_auth_req(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { size_t v6; const u8 *v7; u16 r_bootstrap_len; u16 i_bootstrap_len; dpp_bootstrap_info *own_bi; dpp_bootstrap_info *peer_bi; const u8 *r_bootstrap; c...
static void hostapd_dpp_rx_auth_req(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { const u8 *r_bootstrap, *i_bootstrap; u16 r_bootstrap_len, i_bootstrap_len; struct dpp_bootstrap_info ...
hostapd_dpp_rx_auth_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_auth_resp(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { size_t v6; const u8 *v7; dpp_authentication *auth; wpabuf *msg; auth = hapd->dpp_auth; wpa_printf(2, "DPP: Authentication Response from ...
static void hostapd_dpp_rx_auth_resp(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { struct dpp_authentication *auth = hapd->dpp_auth; struct wpabuf *msg; wpa_printf(MSG_DEBUG, "DPP:...
hostapd_dpp_rx_auth_resp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_conf_result(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len) { dpp_status_error status; dpp_authentication *auth; auth = hapd->dpp_auth; wpa_printf(2, "DPP: Configuration Result from %02x:%02x:%02x:%02x:%02x:%02x", *sr...
static void hostapd_dpp_rx_conf_result(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len) { struct dpp_authentication *auth = hapd->dpp_auth; enum dpp_status_error status; wpa_printf(MSG_DEBUG, "DPP: Co...
hostapd_dpp_rx_conf_result
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_conn_status_result(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len) { char *v5; const char *v6; dpp_status_error status; size_t ssid_len; char *channel_list; dpp_authentication *auth...
static void hostapd_dpp_rx_conn_status_result(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len) { struct dpp_authentication *auth = hapd->dpp_auth; enum dpp_status_error status; u8 ssid[SS...
hostapd_dpp_rx_conn_status_result
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_peer_disc_req(hostapd_data *hapd, const u8 *src, const u8 *buf, size_t len, unsigned int freq) { size_t v5; size_t v6; const u8 *v7; size_t v8; const u8 *v9; u16 connector_len; u16 trans_id_len; int expiration; dpp...
static void hostapd_dpp_rx_peer_disc_req(struct hostapd_data *hapd, const u8 *src, const u8 *buf, size_t len, unsigned int freq) { const u8 *connector, *trans_id; u16 connector_len, trans_id_len; struct os_time now; struct dpp_int...
hostapd_dpp_rx_peer_disc_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_pkex_commit_reveal_req(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { size_t v6; const u8 *v7; dpp_pkex *pkex; wpabuf *msg; pkex = hapd->dpp_pkex; wpa...
static void hostapd_dpp_rx_pkex_commit_reveal_req(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { struct wpabuf...
hostapd_dpp_rx_pkex_commit_reveal_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_pkex_commit_reveal_resp(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { char *dpp_pkex_auth_cmd; dpp_pkex *pkex; dpp_bootstrap_info *bi; char cmd[504]; ...
static void hostapd_dpp_rx_pkex_commit_reveal_resp(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { int res; ...
hostapd_dpp_rx_pkex_commit_reveal_resp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_pkex_exchange_req(hostapd_data *hapd, const u8 *src, const u8 *buf, size_t len, unsigned int freq, bool v2) { size_t v6; const u8 *v7; const wpabuf *msg; wpa_printf(2, "DPP: PKEX Exchange Request from %02x:%02x:%02x...
static void hostapd_dpp_rx_pkex_exchange_req(struct hostapd_data *hapd, const u8 *src, const u8 *buf, size_t len, unsigned int freq, bool v2) { struct wpabuf *msg; wpa_printf(MSG_D...
hostapd_dpp_rx_pkex_exchange_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_pkex_exchange_resp(hostapd_data *hapd, const u8 *src, const u8 *buf, size_t len, unsigned int freq) { size_t v5; const u8 *v6; wpabuf *msg; wpa_printf(2, "DPP: PKEX Exchange Response from %02x:%02x:%0...
static void hostapd_dpp_rx_pkex_exchange_resp(struct hostapd_data *hapd, const u8 *src, const u8 *buf, size_t len, unsigned int freq) { struct wpabuf *msg; wpa_printf(MSG_DEBUG, "DPP: PKEX Exchange Response from " MACSTR, ...
hostapd_dpp_rx_pkex_exchange_resp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_presence_announcement(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { unsigned int id; u16 r_bootstrap_len; const u8 *r_bootstrap; dpp_bootstrap_info *peer_bi...
static void hostapd_dpp_rx_presence_announcement(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { const u8 *r_boots...
hostapd_dpp_rx_presence_announcement
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_reconfig_announcement(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { unsigned int dpp_resp_wait_time; size_t v7; const u8 *v8; u16 csign_hash_len; u16 fcgr...
static void hostapd_dpp_rx_reconfig_announcement(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { const u8 *csign_h...
hostapd_dpp_rx_reconfig_announcement
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_rx_reconfig_auth_resp(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { size_t v6; const u8 *v7; dpp_authentication *auth; wpabuf *conf; auth = hapd->dpp_auth; wpa_...
static void hostapd_dpp_rx_reconfig_auth_resp(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len, unsigned int freq) { struct dpp_authentication *au...
hostapd_dpp_rx_reconfig_auth_resp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_send_peer_disc_resp(hostapd_data *hapd, const u8 *src, unsigned int freq, u8 trans_id, dpp_status_error status) { u16 v5; size_t v6; const u8 *v7; size_t len; wpabuf *msg; len = strlen(hapd->conf->dpp_connector) + 19...
static void hostapd_dpp_send_peer_disc_resp(struct hostapd_data *hapd, const u8 *src, unsigned int freq, u8 trans_id, enum dpp_status_error status) { struct wpabuf *msg; size_t len; ...
hostapd_dpp_send_peer_disc_resp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void hostapd_dpp_tx_status(hostapd_data *hapd, const u8 *dst, const u8 *data, size_t data_len, int ok) { const char *v5; dpp_authentication *auth; auth = hapd->dpp_auth; wpa_printf(2, "DPP: TX status: dst=%02x:%02x:%02x:%02x:%02x:%02x ok=%d", *dst, dst[1], dst[2], dst[3]...
void hostapd_dpp_tx_status(struct hostapd_data *hapd, const u8 *dst, const u8 *data, size_t data_len, int ok) { struct dpp_authentication *auth = hapd->dpp_auth; wpa_printf(MSG_DEBUG, "DPP: TX status: dst=" MACSTR " ok=%d", MAC2STR(dst), ok); wpa_msg(hapd->msg_ctx, MSG_INF...
hostapd_dpp_tx_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_drv_do_acs(hostapd_data *hapd) { unsigned int num; u8 oper_chwidth; int i; _BOOL4 acs_ch_list_all; hostapd_hw_mode selected_mode; int ret; int *freq_list; hostapd_hw_modes *mode; drv_acs_params params; unsigned long v11; v11 = __readfsqword(0x28u); freq_list = 0; if (!hapd->driver...
int hostapd_drv_do_acs(struct hostapd_data *hapd) { struct drv_acs_params params; int ret, i, acs_ch_list_all = 0; struct hostapd_hw_modes *mode; int *freq_list = NULL; enum hostapd_hw_mode selected_mode; if (hapd->driver == NULL || hapd->driver->do_acs == NULL) return 0; os_memset(&params, 0, sizeo...
hostapd_drv_do_acs
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_drv_send_action(hostapd_data *hapd, unsigned int freq, unsigned int wait, const u8 *dst, const u8 *data, size_t len) { u8 *bssid; sta_info *sta; u8 wildcard_bssid[6]; unsigned long v14; v14 = __readfsqword(0x28u); memset(wildcard_bssid, 25...
int hostapd_drv_send_action(struct hostapd_data *hapd, unsigned int freq, unsigned int wait, const u8 *dst, const u8 *data, size_t len) { const u8 *bssid; const u8 wildcard_bssid[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; if (!hapd->driver || !hapd->...
hostapd_drv_send_action
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_assoc_comeback_time(hostapd_data *hapd, sta_info *sta, u8 *eid) { unsigned int timeout; u32 tu; u8 *pos; os_reltime now; os_reltime passed; unsigned long v9; v9 = __readfsqword(0x28u); *eid = 56; eid[1] = 5; pos = eid + 3; eid[2] = 3; os_get_r...
u8 *hostapd_eid_assoc_comeback_time(struct hostapd_data *hapd, struct sta_info *sta, u8 *eid) { u8 *pos = eid; u32 timeout, tu; struct os_reltime now, passed; *pos++ = WLAN_EID_TIMEOUT_INTERVAL; *pos++ = 5; *pos++ = WLAN_TIMEOUT_ASSOC_COMEBACK; os_get_reltime(&now); ...
hostapd_eid_assoc_comeback_time
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_assoc_fils_session(wpa_state_machine *sm, u8 *buf, const u8 *fils_session, wpabuf *hlp) { long v4; long v5; long v6; long v7; size_t v9; const void *v10; size_t v11; u8 *pos; u8 *posa; wpabuf *plain; *buf = -1; buf[1] = 9; buf[2] = 4; *(_QW...
u8 *hostapd_eid_assoc_fils_session(struct wpa_state_machine *sm, u8 *buf, const u8 *fils_session, struct wpabuf *hlp) { struct wpabuf *plain; u8 *pos = buf; *pos++ = WLAN_EID_EXTENSION; *pos++ = 1 + FILS_SESSION_LEN; *pos++ = WLAN_EID_EXT_FILS_SESSION; os_memcpy(pos, fils...
hostapd_eid_assoc_fils_session
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_bss_load(hostapd_data *hapd, u8 *eid, size_t len) { u8 *eida; eida = eid; if (len <= 6) return eid; if (hapd->conf->bss_load_update_period) { *eid = 11; eid[1] = 5; WPA_PUT_LE16_18(eid + 2, hapd->num_sta); eid[4] = hapd->iface->channel_utilization; WPA_PUT_LE16_18(eid + ...
static u8 *hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) { if (len < 2 + 5) return eid; #ifdef CONFIG_TESTING_OPTIONS if (hapd->conf->bss_load_test_set) { *eid++ = WLAN_EID_BSS_LOAD; *eid++ = 5; os_memcpy(eid, hapd->conf->bss_load_test, 5); ...
hostapd_eid_bss_load
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_bss_max_idle_period(hostapd_data *hapd, u8 *eid) { return eid; }
u8 *hostapd_eid_bss_max_idle_period(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; #ifdef CONFIG_WNM_AP if (hapd->conf->ap_max_inactivity > 0) { unsigned int val; *pos++ = WLAN_EID_BSS_MAX_IDLE_PERIOD; *pos++ = 3; val = hapd->conf->ap_max_inactivity; if (val > 68000) val = 68000; ...
hostapd_eid_bss_max_idle_period
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_dpp_cc(hostapd_data *hapd, u8 *eid, size_t len) { if (!hapd->conf->dpp_configurator_connectivity || len <= 5) return eid; *eid = -35; eid[1] = 4; WPA_PUT_BE24_6(eid + 2, 0x506F9Au); eid[5] = 30; return eid + 6; }
u8 *hostapd_eid_dpp_cc(struct hostapd_data *hapd, u8 *eid, size_t len) { u8 *pos = eid; #ifdef CONFIG_DPP2 if (!hapd->conf->dpp_configurator_connectivity || len < 6) return pos; *pos++ = WLAN_EID_VENDOR_SPECIFIC; *pos++ = 4; WPA_PUT_BE24(pos, OUI_WFA); pos += 3; *pos++ = DPP_CC_OUI_TYPE; #endif r...
hostapd_eid_dpp_cc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
size_t hostapd_eid_dpp_cc_len(hostapd_data *hapd) { if (hapd->conf->dpp_configurator_connectivity) return 6; else return 0; }
size_t hostapd_eid_dpp_cc_len(struct hostapd_data *hapd) { #ifdef CONFIG_DPP2 if (hapd->conf->dpp_configurator_connectivity) return 6; #endif return 0; }
hostapd_eid_dpp_cc_len
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_ext_supp_rates(hostapd_data *hapd, u8 *eid) { _BOOL4 v3; u8 *v4; u8 *v5; u8 *v6; int i; int num; int numa; int count; int h2e_required; u8 *pos; if (!hapd->iface->current_rates) return eid; num = hapd->iface->num_rates; if (hapd->iconf->ieee80211n && hapd->iconf->require_h...
u8 *hostapd_eid_ext_supp_rates(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; int i, num, count; int h2e_required; if (hapd->iface->current_rates == NULL) return eid; num = hapd->iface->num_rates; if (hapd->iconf->ieee80211n && hapd->iconf->require_ht) num++; if (hapd->iconf->ieee80211ac &...
hostapd_eid_ext_supp_rates
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_fils_indic(hostapd_data *hapd, u8 *eid, int hessid) { u16 fils_info; u16 fils_infoa; u8 *pos; size_t realms; fils_realm *realm; fils_info = 0; if ((hapd->conf->wpa & 2) == 0 || !wpa_key_mgmt_fils_3(hapd->conf->wpa_key_mgmt)) return eid; realms = dl_list_len_0(&hapd->conf->fils...
u8 *hostapd_eid_fils_indic(struct hostapd_data *hapd, u8 *eid, int hessid) { u8 *pos = eid; #ifdef CONFIG_FILS u8 *len; u16 fils_info = 0; size_t realms; struct fils_realm *realm; if (!(hapd->conf->wpa & WPA_PROTO_RSN) || !wpa_key_mgmt_fils(hapd->conf->wpa_key_mgmt)) return pos; realms = dl_li...
hostapd_eid_fils_indic
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_hs20_indication(hostapd_data *hapd, u8 *eid) { u8 v3; u8 *eida; u8 conf; if (!hapd->conf->hs20) return eid; *eid = -35; if (hapd->conf->hs20_release > 1) v3 = 7; else v3 = 5; eid[1] = v3; WPA_PUT_BE24_8(eid + 2, 0x506F9Au); eid[5] = 16; conf = 16 * (hapd->conf->hs20_re...
u8 *hostapd_eid_hs20_indication(struct hostapd_data *hapd, u8 *eid) { u8 conf; if (!hapd->conf->hs20) return eid; *eid++ = WLAN_EID_VENDOR_SPECIFIC; *eid++ = hapd->conf->hs20_release < 2 ? 5 : 7; WPA_PUT_BE24(eid, OUI_WFA); eid += 3; *eid++ = HS20_INDICATION_OUI_TYPE; conf = (hapd->conf->hs20_releas...
hostapd_eid_hs20_indication
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_interworking(hostapd_data *hapd, u8 *eid) { u8 *pos; u8 *posa; if (!hapd->conf->interworking) return eid; *eid = 107; pos = eid + 2; eid[2] = hapd->conf->access_network_type; if (hapd->conf->internet) *pos |= 0x10u; if (hapd->conf->asra) *pos |= 0x20u; if (hapd->conf->esr)...
u8 *hostapd_eid_interworking(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; #ifdef CONFIG_INTERWORKING u8 *len; if (!hapd->conf->interworking) return eid; *pos++ = WLAN_EID_INTERWORKING; len = pos++; *pos = hapd->conf->access_network_type; if (hapd->conf->internet) *pos |= INTERWORKING_AN...
hostapd_eid_interworking
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_mbo(hostapd_data *hapd, u8 *eid, size_t len) { _BYTE *v4; u8 *v5; u8 ctrl; u8 *mbo_pos; u8 mbo[9]; unsigned long v9; v9 = __readfsqword(0x28u); mbo_pos = mbo; if (!hapd->conf->mbo_enabled && ((hapd->conf->oce & 2) == 0 || (hapd->iface->drv_flags & 0x20000000000000LL) == 0...
u8 *hostapd_eid_mbo(struct hostapd_data *hapd, u8 *eid, size_t len) { u8 mbo[9], *mbo_pos = mbo; u8 *pos = eid; if (!hapd->conf->mbo_enabled && !OCE_STA_CFON_ENABLED(hapd) && !OCE_AP_ENABLED(hapd)) return eid; if (hapd->conf->mbo_enabled) { *mbo_pos++ = MBO_ATTR_ID_AP_CAPA_IND; *mbo_pos++ = ...
hostapd_eid_mbo
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_mbo_rssi_assoc_rej(hostapd_data *hapd, u8 *eid, size_t len, int delta) { u8 mbo[4]; unsigned long v6; v6 = __readfsqword(0x28u); mbo[0] = 102; mbo[1] = 2; mbo[2] = delta; mbo[3] = hapd->iconf->rssi_reject_assoc_timeout; return &eid[mbo_add_ie(eid, len,...
u8 *hostapd_eid_mbo_rssi_assoc_rej(struct hostapd_data *hapd, u8 *eid, size_t len, int delta) { u8 mbo[4]; mbo[0] = OCE_ATTR_ID_RSSI_BASED_ASSOC_REJECT; mbo[1] = 2; mbo[2] = delta; mbo[3] = hapd->iconf->rssi_reject_assoc_timeout; return eid + mbo_add_ie(eid, len, mbo, ...
hostapd_eid_mbo_rssi_assoc_rej
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_nr_db(hostapd_data *hapd, u8 *eid, size_t *current_len) { u8 *v3; const u8 *v4; _BYTE *v5; _BYTE *v6; _BYTE *v7; u8 *eida; u8 *eidb; hostapd_neighbor_entry *nr; size_t len; u8 *size_offset; eida = eid; len = *current_len; size_offset = &eid[1 - *current_len]; for (nr = (host...
static u8 *hostapd_eid_nr_db(struct hostapd_data *hapd, u8 *eid, size_t *current_len) { struct hostapd_neighbor_entry *nr; size_t len = *current_len; u8 *size_offset = (eid - len) + 1; dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, list) { if (!nr->nr || wpab...
hostapd_eid_nr_db
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
size_t hostapd_eid_nr_db_len(hostapd_data *hapd, size_t *current_len) { hostapd_neighbor_entry *nr; size_t total_len; size_t len; total_len = 0; len = *current_len; for (nr = (hostapd_neighbor_entry *)hapd->nr_db.next; nr != (hostapd_neighbor_entry *)&hapd->nr_db; nr = (hostapd_neighbor_entry...
static size_t hostapd_eid_nr_db_len(struct hostapd_data *hapd, size_t *current_len) { struct hostapd_neighbor_entry *nr; size_t total_len = 0, len = *current_len; dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, list) { if (!nr->nr || wpabuf_len(nr->nr) < ...
hostapd_eid_nr_db_len
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_osen(hostapd_data *hapd, u8 *eid) { u16 capab; if (!hapd->conf->osen) return eid; *eid = -35; WPA_PUT_BE24_8(eid + 2, 0x506F9Au); eid[5] = 18; WPA_PUT_BE32_23(eid + 6, 0xFAC07u); WPA_PUT_LE16_23(eid + 10, 1u); WPA_PUT_BE32_23(eid + 12, (u32)&loc_FAC04); WPA_PUT_LE16_23(eid + 16, 1...
u8 *hostapd_eid_osen(struct hostapd_data *hapd, u8 *eid) { u8 *len; u16 capab; if (!hapd->conf->osen) return eid; *eid++ = WLAN_EID_VENDOR_SPECIFIC; len = eid++; WPA_PUT_BE24(eid, OUI_WFA); eid += 3; *eid++ = HS20_OSEN_OUI_TYPE; RSN_SELECTOR_PUT(eid, RSN_CIPHER_SUITE_NO_GROUP_ADDRESSED); eid ...
hostapd_eid_osen
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_owe_trans(hostapd_data *hapd, u8 *eid, size_t len) { size_t elen; if (hapd->conf->owe_transition_ifname[0] && !hostapd_eid_owe_trans_enabled(hapd)) hostapd_owe_trans_get_info(hapd); if (!hostapd_eid_owe_trans_enabled(hapd)) return eid; elen = hostapd_eid_owe_trans_len(hapd); if ...
u8 *hostapd_eid_owe_trans(struct hostapd_data *hapd, u8 *eid, size_t len) { #ifdef CONFIG_OWE u8 *pos = eid; size_t elen; if (hapd->conf->owe_transition_ifname[0] && !hostapd_eid_owe_trans_enabled(hapd)) hostapd_owe_trans_get_info(hapd); if (!hostapd_eid_owe_trans_enabled(hapd)) return pos; e...
hostapd_eid_owe_trans
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int hostapd_eid_owe_trans_enabled(hostapd_data *hapd) { return hapd->conf->owe_transition_ssid_len && !is_zero_ether_addr_10(hapd->conf->owe_transition_bssid); }
static int hostapd_eid_owe_trans_enabled(struct hostapd_data *hapd) { return hapd->conf->owe_transition_ssid_len > 0 && !is_zero_ether_addr(hapd->conf->owe_transition_bssid); }
hostapd_eid_owe_trans_enabled
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_rnr_iface(hostapd_data *hapd, hostapd_data *reporting_hapd, u8 *eid, size_t *current_len) { u8 oper_chwidth_5; u8 *v6; u8 *v7; u8 *v8; _BYTE *v9; u8 *eida; u8 *eidc; u8 *eidb; u8 op_class; u8 channel; u8 tbtt_count; u8 bss_param; size_t i; size_t sta...
static u8 *hostapd_eid_rnr_iface(struct hostapd_data *hapd, struct hostapd_data *reporting_hapd, u8 *eid, size_t *current_len) { struct hostapd_data *bss; struct hostapd_iface *iface = hapd->iface; size_t i, start = 0; size_t len = *current_len; ...
hostapd_eid_rnr_iface
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_rsnxe(hostapd_data *hapd, u8 *eid, size_t len) { long v4; u16 capab; u16 capabb; u16 capaba; u8 *pos; capab = 0; if ((hapd->conf->wpa & 2) == 0) return eid; if (wpa_key_mgmt_sae_6(hapd->conf->wpa_key_mgmt) && (hapd->conf->sae_pwe == 1 || hapd->conf->sae_pwe == 2 || host...
u8 *hostapd_eid_rsnxe(struct hostapd_data *hapd, u8 *eid, size_t len) { u8 *pos = eid; bool sae_pk = false; u16 capab = 0; size_t flen; if (!(hapd->conf->wpa & WPA_PROTO_RSN)) return eid; #ifdef CONFIG_SAE_PK sae_pk = hostapd_sae_pk_in_use(hapd->conf); #endif if (wpa_key_mgmt_sae(hapd->conf->wpa_ke...
hostapd_eid_rsnxe
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_supp_rates(hostapd_data *hapd, u8 *eid) { _BOOL4 v3; u8 *v4; u8 *v5; u8 *v6; int i; int num; int count; int h2e_required; u8 *pos; if (!hapd->iface->current_rates) return eid; *eid = 1; num = hapd->iface->num_rates; if (hapd->iconf->ieee80211n && hapd->iconf->require_ht) ...
u8 *hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; int i, num, count; int h2e_required; if (hapd->iface->current_rates == NULL) return eid; *pos++ = WLAN_EID_SUPP_RATES; num = hapd->iface->num_rates; if (hapd->iconf->ieee80211n && hapd->iconf->require_ht) num++; if...
hostapd_eid_supp_rates
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_supported_op_classes(hostapd_data *hapd, u8 *eid) { u8 oper_chwidth_3; u8 *eida; u8 op_class; u8 channel; unsigned long v7; eida = eid; v7 = __readfsqword(0x28u); if ((hapd->iface->drv_flags & 0x80000000) == 0 || !hapd->iface->freq) return eid; oper_chwidth_3 = hostapd_get_oper_ch...
static u8 *hostapd_eid_supported_op_classes(struct hostapd_data *hapd, u8 *eid) { u8 op_class, channel; if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA) || !hapd->iface->freq) return eid; if (ieee80211_freq_to_channel_ext(hapd->iface->freq, ...
hostapd_eid_supported_op_classes
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_time_adv(hostapd_data *hapd, u8 *eid) { size_t v3; const void *v4; if (hapd->conf->time_advertisement != 2) return eid; if (!hapd->time_adv && hostapd_update_time_adv(hapd) < 0) return eid; if (!hapd->time_adv) return eid; v3 = wpabuf_len_42(hapd->time_adv); v4 = wpabuf_head_4...
u8 *hostapd_eid_time_adv(struct hostapd_data *hapd, u8 *eid) { if (hapd->conf->time_advertisement != 2) return eid; if (hapd->time_adv == NULL && hostapd_update_time_adv(hapd) < 0) return eid; if (hapd->time_adv == NULL) return eid; os_memcpy(eid, wpabuf_head(hapd->time_adv), wpabuf_len(hapd->tim...
hostapd_eid_time_adv
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u8 *hostapd_eid_txpower_envelope(hostapd_data *hapd, u8 *eid) { u8 oper_chwidth_5; u8 v4; u8 *v5; u8 *eida; u8 channel; u8 tx_pwr_count; u8 local_pwr_constraint; u8 tx_pwr; int dfs; int i; int max_tx_power; hostapd_iface *iface; hostapd_config *iconf; hostapd_hw_modes *mode; hostapd_channe...
u8 *hostapd_eid_txpower_envelope(struct hostapd_data *hapd, u8 *eid) { struct hostapd_iface *iface = hapd->iface; struct hostapd_config *iconf = iface->conf; struct hostapd_hw_modes *mode = iface->current_mode; struct hostapd_channel_data *chan; int dfs, i; u8 channel, tx_pwr_count, local_pwr_constraint; ...
hostapd_eid_txpower_envelope
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0