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
int already_connected(wpa_supplicant *wpa_s, wpa_cred *cred, wpa_bss *bss) { wpa_ssid *sel_ssid; wpa_ssid *ssid; wpa_bss *selected; unsigned long v7; v7 = __readfsqword(0x28u); if (wpa_s->wpa_state <= (unsigned int)wpa_states_WPA_ASSOCIATING || !wpa_s->current_ssid) return 0; ssid = wpa_s->curr...
static int already_connected(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) { struct wpa_ssid *ssid, *sel_ssid; struct wpa_bss *selected; if (wpa_s->wpa_state < WPA_ASSOCIATED || wpa_s->current_ssid == NULL) return 0; ssid = wpa_s->current_ssid; if...
already_connected
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_3gpp_cellular_network(hostapd_data *hapd, wpabuf *buf) { if (!anqp_add_override(hapd, buf, 0x108u)) { if (hapd->conf->anqp_3gpp_cell_net) { wpabuf_put_le16_15(buf, 0x108u); wpabuf_put_le16_15(buf, hapd->conf->anqp_3gpp_cell_net_len); wpabuf_put_data_46(buf, hapd->conf->anqp_3gpp_ce...
static void anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) { if (anqp_add_override(hapd, buf, ANQP_3GPP_CELLULAR_NETWORK)) return; if (hapd->conf->anqp_3gpp_cell_net) { wpabuf_put_le16(buf, ANQP_3GPP_CELLULAR_NETWORK); wpabuf_put...
anqp_add_3gpp_cellular_network
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_capab_list(hostapd_data *hapd, wpabuf *buf) { u16 id; u8 *len; if (!anqp_add_override(hapd, buf, 0x101u)) { len = gas_anqp_add_element(buf, 0x101u); wpabuf_put_le16_15(buf, 0x101u); if (hapd->conf->venue_name || get_anqp_elem(hapd, 0x102u)) wpabuf_put_le16_15(buf, 0x102u); if ...
static void anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) { u8 *len; u16 id; if (anqp_add_override(hapd, buf, ANQP_CAPABILITY_LIST)) return; len = gas_anqp_add_element(buf, ANQP_CAPABILITY_LIST); wpabuf_put_le16(buf, ANQP_CAPABILITY_LIST); if (hapd->conf->venue_name || get_anqp_el...
anqp_add_capab_list
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_connection_capability(hostapd_data *hapd, wpabuf *buf) { u8 *len; if (hapd->conf->hs20_connection_capability) { len = gas_anqp_add_element(buf, 0xDDDDu); wpabuf_put_be24_4(buf, 0x506F9Au); wpabuf_put_u8_41(buf, 0x11u); wpabuf_put_u8_41(buf, 5u); wpabuf_put_u8_41(buf, 0); wpabu...
static void anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) { if (hapd->conf->hs20_connection_capability) { u8 *len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); wpabuf_put_be24(buf, OUI_WFA); wpabuf_put_u8(buf, HS20_ANQP_OUI_TY...
anqp_add_connection_capability
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_domain_name(hostapd_data *hapd, wpabuf *buf) { if (!anqp_add_override(hapd, buf, 0x10Cu)) { if (hapd->conf->domain_name) { wpabuf_put_le16_15(buf, 0x10Cu); wpabuf_put_le16_15(buf, hapd->conf->domain_name_len); wpabuf_put_data_46(buf, hapd->conf->domain_name, ...
static void anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) { if (anqp_add_override(hapd, buf, ANQP_DOMAIN_NAME)) return; if (hapd->conf->domain_name) { wpabuf_put_le16(buf, ANQP_DOMAIN_NAME); wpabuf_put_le16(buf, hapd->conf->domain_name_len); wp...
anqp_add_domain_name
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_elem(hostapd_data *hapd, wpabuf *buf, u16 infoid) { size_t v3; u16 v4; anqp_element *elem; elem = get_anqp_elem(hapd, infoid); if (elem) { v3 = wpabuf_tailroom_4(buf); if (v3 >= wpabuf_len_54(elem->payload) + 4) { wpabuf_put_le16_15(buf, infoid); v4 = wpabuf_len_54(elem->pay...
static void anqp_add_elem(struct hostapd_data *hapd, struct wpabuf *buf, u16 infoid) { struct anqp_element *elem; elem = get_anqp_elem(hapd, infoid); if (!elem) return; if (wpabuf_tailroom(buf) < 2 + 2 + wpabuf_len(elem->payload)) { wpa_printf(MSG_DEBUG, "ANQP: No room for Inf...
anqp_add_elem
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_extra(wpa_supplicant *wpa_s, wpa_bss_anqp *anqp, u16 info_id, const u8 *data, size_t slen, bool protected_response) { wpa_bss_anqp_elem *tmp; wpa_bss_anqp_elem *elem; elem = 0; if (anqp) { for (tmp = (wpa_bss_anqp_elem *)anqp->anqp_elems.next; tmp != (wpa_bss_anqp...
static void anqp_add_extra(struct wpa_supplicant *wpa_s, struct wpa_bss_anqp *anqp, u16 info_id, const u8 *data, size_t slen, bool protected_response) { struct wpa_bss_anqp_elem *tmp, *elem = NULL; if (!anqp) return; dl_list_fo...
anqp_add_extra
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_fils_realm_info(hostapd_data *hapd, wpabuf *buf) { size_t count; hostapd_bss_config *realm; if (!anqp_add_override(hapd, buf, 0x113u)) { count = dl_list_len_2(&hapd->conf->fils_realms); if (count > 0x2710) count = 10000; if (count) { wpabuf_put_le16_15(buf, 0x113u); wp...
static void anqp_add_fils_realm_info(struct hostapd_data *hapd, struct wpabuf *buf) { size_t count; if (anqp_add_override(hapd, buf, ANQP_FILS_REALM_INFO)) return; count = dl_list_len(&hapd->conf->fils_realms); if (count > 10000) count = 10000; if (count) { s...
anqp_add_fils_realm_info
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
char *anqp_add_hex(char *pos, char *end, const char *title, wpabuf *data) { unsigned char *v5; char *posa; int ret; int reta; int retb; size_t i; const u8 *d; if (!data) return pos; ret = snprintf(pos, end - pos, "%s=", title); if (os_snprintf_error_30(end - pos, ret)) return pos; posa = ...
static char *anqp_add_hex(char *pos, char *end, const char *title, struct wpabuf *data) { char *start = pos; size_t i; int ret; const u8 *d; if (data == NULL) return start; ret = os_snprintf(pos, end - pos, "%s=", title); if (os_snprintf_error(end - pos, ret)) return st...
anqp_add_hex
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_hs_capab_list(hostapd_data *hapd, wpabuf *buf) { u8 *len; len = gas_anqp_add_element(buf, 0xDDDDu); wpabuf_put_be24_4(buf, 0x506F9Au); wpabuf_put_u8_41(buf, 0x11u); wpabuf_put_u8_41(buf, 2u); wpabuf_put_u8_41(buf, 0); wpabuf_put_u8_41(buf, 2u); if (hapd->conf->hs20_oper_friendly_name) ...
static void anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) { u8 *len; len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); wpabuf_put_be24(buf, OUI_WFA); wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE); wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST); wpabu...
anqp_add_hs_capab_list
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_icon(wpabuf *buf, hostapd_bss_config *bss, const char *name) { u8 v3; u8 v4; size_t j; hs20_icon *icon; icon = 0; for (j = 0; j < bss->hs20_icons_count && !icon; ++j) { if (!strcmp(name, bss->hs20_icons[j].name)) icon = &bss->hs20_icons[j]; } if (icon) { wpabuf_put_le16_15(b...
static void anqp_add_icon(struct wpabuf *buf, struct hostapd_bss_config *bss, const char *name) { size_t j; struct hs20_icon *icon = NULL; for (j = 0; j < bss->hs20_icons_count && !icon; j++) { if (os_strcmp(name, bss->hs20_icons[j].name) == 0) icon = &bss->hs20_icons[j]; } ...
anqp_add_icon
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_icon_binary_file(hostapd_data *hapd, wpabuf *buf, const u8 *name, size_t name_len) { u8 v4; size_t data_len; hs20_icon *icon; size_t i; u8 *len; char *data; unsigned long v12; v12 = __readfsqword(0x28u); wpa_hexdump_ascii(2, "HS 2.0: Requested Icon Filenam...
static void anqp_add_icon_binary_file(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *name, size_t name_len) { struct hs20_icon *icon; size_t i; u8 *len; wpa_hexdump_ascii(MSG_DEBUG, "HS 2.0: Requested Icon Filename", name, ...
anqp_add_icon_binary_file
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_ip_addr_type_availability(hostapd_data *hapd, wpabuf *buf) { if (!anqp_add_override(hapd, buf, 0x106u)) { if (hapd->conf->ipaddr_type_configured) { wpabuf_put_le16_15(buf, 0x106u); wpabuf_put_le16_15(buf, 1u); wpabuf_put_u8_41(buf, hapd->conf->ipaddr_type_availability); } } }
static void anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) { if (anqp_add_override(hapd, buf, ANQP_IP_ADDR_TYPE_AVAILABILITY)) return; if (hapd->conf->ipaddr_type_configured) { wpabuf_put_le16(buf, ANQP_IP_ADDR_TYPE_AVAILABIL...
anqp_add_ip_addr_type_availability
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_mbo_cell_data_conn_pref(hostapd_data *hapd, wpabuf *buf) { u8 *len; if (hapd->conf->mbo_cell_data_conn_pref >= 0) { len = gas_anqp_add_element(buf, 0xDDDDu); wpabuf_put_be24_4(buf, 0x506F9Au); wpabuf_put_u8_41(buf, 0x12u); wpabuf_put_u8_41(buf, 2u); wpabuf_put_u8_41(buf, hapd->con...
static void anqp_add_mbo_cell_data_conn_pref(struct hostapd_data *hapd, struct wpabuf *buf) { if (hapd->conf->mbo_cell_data_conn_pref >= 0) { u8 *len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); wpabuf_put_be24(buf, OUI_WFA); wpabuf_put_u8(buf, MBO_ANQP_O...
anqp_add_mbo_cell_data_conn_pref
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_nai_realm(hostapd_data *hapd, wpabuf *buf, const u8 *home_realm, size_t home_realm_len, int nai_realm, int nai_home_realm) { unsigned int i; unsigned int j; u8 *len; hostapd_nai_realm_data *realm; u8 *realm_data_len; u8 *realm_len; if (!nai_re...
static void anqp_add_nai_realm(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len, int nai_realm, int nai_home_realm) { if (nai_realm && !nai_home_realm && anqp_add_override(hapd, buf, ANQP_NAI_REALM)) retu...
anqp_add_nai_realm
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_nai_realm_data(wpabuf *buf, hostapd_nai_realm_data *realm, unsigned int realm_idx) { int v3; u8 v4; u8 *realm_data_len; v3 = strlen(realm->realm[realm_idx]); wpa_printf(2, "realm=%s, len=%d", realm->realm[realm_idx], v3); realm_data_len = (u8 *)wpabuf_put(buf, 2u)...
static void anqp_add_nai_realm_data(struct wpabuf *buf, struct hostapd_nai_realm_data *realm, unsigned int realm_idx) { u8 *realm_data_len; wpa_printf(MSG_DEBUG, "realm=%s, len=%d", realm->realm[realm_idx], (int)os_strlen(realm->r...
anqp_add_nai_realm_data
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_nai_realm_eap(wpabuf *buf, hostapd_nai_realm_data *realm) { unsigned int i; unsigned int j; hostapd_nai_realm_eap *eap; wpabuf_put_u8_41(buf, realm->eap_method_count); for (i = 0; i < realm->eap_method_count; ++i) { eap = &realm->eap_method[i]; wpabuf_put_u8_41(buf, 3 * realm->eap_metho...
static void anqp_add_nai_realm_eap(struct wpabuf *buf, struct hostapd_nai_realm_data *realm) { unsigned int i, j; wpabuf_put_u8(buf, realm->eap_method_count); for (i = 0; i < realm->eap_method_count; i++) { struct hostapd_nai_realm_eap *eap = &realm->eap_method[i]; wpa...
anqp_add_nai_realm_eap
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_network_auth_type(hostapd_data *hapd, wpabuf *buf) { if (!anqp_add_override(hapd, buf, 0x104u)) { if (hapd->conf->network_auth_type) { wpabuf_put_le16_15(buf, 0x104u); wpabuf_put_le16_15(buf, hapd->conf->network_auth_type_len); wpabuf_put_data_46(buf, hapd->conf->network_auth_type,...
static void anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) { if (anqp_add_override(hapd, buf, ANQP_NETWORK_AUTH_TYPE)) return; if (hapd->conf->network_auth_type) { wpabuf_put_le16(buf, ANQP_NETWORK_AUTH_TYPE); wpabuf_put_le16(buf, hapd->...
anqp_add_network_auth_type
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_operating_class(hostapd_data *hapd, wpabuf *buf) { u8 *len; if (hapd->conf->hs20_operating_class) { len = gas_anqp_add_element(buf, 0xDDDDu); wpabuf_put_be24_4(buf, 0x506F9Au); wpabuf_put_u8_41(buf, 0x11u); wpabuf_put_u8_41(buf, 7u); wpabuf_put_u8_41(buf, 0); wpabuf_put_data_4...
static void anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) { if (hapd->conf->hs20_operating_class) { u8 *len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); wpabuf_put_be24(buf, OUI_WFA); wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE); wpabuf_pu...
anqp_add_operating_class
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_operator_friendly_name(hostapd_data *hapd, wpabuf *buf) { unsigned int i; u8 *len; hostapd_lang_string *vn; if (hapd->conf->hs20_oper_friendly_name) { len = gas_anqp_add_element(buf, 0xDDDDu); wpabuf_put_be24_4(buf, 0x506F9Au); wpabuf_put_u8_41(buf, 0x11u); wpabuf_put_u8_41(buf, 3...
static void anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) { if (hapd->conf->hs20_oper_friendly_name) { u8 *len; unsigned int i; len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); wpabuf_put_be24(buf, OUI_WFA); wpabuf_...
anqp_add_operator_friendly_name
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_operator_icon_metadata(hostapd_data *hapd, wpabuf *buf) { size_t i; hostapd_bss_config *bss; u8 *len; bss = hapd->conf; if (bss->hs20_operator_icon_count) { len = gas_anqp_add_element(buf, 0xDDDDu); wpabuf_put_be24_4(buf, 0x506F9Au); wpabuf_put_u8_41(buf, 0x11u); wpabuf_put_u8_4...
static void anqp_add_operator_icon_metadata(struct hostapd_data *hapd, struct wpabuf *buf) { struct hostapd_bss_config *bss = hapd->conf; size_t i; u8 *len; if (!bss->hs20_operator_icon_count) return; len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); w...
anqp_add_operator_icon_metadata
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_osu_provider(wpabuf *buf, hostapd_bss_config *bss, hs20_osu_provider *p) { u16 v3; u8 v4; u16 v5; u8 v6; u16 v7; u16 v8; unsigned int i; unsigned int ia; unsigned int ib; unsigned int ic; u8 *len; u8 *len2; u8 *len2a; u8 *len2b; u8 *count; hostapd...
static void anqp_add_osu_provider(struct wpabuf *buf, struct hostapd_bss_config *bss, struct hs20_osu_provider *p) { u8 *len, *len2, *count; unsigned int i; len = wpabuf_put(buf, 2); len2 = wpabuf_put(buf, 2); for (i = 0; i < p->friendly_na...
anqp_add_osu_provider
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_osu_provider_nai(wpabuf *buf, hs20_osu_provider *p) { u8 v2; if (p->osu_nai2) { v2 = strlen(p->osu_nai2); wpabuf_put_u8_41(buf, v2); wpabuf_put_str_5(buf, p->osu_nai2); } else { wpabuf_put_u8_41(buf, 0); } }
static void anqp_add_osu_provider_nai(struct wpabuf *buf, struct hs20_osu_provider *p) { if (p->osu_nai2) { wpabuf_put_u8(buf, os_strlen(p->osu_nai2)); wpabuf_put_str(buf, p->osu_nai2); } else { wpabuf_put_u8(buf, 0); } }
anqp_add_osu_provider_nai
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_osu_providers_list(hostapd_data *hapd, wpabuf *buf) { size_t i; u8 *len; if (hapd->conf->hs20_osu_providers_count) { len = gas_anqp_add_element(buf, 0xDDDDu); wpabuf_put_be24_4(buf, 0x506F9Au); wpabuf_put_u8_41(buf, 0x11u); wpabuf_put_u8_41(buf, 8u); wpabuf_put_u8_41(buf, 0); ...
static void anqp_add_osu_providers_list(struct hostapd_data *hapd, struct wpabuf *buf) { if (hapd->conf->hs20_osu_providers_count) { size_t i; u8 *len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); wpabuf_put_be24(buf, OUI_WFA); wpabuf_put_u8(buf, HS20_ANQP_...
anqp_add_osu_providers_list
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_osu_providers_nai_list(hostapd_data *hapd, wpabuf *buf) { size_t i; u8 *len; if (hapd->conf->hs20_osu_providers_nai_count) { len = gas_anqp_add_element(buf, 0xDDDDu); wpabuf_put_be24_4(buf, 0x506F9Au); wpabuf_put_u8_41(buf, 0x11u); wpabuf_put_u8_41(buf, 0xDu); wpabuf_put_u8_41(b...
static void anqp_add_osu_providers_nai_list(struct hostapd_data *hapd, struct wpabuf *buf) { if (hapd->conf->hs20_osu_providers_nai_count) { size_t i; u8 *len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); wpabuf_put_be24(buf, OUI_WFA); wpabuf_put_u8(buf...
anqp_add_osu_providers_nai_list
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_roaming_consortium(hostapd_data *hapd, wpabuf *buf) { unsigned int i; u8 *len; hostapd_roaming_consortium *rc; if (!anqp_add_override(hapd, buf, 0x105u)) { len = gas_anqp_add_element(buf, 0x105u); for (i = 0; i < hapd->conf->roaming_consortium_count; ++i) { rc = &hapd->conf->roaming...
static void anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) { unsigned int i; u8 *len; if (anqp_add_override(hapd, buf, ANQP_ROAMING_CONSORTIUM)) return; len = gas_anqp_add_element(buf, ANQP_ROAMING_CONSORTIUM); for (i = 0; i < hapd->con...
anqp_add_roaming_consortium
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_venue_name(hostapd_data *hapd, wpabuf *buf) { unsigned int i; u8 *len; hostapd_lang_string *vn; if (!anqp_add_override(hapd, buf, 0x102u) && hapd->conf->venue_name) { len = gas_anqp_add_element(buf, 0x102u); wpabuf_put_u8_41(buf, hapd->conf->venue_group); wpabuf_put_u8_41(buf, hapd->c...
static void anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) { if (anqp_add_override(hapd, buf, ANQP_VENUE_NAME)) return; if (hapd->conf->venue_name) { u8 *len; unsigned int i; len = gas_anqp_add_element(buf, ANQP_VENUE_NAME); wpabuf_put_u8(buf, hapd->conf->venue_group); w...
anqp_add_venue_name
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_venue_url(hostapd_data *hapd, wpabuf *buf) { unsigned int i; u8 *len; hostapd_venue_url *url; if (!anqp_add_override(hapd, buf, 0x115u) && hapd->conf->venue_url) { len = gas_anqp_add_element(buf, 0x115u); for (i = 0; i < hapd->conf->venue_url_count; ++i) { url = &hapd->conf->venue_u...
static void anqp_add_venue_url(struct hostapd_data *hapd, struct wpabuf *buf) { if (anqp_add_override(hapd, buf, ANQP_VENUE_URL)) return; if (hapd->conf->venue_url) { u8 *len; unsigned int i; len = gas_anqp_add_element(buf, ANQP_VENUE_URL); for (i = 0; i < hapd->conf->venue_url_count; i++) { ...
anqp_add_venue_url
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_add_wan_metrics(hostapd_data *hapd, wpabuf *buf) { u8 *len; if (hapd->conf->hs20_wan_metrics) { len = gas_anqp_add_element(buf, 0xDDDDu); wpabuf_put_be24_4(buf, 0x506F9Au); wpabuf_put_u8_41(buf, 0x11u); wpabuf_put_u8_41(buf, 4u); wpabuf_put_u8_41(buf, 0); wpabuf_put_data_46(buf, h...
static void anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) { if (hapd->conf->hs20_wan_metrics) { u8 *len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); wpabuf_put_be24(buf, OUI_WFA); wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE); wpabuf_put_u8(buf, HS...
anqp_add_wan_metrics
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *anqp_build_req(u16 *info_ids, size_t num_ids, wpabuf *extra) { size_t v3; size_t i; wpabuf *buf; u8 *len_pos; if (extra) v3 = wpabuf_len_21(extra); else v3 = 0; buf = gas_anqp_build_initial_req(0, 2 * (num_ids + 2) + v3); if (!buf) return 0; if (num_ids) { len_pos = gas_anqp_a...
static struct wpabuf *anqp_build_req(u16 info_ids[], size_t num_ids, struct wpabuf *extra) { struct wpabuf *buf; size_t i; u8 *len_pos; buf = gas_anqp_build_initial_req(0, 4 + num_ids * 2 + (extra ? wpabuf_len(extra) : 0)); if (bu...
anqp_build_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
size_t anqp_get_required_len(hostapd_data *hapd, const u16 *infoid, unsigned int num_infoid) { unsigned int i; size_t len; anqp_element *elem; len = 0; for (i = 0; i < num_infoid; ++i) { elem = get_anqp_elem(hapd, infoid[i]); if (elem) len += wpabuf_len_54(elem->pay...
static size_t anqp_get_required_len(struct hostapd_data *hapd, const u16 *infoid, unsigned int num_infoid) { size_t len = 0; unsigned int i; for (i = 0; i < num_infoid; i++) { struct anqp_element *elem = get_anqp_elem(hapd, infoid[i]); ...
anqp_get_required_len
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void anqp_resp_cb(void *ctx, const u8 *dst, u8 dialog_token, gas_query_result result, const wpabuf *adv_proto, const wpabuf *resp, u16 status_code) { u16 info_id; u16 slen; unsigned int left; const u8 *pos; const u8 *posa; const u8 *posc; const u8 *posb; wpa_bss *bss;...
void anqp_resp_cb(void *ctx, const u8 *dst, u8 dialog_token, enum gas_query_result result, const struct wpabuf *adv_proto, const struct wpabuf *resp, u16 status_code) { struct wpa_supplicant *wpa_s = ctx; const u8 *pos; const u8 *end; u16 info_id; u16 slen; struct wpa_bss...
anqp_resp_cb
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int anqp_send_req(wpa_supplicant *wpa_s, const u8 *dst, int freq, u16 *info_ids, size_t num_ids, u32 subtypes, u32 mbo_subtypes) { size_t v8; int ret; int res; wpabuf *extra_buf; wpa_bss *bss; wpabuf *mbo; wpabuf *buf; unsigned long v19; v19 = __readfsqword(0x28u); extra_buf = 0; ...
int anqp_send_req(struct wpa_supplicant *wpa_s, const u8 *dst, int freq, u16 info_ids[], size_t num_ids, u32 subtypes, u32 mbo_subtypes) { struct wpabuf *buf; struct wpabuf *extra_buf = NULL; int ret = 0; struct wpa_bss *bss; int res; bss = wpa_bss_get_bssid(wpa_s, dst);...
anqp_send_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_check_sa_query_timeout(hostapd_data *hapd, sta_info *sta) { os_reltime now; os_reltime passed; unsigned long v5; v5 = __readfsqword(0x28u); os_get_reltime(&now); os_reltime_sub_7(&now, &sta->sa_query_start, &passed); if ((unsigned int)((1000000 * passed.sec + passed.usec) / 1024) <= hapd->co...
int ap_check_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta) { u32 tu; struct os_reltime now, passed; os_get_reltime(&now); os_reltime_sub(&now, &sta->sa_query_start, &passed); tu = (passed.sec * 1000000 + passed.usec) / 1024; if (hapd->conf->assoc_sa_query_max_timeout < tu) { hostapd_...
ap_check_sa_query_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_client_poll_ok(void *ctx, const u8 *addr) { if (*((_QWORD *)ctx + 399)) hostapd_client_poll_ok(**(hostapd_data ***)(*((_QWORD *)ctx + 399) + 72LL), addr); }
void ap_client_poll_ok(void *ctx, const u8 *addr) { #ifdef NEED_AP_MLME struct wpa_supplicant *wpa_s = ctx; if (wpa_s->ap_iface) hostapd_client_poll_ok(wpa_s->ap_iface->bss[0], addr); #endif }
ap_client_poll_ok
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_ctrl_iface_chanswitch(wpa_supplicant *wpa_s, const char *pos) { int ret; csa_settings settings; unsigned long v5; v5 = __readfsqword(0x28u); ret = hostapd_parse_csa_settings(pos, &settings); if (ret) return ret; else return ap_switch_channel(wpa_s, &settings); }
int ap_ctrl_iface_chanswitch(struct wpa_supplicant *wpa_s, const char *pos) { struct csa_settings settings; int ret = hostapd_parse_csa_settings(pos, &settings); if (ret) return ret; return ap_switch_channel(wpa_s, &settings); }
ap_ctrl_iface_chanswitch
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_ctrl_iface_sta(wpa_supplicant *wpa_s, const char *txtaddr, char *buf, size_t buflen) { hostapd_data *hapd; if (wpa_s->ap_iface) { hapd = *wpa_s->ap_iface->bss; } else { if (!wpa_s->ifmsh) return -1; hapd = *wpa_s->ifmsh->bss; } return hostapd_ctrl_iface_sta(hapd...
int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr, char *buf, size_t buflen) { struct hostapd_data *hapd; if (wpa_s->ap_iface) hapd = wpa_s->ap_iface->bss[0]; else if (wpa_s->ifmsh) hapd = wpa_s->ifmsh->bss[0]; else return -1; return hostapd_ctrl_iface_...
ap_ctrl_iface_sta
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_ctrl_iface_sta_deauthenticate(wpa_supplicant *wpa_s, const char *txtaddr) { if (wpa_s->ap_iface) return hostapd_ctrl_iface_deauthenticate(*wpa_s->ap_iface->bss, txtaddr); else return -1; }
int ap_ctrl_iface_sta_deauthenticate(struct wpa_supplicant *wpa_s, const char *txtaddr) { if (wpa_s->ap_iface == NULL) return -1; return hostapd_ctrl_iface_deauthenticate(wpa_s->ap_iface->bss[0], txtaddr); }
ap_ctrl_iface_sta_deauthenticate
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_ctrl_iface_sta_disassociate(wpa_supplicant *wpa_s, const char *txtaddr) { if (wpa_s->ap_iface) return hostapd_ctrl_iface_disassociate(*wpa_s->ap_iface->bss, txtaddr); else return -1; }
int ap_ctrl_iface_sta_disassociate(struct wpa_supplicant *wpa_s, const char *txtaddr) { if (wpa_s->ap_iface == NULL) return -1; return hostapd_ctrl_iface_disassociate(wpa_s->ap_iface->bss[0], txtaddr); }
ap_ctrl_iface_sta_disassociate
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_ctrl_iface_sta_first(wpa_supplicant *wpa_s, char *buf, size_t buflen) { hostapd_data *hapd; if (wpa_s->ap_iface) { hapd = *wpa_s->ap_iface->bss; } else { if (!wpa_s->ifmsh) return -1; hapd = *wpa_s->ifmsh->bss; } return hostapd_ctrl_iface_sta_first(hapd, buf, buflen); }
int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s, char *buf, size_t buflen) { struct hostapd_data *hapd; if (wpa_s->ap_iface) hapd = wpa_s->ap_iface->bss[0]; else if (wpa_s->ifmsh) hapd = wpa_s->ifmsh->bss[0]; else return -1; return hostapd_ctrl_iface_sta_first...
ap_ctrl_iface_sta_first
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_ctrl_iface_sta_next(wpa_supplicant *wpa_s, const char *txtaddr, char *buf, size_t buflen) { hostapd_data *hapd; if (wpa_s->ap_iface) { hapd = *wpa_s->ap_iface->bss; } else { if (!wpa_s->ifmsh) return -1; hapd = *wpa_s->ifmsh->bss; } return hostapd_ctrl_ifac...
int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr, char *buf, size_t buflen) { struct hostapd_data *hapd; if (wpa_s->ap_iface) hapd = wpa_s->ap_iface->bss[0]; else if (wpa_s->ifmsh) hapd = wpa_s->ifmsh->bss[0]; else return -1; return hostapd_c...
ap_ctrl_iface_sta_next
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_ctrl_iface_wpa_get_status(wpa_supplicant *wpa_s, char *buf, size_t buflen, int verbose) { const char *v5; const char *v6; const char *v7; int ret; int pos; char *end; hostapd_bss_config *conf; pos = (int)buf; end = &buf[buflen]; if (!wpa_s->ap_iface) retu...
int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf, size_t buflen, int verbose) { char *pos = buf, *end = buf + buflen; int ret; struct hostapd_bss_config *conf; if (wpa_s->ap_iface == NULL) return -1; conf = wpa_s->ap_iface->bss[0]->conf; if (con...
ap_ctrl_iface_wpa_get_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_eapol_tx_status(void *ctx, const u8 *dst, const u8 *data, size_t len, int ack) { if (*((_QWORD *)ctx + 399)) hostapd_tx_status(**(hostapd_data ***)(*((_QWORD *)ctx + 399) + 72LL), dst, data, len, ack); }
void ap_eapol_tx_status(void *ctx, const u8 *dst, const u8 *data, size_t len, int ack) { #ifdef NEED_AP_MLME struct wpa_supplicant *wpa_s = ctx; if (!wpa_s->ap_iface) return; hostapd_tx_status(wpa_s->ap_iface->bss[0], dst, data, len, ack); #endif }
ap_eapol_tx_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_free_sta(hostapd_data *hapd, sta_info *sta) { int set_beacon; int i; set_beacon = 0; accounting_sta_stop(hapd, sta); ap_sta_set_authorized(hapd, sta, 0); hostapd_set_sta_flags(hapd, sta); if ((sta->flags & 0x804000) != 0) hostapd_set_wds_sta(hapd, 0, sta->addr, sta->aid, 0); if (sta->ipaddr...
void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) { int set_beacon = 0; accounting_sta_stop(hapd, sta); ap_sta_set_authorized(hapd, sta, 0); hostapd_set_sta_flags(hapd, sta); if (sta->flags & (WLAN_STA_WDS | WLAN_STA_MULTI_AP)) hostapd_set_wds_sta(hapd, NULL, sta->addr, sta->aid, 0); ...
ap_free_sta
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_handle_session_timer(void *eloop_ctx, void *timeout_ctx) { wpa_printf(2, "%s: Session timer for STA %02x:%02x:%02x:%02x:%02x:%02x", *((const char **)eloop_ctx + 2), *((unsigned char *)timeout_ctx + 16), *((unsigned char *)timeout_ctx + 17), *((unsigned char ...
static void ap_handle_session_timer(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct sta_info *sta = timeout_ctx; wpa_printf(MSG_DEBUG, "%s: Session timer for STA " MACSTR, hapd->conf->iface, MAC2STR(sta->addr)); if (!(sta->flags & (WLAN_STA_AUTH | WLAN_STA_ASSOC...
ap_handle_session_timer
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_handle_session_warning_timer(void *eloop_ctx, void *timeout_ctx) { ; }
static void ap_handle_session_warning_timer(void *eloop_ctx, void *timeout_ctx) { #ifdef CONFIG_WNM_AP struct hostapd_data *hapd = eloop_ctx; struct sta_info *sta = timeout_ctx; wpa_printf(MSG_DEBUG, "%s: WNM: Session warning time reached for " MACSTR, hap...
ap_handle_session_warning_timer
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_handle_timer(void *eloop_ctx, void *timeout_ctx) { int v2; const char *v3; int v4; unsigned int v5; short v6; _BOOL4 deauth; int fuzz; int inactive_sec; u16 reason; unsigned long next_time; next_time = 0; wpa_printf(2, "%s: %s: %02x:%02x:%02x:%02x:%02x:%02x flags=0x%x timeo...
void ap_handle_timer(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct sta_info *sta = timeout_ctx; unsigned long next_time = 0; int reason; wpa_printf(MSG_DEBUG, "%s: %s: " MACSTR " flags=0x%x timeout_next=%d", hapd->conf->iface, __func__, MAC2STR(sta->addr), s...
ap_handle_timer
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_ht2040_timeout(void *eloop_data, void *user_data) { wpa_printf(3, "Switching to 40 MHz operation"); *(_DWORD *)(*((_QWORD *)eloop_data + 3) + 336LL) = *((_DWORD *)eloop_data + 594); ieee802_11_set_beacons((hostapd_iface *)eloop_data); }
void ap_ht2040_timeout(void *eloop_data, void *user_data) { struct hostapd_iface *iface = eloop_data; wpa_printf(MSG_INFO, "Switching to 40 MHz operation"); iface->conf->secondary_channel = iface->secondary_ch; ieee802_11_set_beacons(iface); }
ap_ht2040_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_ht40_scan_retry(void *eloop_data, void *user_data) { int v2; char *v3; int ret; wpa_driver_scan_params_0 params; unsigned long v6; v6 = __readfsqword(0x28u); memset(&params, 0, sizeof(params)); if (**((_DWORD **)eloop_data + 279) == 1) ieee80211n_scan_channels_2g4((hostapd_iface *)eloop_dat...
static void ap_ht40_scan_retry(void *eloop_data, void *user_data) { #define HT2040_COEX_SCAN_RETRY 15 struct hostapd_iface *iface = eloop_data; struct wpa_driver_scan_params params; int ret; os_memset(&params, 0, sizeof(params)); if (iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G) ieee80211n_scan_c...
ap_ht40_scan_retry
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_list_timer(hostapd_iface *iface) { int set_beacon; int olbc; int olbc_ht; ap_info *ap; ap_info *apa; os_reltime now; unsigned long v7; v7 = __readfsqword(0x28u); set_beacon = 0; if (iface->ap_list) { os_get_reltime(&now); while (iface->ap_list) { ap = iface->ap_list->prev; ...
void ap_list_timer(struct hostapd_iface *iface) { struct os_reltime now; struct ap_info *ap; int set_beacon = 0; if (!iface->ap_list) return; os_get_reltime(&now); while (iface->ap_list) { ap = iface->ap_list->prev; if (!os_reltime_expired(&now, &ap->last_beacon, i...
ap_list_timer
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_mgmt_rx(void *ctx, rx_mgmt *rx_mgmt) { hostapd_frame_info fi; unsigned long v3; v3 = __readfsqword(0x28u); memset(&fi, 0, sizeof(fi)); fi.datarate = rx_mgmt->datarate; fi.ssi_signal = rx_mgmt->ssi_signal; ieee802_11_mgmt(**(hostapd_data ***)(*((_QWORD *)ctx + 399) + 72LL), rx_mg...
void ap_mgmt_rx(void *ctx, struct rx_mgmt *rx_mgmt) { #ifdef NEED_AP_MLME struct wpa_supplicant *wpa_s = ctx; struct hostapd_frame_info fi; os_memset(&fi, 0, sizeof(fi)); fi.datarate = rx_mgmt->datarate; fi.ssi_signal = rx_mgmt->ssi_signal; ieee802_11_mgmt(wpa_s->ap_iface->bss[0], rx_mgmt->frame, rx_mgmt->f...
ap_mgmt_rx
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok) { ieee802_11_mgmt_cb(**(hostapd_data ***)(*((_QWORD *)ctx + 399) + 72LL), buf, len, stype, ok); }
void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok) { #ifdef NEED_AP_MLME struct wpa_supplicant *wpa_s = ctx; ieee802_11_mgmt_cb(wpa_s->ap_iface->bss[0], buf, len, stype, ok); #endif }
ap_mgmt_tx_cb
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_periodic(wpa_supplicant *wpa_s) { if (wpa_s->ap_iface) hostapd_periodic_iface(wpa_s->ap_iface); }
void ap_periodic(struct wpa_supplicant *wpa_s) { if (wpa_s->ap_iface) hostapd_periodic_iface(wpa_s->ap_iface); }
ap_periodic
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_probe_req_rx(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid, const u8 *ie, size_t ie_len, int ssi_signal) { unsigned int freq; freq = 0; if (*((_QWORD *)ctx + 399)) freq = *(_DWORD *)(*((_QWORD *)ctx + 399) + 2264LL); return wpas_p2p_probe_req_rx((wpa_supplicant *)ctx, sa...
static int ap_probe_req_rx(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid, const u8 *ie, size_t ie_len, int ssi_signal) { struct wpa_supplicant *wpa_s = ctx; unsigned int freq = 0; if (wpa_s->ap_iface) freq = wpa_s->ap_iface->freq; return wpas_...
ap_probe_req_rx
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_public_action_rx(void *ctx, const u8 *buf, size_t len, int freq) { ; }
static void ap_public_action_rx(void *ctx, const u8 *buf, size_t len, int freq) { #ifdef CONFIG_P2P struct wpa_supplicant *wpa_s = ctx; const struct ieee80211_mgmt *mgmt; mgmt = (const struct ieee80211_mgmt *)buf; if (len < IEEE80211_HDRLEN + 1) return; if (mgmt->u.action....
ap_public_action_rx
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_rx_from_unknown_sta(void *ctx, const u8 *addr, int wds) { ieee802_11_rx_from_unknown( **(hostapd_data ***)(*((_QWORD *)ctx + 399) + 72LL), addr, wds); }
void ap_rx_from_unknown_sta(void *ctx, const u8 *addr, int wds) { #ifdef NEED_AP_MLME struct wpa_supplicant *wpa_s = ctx; ieee802_11_rx_from_unknown(wpa_s->ap_iface->bss[0], addr, wds); #endif }
ap_rx_from_unknown_sta
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_sa_query_timer(void *eloop_ctx, void *timeout_ctx) { u8 *nbuf; u8 *trans_id; wpa_printf( 2, "%s: SA Query timer for STA %02x:%02x:%02x:%02x:%02x:%02x (count=%d)", *((const char **)eloop_ctx + 2), *((unsigned char *)timeout_ctx + 16), *((unsigned char *)timeout_ctx + 17), *((unsign...
static void ap_sa_query_timer(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct sta_info *sta = timeout_ctx; unsigned int timeout, sec, usec; u8 *trans_id, *nbuf; wpa_printf(MSG_DEBUG, "%s: SA Query timer for STA " MACSTR " (count=%d)", hapd->conf->iface, MAC2ST...
ap_sa_query_timer
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
sta_info *ap_sta_add(hostapd_data *hapd, const u8 *addr) { int i; sta_info *sta; sta_info *staa; sta = ap_get_sta(hapd, addr); if (sta) return sta; wpa_printf(2, " New STA"); if (hapd->num_sta < hapd->conf->max_num_sta) { staa = (sta_info *)os_zalloc(0x3C0u); if (staa) { staa->acct_int...
struct sta_info *ap_sta_add(struct hostapd_data *hapd, const u8 *addr) { struct sta_info *sta; int i; sta = ap_get_sta(hapd, addr); if (sta) return sta; wpa_printf(MSG_DEBUG, " New STA"); if (hapd->num_sta >= hapd->conf->max_num_sta) { wpa_printf(MSG_DEBUG, "no more room for new STAs (%d/%d)", h...
ap_sta_add
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_sta_authorized_cb(void *ctx, const u8 *mac_addr, int authorized, const u8 *p2p_dev_addr) { wpas_notify_sta_authorized((wpa_supplicant *)ctx, mac_addr, authorized, p2p_dev_addr); }
static void ap_sta_authorized_cb(void *ctx, const u8 *mac_addr, int authorized, const u8 *p2p_dev_addr) { wpas_notify_sta_authorized(ctx, mac_addr, authorized, p2p_dev_addr); }
ap_sta_authorized_cb
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_sta_bind_vlan(hostapd_data *hapd, sta_info *sta) { return 0; }
int ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta) { #ifndef CONFIG_NO_VLAN const char *iface; struct hostapd_vlan *vlan = NULL; int ret; int old_vlanid = sta->vlan_id_bound; if ((sta->flags & WLAN_STA_WDS) && sta->vlan_id == 0) { wpa_printf(MSG_DEBUG, "Do not override WDS VLAN assignm...
ap_sta_bind_vlan
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_sta_deauth_cb_timeout(void *eloop_ctx, void *timeout_ctx) { wpa_printf( 2, "%s: Deauthentication callback for STA %02x:%02x:%02x:%02x:%02x:%02x", *((const char **)eloop_ctx + 2), *((unsigned char *)timeout_ctx + 16), *((unsigned char *)timeout_ctx + 17), *((unsigned char *)timeout_ctx ...
static void ap_sta_deauth_cb_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct sta_info *sta = timeout_ctx; wpa_printf(MSG_DEBUG, "%s: Deauthentication callback for STA " MACSTR, hapd->conf->iface, MAC2STR(sta->addr)); ap_sta_remove(hapd, sta); mlme_deau...
ap_sta_deauth_cb_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_sta_disassoc_cb_timeout(void *eloop_ctx, void *timeout_ctx) { wpa_printf( 2, "%s: Disassociation callback for STA %02x:%02x:%02x:%02x:%02x:%02x", *((const char **)eloop_ctx + 2), *((unsigned char *)timeout_ctx + 16), *((unsigned char *)timeout_ctx + 17), *((unsigned char *)timeout_ctx ...
static void ap_sta_disassoc_cb_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct sta_info *sta = timeout_ctx; wpa_printf(MSG_DEBUG, "%s: Disassociation callback for STA " MACSTR, hapd->conf->iface, MAC2STR(sta->addr)); ap_sta_remove(hapd, sta); mlme_disa...
ap_sta_disassoc_cb_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_sta_flags_txt(u32 flags, char *buf, size_t buflen) { const char *v3; const char *v4; const char *v5; const char *v6; const char *v7; const char *v8; const char *v9; const char *v10; const char *v11; const char *v12; const char *v13; const char *v14; const char *v16; const char *v17; ...
int ap_sta_flags_txt(u32 flags, char *buf, size_t buflen) { int res; buf[0] = '\0'; res = os_snprintf(buf, buflen, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s", (flags & WLAN_STA_AUTH ? "[AUTH]" : ""), (flags & WLAN_STA_ASSOC ? "[ASSOC]" : ""), (flags & W...
ap_sta_flags_txt
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_sta_re_add(hostapd_data *hapd, sta_info *sta) { ap_sta_set_authorized(hapd, sta, 0); hostapd_drv_sta_remove(hapd, sta->addr); sta->flags &= 0xFFFFFFDC; if (hostapd_sta_add(hapd, sta->addr, 0, 0, sta->supported_rates, sta->supported_rates_len, 0, 0, 0, 0, 0, 0, sta->flags, 0, ...
int ap_sta_re_add(struct hostapd_data *hapd, struct sta_info *sta) { ap_sta_set_authorized(hapd, sta, 0); hostapd_drv_sta_remove(hapd, sta->addr); sta->flags &= ~(WLAN_STA_ASSOC | WLAN_STA_AUTH | WLAN_STA_AUTHORIZED); if (hostapd_sta_add(hapd, sta->addr, 0, 0, sta->supported_rates, sta->...
ap_sta_re_add
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_sta_remove(hostapd_data *hapd, sta_info *sta) { ieee802_1x_notify_port_enabled(sta->eapol_sm, 0); if (sta->ipaddr) hostapd_drv_br_delete_ip_neigh(hapd, 4u, (const u8 *)&sta->ipaddr); ap_sta_ip6addr_del(hapd, sta); wpa_printf( 2, "%s: Removing STA %02x:%02x:%02x:%02x:%02x:%02x from kernel driver...
static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta) { ieee802_1x_notify_port_enabled(sta->eapol_sm, 0); if (sta->ipaddr) hostapd_drv_br_delete_ip_neigh(hapd, 4, (u8 *)&sta->ipaddr); ap_sta_ip6addr_del(hapd, sta); wpa_printf(MSG_DEBUG, "%s: Removing STA " MACSTR " from kernel driver",...
ap_sta_remove
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_sta_set_vlan(hostapd_data *hapd, sta_info *sta, vlan_description *vlan_desc) { const char *v4; const char *v5; int untagged; vlan_description *p_vlan_desc; int vlan_id; int ret; int old_vlan_id; hostapd_vlan *vlan; hostapd_vlan *wildcard_vlan; vlan = 0; wildcard_vlan = ...
int ap_sta_set_vlan(struct hostapd_data *hapd, struct sta_info *sta, struct vlan_description *vlan_desc) { struct hostapd_vlan *vlan = NULL, *wildcard_vlan = NULL; int old_vlan_id, vlan_id = 0, ret = 0; if (hapd->conf->ssid.per_sta_vif && !sta->vlan_id) { } else if (hapd->conf->ssid.dynami...
ap_sta_set_vlan
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_switch_channel(wpa_supplicant *wpa_s, csa_settings *settings) { hostapd_iface *iface; iface = 0; if (wpa_s->ap_iface) { iface = wpa_s->ap_iface; } else if (wpa_s->ifmsh) { iface = wpa_s->ifmsh; } if (iface && *iface->bss) return hostapd_switch_channel(*iface->bss, settings); else r...
int ap_switch_channel(struct wpa_supplicant *wpa_s, struct csa_settings *settings) { #ifdef NEED_AP_MLME struct hostapd_iface *iface = NULL; if (wpa_s->ap_iface) iface = wpa_s->ap_iface; else if (wpa_s->ifmsh) iface = wpa_s->ifmsh; if (!iface || !iface->bss[0]) return -1; ...
ap_switch_channel
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_tx_status(void *ctx, const u8 *addr, const u8 *buf, size_t len, int ack) { hostapd_tx_status(**(hostapd_data ***)(*((_QWORD *)ctx + 399) + 72LL), addr, buf, len, ack); }
void ap_tx_status(void *ctx, const u8 *addr, const u8 *buf, size_t len, int ack) { #ifdef NEED_AP_MLME struct wpa_supplicant *wpa_s = ctx; hostapd_tx_status(wpa_s->ap_iface->bss[0], addr, buf, len, ack); #endif }
ap_tx_status
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ap_vendor_action_rx(void *ctx, const u8 *buf, size_t len, int freq) { return 0; }
static int ap_vendor_action_rx(void *ctx, const u8 *buf, size_t len, int freq) { #ifdef CONFIG_P2P struct wpa_supplicant *wpa_s = ctx; const struct ieee80211_mgmt *mgmt; mgmt = (const struct ieee80211_mgmt *)buf; if (len < IEEE80211_HDRLEN + 1) return -1; wpas_p2p_rx_action(wpa_s, mgmt->da, mgmt->sa, mgm...
ap_vendor_action_rx
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_wps_event_cb(void *ctx, wps_event event, wps_event_data *data) { ; }
static void ap_wps_event_cb(void *ctx, enum wps_event event, union wps_event_data *data) { #ifdef CONFIG_P2P struct wpa_supplicant *wpa_s = ctx; if (event == WPS_EV_FAIL) { struct wps_event_fail *fail = &data->fail; if (wpa_s->p2pdev && wpa_s->p2pdev != wpa_s && wpa_s =...
ap_wps_event_cb
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void ap_wps_reg_success_cb(void *ctx, const u8 *mac_addr, const u8 *uuid_e) { wpas_p2p_wps_success((wpa_supplicant *)ctx, mac_addr, 1); }
static void ap_wps_reg_success_cb(void *ctx, const u8 *mac_addr, const u8 *uuid_e) { struct wpa_supplicant *wpa_s = ctx; wpas_p2p_wps_success(wpa_s, mac_addr, 1); }
ap_wps_reg_success_cb
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int are_ies_equal(const wpa_bss *old, const wpa_scan_res *new_res, u32 ie) { const u8 *v4; const u8 *v5; int v6; int v7; int v8; int v9; _BOOL4 v10; _BOOL4 v11; u8 iea; int new_ie_len; int old_ie_len; int ret; int is_multi; const u8 *old_ie; const u8 *new_ie; wpabuf *old_ie_buff; wpabu...
static int are_ies_equal(const struct wpa_bss *old, const struct wpa_scan_res *new_res, u32 ie) { const u8 *old_ie, *new_ie; struct wpabuf *old_ie_buff = NULL; struct wpabuf *new_ie_buff = NULL; int new_ie_len, old_ie_len, ret, is_multi; switch (ie) { case WPA_IE_VENDOR_TYPE: o...
are_ies_equal
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *asn1_build_alg_id(const asn1_oid *oid, const wpabuf *params) { size_t len; wpabuf *buf; len = 100; if (params) len = wpabuf_len_62(params) + 100; buf = wpabuf_alloc(len); if (!buf) return 0; asn1_put_oid(buf, oid); if (params) wpabuf_put_buf_22(buf, params); return asn1_encaps(buf...
struct wpabuf *asn1_build_alg_id(const struct asn1_oid *oid, const struct wpabuf *params) { struct wpabuf *buf; size_t len; len = 100; if (params) len += wpabuf_len(params); buf = wpabuf_alloc(len); if (!buf) return NULL; asn1_put_oid(buf, oid); if (params) ...
asn1_build_alg_id
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *asn1_encaps(wpabuf *buf, u8 a2, u8 tag) { size_t v4; size_t v5; wpabuf *res; if (!buf) return 0; v4 = wpabuf_len_62(buf); res = wpabuf_alloc(v4 + 10); if (res) { v5 = wpabuf_len_62(buf); asn1_put_hdr(res, a2, 1, tag, v5); wpabuf_put_buf_22(res, buf); } wpabuf_clear_free(buf); ...
struct wpabuf *asn1_encaps(struct wpabuf *buf, u8 class, u8 tag) { struct wpabuf *res; if (!buf) return NULL; res = wpabuf_alloc(10 + wpabuf_len(buf)); if (res) { asn1_put_hdr(res, class, 1, tag, wpabuf_len(buf)); wpabuf_put_buf(res, buf); } wpabuf_clear_free(buf); return res; }
asn1_encaps
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void asn1_oid_to_str(const asn1_oid *oid, char *buf, size_t len) { const char *v3; int ret; char *pos; size_t i; pos = buf; if (len) { *buf = 0; for (i = 0; i < oid->len; ++i) { v3 = i ? "." : (const char *)&unk_28B38A; ret = snprintf(pos, &buf[len] - pos, "%s%lu", v3, oid->oid[i]); ...
void asn1_oid_to_str(const struct asn1_oid *oid, char *buf, size_t len) { char *pos = buf; size_t i; int ret; if (len == 0) return; buf[0] = '\0'; for (i = 0; i < oid->len; i++) { ret = os_snprintf(pos, buf + len - pos, "%s%lu", i == 0 ? "" : ".", oid->oid[i]); if (os_sn...
asn1_oid_to_str
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void asn1_put_hdr(wpabuf *buf, u8 a2, int constructed, u8 tag, size_t len) { char v5; if (constructed) v5 = 32; else v5 = 0; wpabuf_put_u8_46(buf, v5 | (a2 << 6) | tag); asn1_put_len(buf, len); }
void asn1_put_hdr(struct wpabuf *buf, u8 class, int constructed, u8 tag, size_t len) { wpabuf_put_u8(buf, class << 6 | (constructed ? 0x20 : 0x00) | tag); asn1_put_len(buf, len); }
asn1_put_hdr
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void asn1_put_integer(wpabuf *buf, int val) { int zeros; u8 bin[4]; unsigned long v4; v4 = __readfsqword(0x28u); WPA_PUT_BE32_27(bin, val); for (zeros = 0; zeros <= 2 && !bin[zeros]; ++zeros) ; wpabuf_put_u8_46(buf, 2u); wpabuf_put_u8_46(buf, 4 - zeros); wpabuf_put_data_51(buf, &bin[zeros], 4 - z...
void asn1_put_integer(struct wpabuf *buf, int val) { u8 bin[4]; int zeros; WPA_PUT_BE32(bin, val); zeros = 0; while (zeros < 3 && bin[zeros] == 0) zeros++; wpabuf_put_u8(buf, ASN1_TAG_INTEGER); wpabuf_put_u8(buf, 4 - zeros); wpabuf_put_data(buf, &bin[zeros], 4 - zeros); }
asn1_put_integer
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void asn1_put_len(wpabuf *buf, size_t len) { if (len > 0x7F) { if (len > 0xFF) { if (len > 0xFFFF) { if (len > 0xFFFFFF) { wpabuf_put_u8_46(buf, 0x84u); wpabuf_put_be32_9(buf, len); } else { wpabuf_put_u8_46(buf, 0x83u); wpabuf_put_be24_7(buf, len); ...
static void asn1_put_len(struct wpabuf *buf, size_t len) { if (len <= 0x7f) { wpabuf_put_u8(buf, len); } else if (len <= 0xff) { wpabuf_put_u8(buf, 0x80 | 1); wpabuf_put_u8(buf, len); } else if (len <= 0xffff) { wpabuf_put_u8(buf, 0x80 | 2); wpabuf_put_be16(buf, len); } else if (len <= 0xfff...
asn1_put_len
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void asn1_put_octet_string(wpabuf *buf, const wpabuf *val) { size_t v2; wpabuf_put_u8_46(buf, 4u); v2 = wpabuf_len_62(val); asn1_put_len(buf, v2); wpabuf_put_buf_22(buf, val); }
void asn1_put_octet_string(struct wpabuf *buf, const struct wpabuf *val) { wpabuf_put_u8(buf, ASN1_TAG_OCTETSTRING); asn1_put_len(buf, wpabuf_len(val)); wpabuf_put_buf(buf, val); }
asn1_put_octet_string
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void asn1_put_oid(wpabuf *buf, const asn1_oid *oid) { char v2; int idx; size_t i; unsigned long val; u8 *len; u8 bytes[8]; unsigned long v8; v8 = __readfsqword(0x28u); if (oid->len > 1) { wpabuf_put_u8_46(buf, 6u); len = (u8 *)wpabuf_put(buf, 1u); wpabuf_put_u8_46(buf, 40 * oid->oid[0] + ...
void asn1_put_oid(struct wpabuf *buf, const struct asn1_oid *oid) { u8 *len; size_t i; if (oid->len < 2) return; wpabuf_put_u8(buf, ASN1_TAG_OID); len = wpabuf_put(buf, 1); wpabuf_put_u8(buf, 40 * oid->oid[0] + oid->oid[1]); for (i = 2; i < oid->len; i++) { unsigned long val = oid->oid[i]; u8...
asn1_put_oid
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void asn1_put_sequence(wpabuf *buf, const wpabuf *payload) { size_t v2; v2 = wpabuf_len_62(payload); asn1_put_hdr(buf, 0, 1, 0x10u, v2); wpabuf_put_buf_22(buf, payload); }
void asn1_put_sequence(struct wpabuf *buf, const struct wpabuf *payload) { asn1_put_hdr(buf, ASN1_CLASS_UNIVERSAL, 1, ASN1_TAG_SEQUENCE, wpabuf_len(payload)); wpabuf_put_buf(buf, payload); }
asn1_put_sequence
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void asn1_put_set(wpabuf *buf, const wpabuf *payload) { size_t v2; v2 = wpabuf_len_62(payload); asn1_put_hdr(buf, 0, 1, 0x11u, v2); wpabuf_put_buf_22(buf, payload); }
void asn1_put_set(struct wpabuf *buf, const struct wpabuf *payload) { asn1_put_hdr(buf, ASN1_CLASS_UNIVERSAL, 1, ASN1_TAG_SET, wpabuf_len(payload)); wpabuf_put_buf(buf, payload); }
asn1_put_set
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void asn1_put_utf8string(wpabuf *buf, const char *val) { size_t v2; v2 = strlen(val); asn1_put_hdr(buf, 0, 0, 0xCu, v2); wpabuf_put_str_7(buf, val); }
void asn1_put_utf8string(struct wpabuf *buf, const char *val) { asn1_put_hdr(buf, ASN1_CLASS_UNIVERSAL, 0, ASN1_TAG_UTF8STRING, os_strlen(val)); wpabuf_put_str(buf, val); }
asn1_put_utf8string
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *auth_build_token_req(hostapd_data *hapd, int group, const u8 *addr, int h2e) { os_time_t usec; u8 p_idx; u16 token_idx; wpabuf *buf; u8 *token; os_reltime now; const u8 *addrs[2]; size_t len[2]; u8 idx[2]; unsigned long v16; v16 = __readfsqword(0x28u); os_ge...
static struct wpabuf *auth_build_token_req(struct hostapd_data *hapd, int group, const u8 *addr, int h2e) { struct wpabuf *buf; u8 *token; struct os_reltime now; u8 idx[2]; const u8 *addrs[2]; size_t len[2]; u8 p_idx; u16 token_idx; os_get_reltime(&now); i...
auth_build_token_req
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int auth_for_each_sta(void *ctx, int (*cb)(wpa_state_machine *, void *), void *cb_ctx) { ibss_rsn_peer *peer; wpa_printf(2, "AUTH: for_each_sta"); for (peer = (ibss_rsn_peer *)*((_QWORD *)ctx + 2); peer; peer = peer->next) { if (peer->auth && cb(peer->auth, cb_ctx)) return 1; } ...
static int auth_for_each_sta(void *ctx, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) { struct ibss_rsn *ibss_rsn = ctx; struct ibss_rsn_peer *peer; wpa_printf(MSG_DEBUG, "AUTH: for_each_sta"); for (peer = ibss_rsn->peers; peer; pee...
auth_for_each_sta
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void auth_sae_process_commit(void *eloop_ctx, void *user_ctx) { hostapd_sae_commit_queue *v2; unsigned int queue_len; hostapd_sae_commit_queue *q; if (dl_list_empty_10((const dl_list *)eloop_ctx + 214)) v2 = 0; else v2 = (hostapd_sae_commit_queue *)*((_QWORD *)eloop_ctx + 428); q = v2; if (v2) { ...
void auth_sae_process_commit(void *eloop_ctx, void *user_ctx) { struct hostapd_data *hapd = eloop_ctx; struct hostapd_sae_commit_queue *q; unsigned int queue_len; q = dl_list_first(&hapd->sae_commit_queue, struct hostapd_sae_commit_queue, list); if (!q) return; wpa_printf(MSG_DEBUG,...
auth_sae_process_commit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void auth_sae_queue(hostapd_data *hapd, const ieee80211_mgmt *mgmt, size_t len, int rssi) { unsigned int queue_len; hostapd_sae_commit_queue *q2; hostapd_sae_commit_queue *q; queue_len = dl_list_len_1(&hapd->sae_commit_queue); if (queue_len <= 0xE) { wpa_printf(2, "SAE:...
static void auth_sae_queue(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len, int rssi) { struct hostapd_sae_commit_queue *q, *q2; unsigned int queue_len; const struct ieee80211_mgmt *mgmt2; queue_len = dl_list_len(&hapd->sae_commit_q...
auth_sae_queue
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void auth_sae_retransmit_timer(void *eloop_ctx, void *eloop_data) { const char *v2; int v3; int ret; if (!sae_check_big_sync((hostapd_data *)eloop_ctx, (sta_info *)eloop_data)) { ++*(_DWORD *)(*((_QWORD *)eloop_data + 90) + 76LL); v2 = sae_state_txt((sae_state) * *((_DWORD **)eloop_data + 90)); wpa...
static void auth_sae_retransmit_timer(void *eloop_ctx, void *eloop_data) { struct hostapd_data *hapd = eloop_ctx; struct sta_info *sta = eloop_data; int ret; if (sae_check_big_sync(hapd, sta)) return; sta->sae->sync++; wpa_printf(MSG_DEBUG, "SAE: Auth SAE retransmit timer for " MACSTR " (s...
auth_sae_retransmit_timer
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int auth_sae_send_commit(hostapd_data *hapd, sta_info *sta, const u8 *bssid, int update, int status_code) { size_t v6; const u8 *v7; u16 status; int reply_res; wpabuf *data; data = auth_build_sae_commit(hapd, sta, update, status_code); if (!data && sta->sae->tmp && sta->sae->tmp-...
static int auth_sae_send_commit(struct hostapd_data *hapd, struct sta_info *sta, const u8 *bssid, int update, int status_code) { struct wpabuf *data; int reply_res; u16 status; data = auth_build_sae_commit(hapd, sta, update, status_code); if (!data && sta->sae->tmp && sta->sae...
auth_sae_send_commit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int auth_sae_send_confirm(hostapd_data *hapd, sta_info *sta, const u8 *bssid) { size_t v4; const u8 *v5; int reply_res; wpabuf *data; data = auth_build_sae_confirm(hapd, sta); if (!data) return 1; v4 = wpabuf_len_51(data); v5 = (const u8 *)wpabuf_head_53(data); reply_res = send_auth_reply(hapd, s...
static int auth_sae_send_confirm(struct hostapd_data *hapd, struct sta_info *sta, const u8 *bssid) { struct wpabuf *data; int reply_res; data = auth_build_sae_confirm(hapd, sta); if (data == NULL) return WLAN_STATUS_UNSPECIFIED_FAILURE; reply_res = send_auth_reply(hapd, ...
auth_sae_send_confirm
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int auth_send_eapol(void *ctx, const u8 *addr, const u8 *data, size_t data_len, int encrypt) { wpa_supplicant *wpa_s; wpa_s = *(wpa_supplicant **)ctx; wpa_printf( 2, "AUTH: %s(addr=%02x:%02x:%02x:%02x:%02x:%02x data_len=%lu encrypt=%d)", "auth_send_eapol", *addr, addr[1], addr[2],...
static int auth_send_eapol(void *ctx, const u8 *addr, const u8 *data, size_t data_len, int encrypt) { struct ibss_rsn *ibss_rsn = ctx; struct wpa_supplicant *wpa_s = ibss_rsn->wpa_s; wpa_printf(MSG_DEBUG, "AUTH: %s(addr=" MACSTR " data_len=%lu " "encrypt=%d)",...
auth_send_eapol
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void auth_set_eapol(void *ctx, const u8 *addr, wpa_eapol_variable var, int value) { ibss_rsn_peer *peer; peer = ibss_rsn_get_peer((ibss_rsn *)ctx, addr); if (peer) { if (var == WPA_EAPOL_authorized) ibss_set_sta_authorized((ibss_rsn *)ctx, peer, value); else wpa_printf(2, ...
static void auth_set_eapol(void *ctx, const u8 *addr, wpa_eapol_variable var, int value) { struct ibss_rsn *ibss_rsn = ctx; struct ibss_rsn_peer *peer = ibss_rsn_get_peer(ibss_rsn, addr); if (peer == NULL) return; switch (var) { case WPA_EAPOL_authorized: ibss_set_sta_auth...
auth_set_eapol
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int auth_start_ampe(void *ctx, const u8 *addr) { sta_info *sta; if (*(_DWORD *)(*(_QWORD *)(*(_QWORD *)ctx + 368LL) + 948LL) != 5) return -1; sta = ap_get_sta( **(hostapd_data ***)(*(_QWORD *)(*(_QWORD *)ctx + 3224LL) + 72LL), addr); if (sta) eloop_cancel_timeout((eloop_timeout_handler)mesh_auth_...
static int auth_start_ampe(void *ctx, const u8 *addr) { struct mesh_rsn *mesh_rsn = ctx; struct hostapd_data *hapd; struct sta_info *sta; if (mesh_rsn->wpa_s->current_ssid->mode != WPAS_MODE_MESH) return -1; hapd = mesh_rsn->wpa_s->ifmsh->bss[0]; sta = ap_get_sta(hapd, addr); if (sta) eloop_canc...
auth_start_ampe
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void authsrv_deinit(hostapd_data *hapd) { eap_server_config_free(hapd->eap_cfg); hapd->eap_cfg = 0; }
void authsrv_deinit(struct hostapd_data *hapd) { #ifdef RADIUS_SERVER radius_server_deinit(hapd->radius_srv); hapd->radius_srv = NULL; #endif #ifdef EAP_TLS_FUNCS if (hapd->ssl_ctx) { tls_deinit(hapd->ssl_ctx); hapd->ssl_ctx = NULL; } #endif #ifdef EAP_SIM_DB if (hapd->eap_sim_db_priv) { eap_sim...
authsrv_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int authsrv_init(hostapd_data *hapd) { hapd->eap_cfg = authsrv_eap_config(hapd); if (hapd->eap_cfg) return 0; wpa_printf(5, "Failed to build EAP server configuration"); authsrv_deinit(hapd); return -1; }
int authsrv_init(struct hostapd_data *hapd) { #ifdef EAP_TLS_FUNCS if (hapd->conf->eap_server && (hapd->conf->ca_cert || hapd->conf->server_cert || hapd->conf->private_key || hapd->conf->dh_file || hapd->conf->server_cert2 || hapd->conf->private_key2)) { struct tls_config conf; struct tls_...
authsrv_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_deinit(wpa_supplicant *wpa_s) { if (wpa_s->bgscan) { if (wpa_s->bgscan_priv) { wpa_printf(2, "bgscan: Deinitializing module '%s'", wpa_s->bgscan->name); wpa_s->bgscan->deinit(wpa_s->bgscan_priv); wpa_s->bgscan = 0; wpa_s->bgscan_priv = 0; } } }
void bgscan_deinit(struct wpa_supplicant *wpa_s) { if (wpa_s->bgscan && wpa_s->bgscan_priv) { wpa_printf(MSG_DEBUG, "bgscan: Deinitializing module '%s'", wpa_s->bgscan->name); wpa_s->bgscan->deinit(wpa_s->bgscan_priv); wpa_s->bgscan = NULL; wpa_s->bgscan_priv = NULL; } }
bgscan_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bgscan_init(wpa_supplicant *wpa_s, wpa_ssid *ssid, const char *name) { int i; char *params; const char *paramsa; size_t nlen; const bgscan_ops *ops; ops = 0; bgscan_deinit(wpa_s); params = strchr(name, 58); if (params) { nlen = params - name; paramsa = params + 1; } else { paramsa =...
int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, const char *name) { const char *params; size_t nlen; int i; const struct bgscan_ops *ops = NULL; bgscan_deinit(wpa_s); params = os_strchr(name, ':'); if (params == NULL) { params = ""; nlen = os_strlen(name); ...
bgscan_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_learn_add_neighbor(bgscan_learn_bss *bss, const u8 *bssid) { u8 *n; if (memcmp(bss->bssid, bssid, 6u) && !bssid_in_array(bss->neigh, bss->num_neigh, bssid)) { n = (u8 *)os_realloc_array_13(bss->neigh, bss->num_neigh + 1, 6u); if (n) { memcpy(&n[6 * bss->num_neigh], bssid, 6u); ...
static void bgscan_learn_add_neighbor(struct bgscan_learn_bss *bss, const u8 *bssid) { u8 *n; if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) return; if (bssid_in_array(bss->neigh, bss->num_neigh, bssid)) return; n = os_realloc_array(bss->neigh, bss->num_neigh + ...
bgscan_learn_add_neighbor
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bgscan_learn_bss_match(bgscan_learn_data *data, wpa_scan_res *bss) { const u8 *ie; ie = wpa_scan_get_ie(bss, 0); if (!ie) return 0; return data->ssid->ssid_len == ie[1] && !memcmp(data->ssid->ssid, ie + 2, ie[1]); }
static int bgscan_learn_bss_match(struct bgscan_learn_data *data, struct wpa_scan_res *bss) { const u8 *ie; ie = wpa_scan_get_ie(bss, WLAN_EID_SSID); if (ie == NULL) return 0; if (data->ssid->ssid_len != ie[1] || os_memcmp(data->ssid->ssid, ie + 2, ie[1]) != 0) ...
bgscan_learn_bss_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_learn_deinit(void *priv) { bgscan_learn_bss *bss; bgscan_learn_bss *n; bgscan_learn_save((bgscan_learn_data *)priv); eloop_cancel_timeout((eloop_timeout_handler)bgscan_learn_timeout, priv, 0); if (*((_DWORD *)priv + 5)) wpa_drv_signal_monitor_1(*(wpa_supplicant **)priv, 0, 0); free(*((void ...
static void bgscan_learn_deinit(void *priv) { struct bgscan_learn_data *data = priv; struct bgscan_learn_bss *bss, *n; bgscan_learn_save(data); eloop_cancel_timeout(bgscan_learn_timeout, data, NULL); if (data->signal_threshold) wpa_drv_signal_monitor(data->wpa_s, 0, 0); os_free(data->fname); dl_list_...
bgscan_learn_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0