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
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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) { dpp_status_error status; dpp_authentication *auth; const u8 *p...
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_dpp_gas_status_handler(hostapd_data *hapd, int ok) { if (hapd->dpp_auth) { wpa_printf(2, "DPP: Configuration exchange completed (ok=%d)", ok); eloop_cancel_timeout((eloop_timeout_handler)hostapd_dpp_reply_wait_timeout, hapd, 0); eloop_cancel_timeout( (eloop_ti...
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_dpp_handle_key_pkg(hostapd_data *hapd, dpp_asymmetric_key *key) { return 0; }
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_dpp_init(hostapd_data *hapd) { hapd->dpp_allowed_roles = 3; hapd->dpp_init_done = 1; return hostapd_dpp_add_controllers(hapd); }
int hostapd_dpp_init(struct hostapd_data *hapd) { hapd->dpp_allowed_roles = DPP_CAPAB_CONFIGURATOR | DPP_CAPAB_ENROLLEE; hapd->dpp_init_done = 1; return hostapd_dpp_add_controllers(hapd); }
hostapd_dpp_init
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_dpp_init_timeout(void *eloop_ctx, void *timeout_ctx) { if (*((_QWORD *)eloop_ctx + 446)) { 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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_dpp_listen(hostapd_data *hapd, const char *cmd) { int freq; freq = atoi(cmd); if (freq <= 0) return -1; if (strstr(cmd, " role=configurator")) { hapd->dpp_allowed_roles = 2; } else if (strstr(cmd, " role=enrollee")) { hapd->dpp_allowed_roles = 1; } else { hapd->dpp_allowed_roles...
int hostapd_dpp_listen(struct hostapd_data *hapd, const char *cmd) { int freq; freq = atoi(cmd); if (freq <= 0) return -1; if (os_strstr(cmd, " role=configurator")) hapd->dpp_allowed_roles = DPP_CAPAB_CONFIGURATOR; else if (os_strstr(cmd, " role=enrollee")) hapd->dpp_allowed_roles = DPP_CAPAB_EN...
hostapd_dpp_listen
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_dpp_listen_stop(hostapd_data *hapd) { hostapd_drv_dpp_listen(hapd, 0); }
void hostapd_dpp_listen_stop(struct hostapd_data *hapd) { hostapd_drv_dpp_listen(hapd, false); }
hostapd_dpp_listen_stop
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_dpp_nfc_handover_req(hostapd_data *hapd, const char *cmd) { unsigned int v3; char *pos; char *posa; dpp_bootstrap_info *own_bi; dpp_bootstrap_info *peer_bi; pos = strstr(cmd, " own="); if (!pos) return -1; v3 = atoi(pos + 5); own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp,...
int hostapd_dpp_nfc_handover_req(struct hostapd_data *hapd, const char *cmd) { const char *pos; struct dpp_bootstrap_info *peer_bi, *own_bi; 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) return -1...
hostapd_dpp_nfc_handover_req
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_dpp_nfc_handover_sel(hostapd_data *hapd, const char *cmd) { unsigned int v3; char *pos; char *posa; dpp_bootstrap_info *own_bi; dpp_bootstrap_info *peer_bi; pos = strstr(cmd, " own="); if (!pos) return -1; v3 = atoi(pos + 5); own_bi = dpp_bootstrap_get_id(hapd->iface->interfaces->dpp,...
int hostapd_dpp_nfc_handover_sel(struct hostapd_data *hapd, const char *cmd) { const char *pos; struct dpp_bootstrap_info *peer_bi, *own_bi; 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) return -1...
hostapd_dpp_nfc_handover_sel
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_dpp_nfc_uri(hostapd_data *hapd, const char *cmd) { dpp_bootstrap_info *bi; bi = dpp_add_nfc_uri(hapd->iface->interfaces->dpp, cmd); if (bi) return bi->id; else return -1; }
int hostapd_dpp_nfc_uri(struct hostapd_data *hapd, const char *cmd) { struct dpp_bootstrap_info *bi; bi = dpp_add_nfc_uri(hapd->iface->interfaces->dpp, cmd); if (!bi) return -1; return bi->id; }
hostapd_dpp_nfc_uri
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_dpp_pkex_remove(hostapd_data *hapd, const char *id) { unsigned int id_val; if (!strcmp(id, "*")) { id_val = 0; } else { id_val = atoi(id); if (!id_val) return -1; } if (id_val > 1 || !hapd->dpp_pkex_code) return -1; free(hapd->dpp_pkex_code); hapd->dpp_pkex_code = 0; f...
int hostapd_dpp_pkex_remove(struct hostapd_data *hapd, const char *id) { unsigned int id_val; if (os_strcmp(id, "*") == 0) { id_val = 0; } else { id_val = atoi(id); if (id_val == 0) return -1; } if ((id_val != 0 && id_val != 1) || !hapd->dpp_pkex_code) return -1; os_free(hapd->dpp_p...
hostapd_dpp_pkex_remove
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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_3(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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_dpp_rx_auth_conf(hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len) { dpp_authentication *auth; auth = hapd->dpp_auth; wpa_printf( 2, "DPP: Authentication Confirmation from %02x:%02x:%02x:%02x:%02x:%02x", *src, src[1], src[2], src[3...
static void hostapd_dpp_rx_auth_conf(struct hostapd_data *hapd, const u8 *src, const u8 *hdr, const u8 *buf, size_t len) { struct dpp_authentication *auth = hapd->dpp_auth; wpa_printf(MSG_DEBUG, "DPP: Authentication Confirmation from " MACSTR, MAC2STR(src)); if ...
hostapd_dpp_rx_auth_conf
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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) + 14...
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_dpp_set_testing_options(hostapd_data *hapd, dpp_authentication *auth) { ; }
static void hostapd_dpp_set_testing_options(struct hostapd_data *hapd, struct dpp_authentication *auth) { #ifdef CONFIG_TESTING_OPTIONS if (hapd->dpp_config_obj_override) auth->config_obj_override = os_strdup(hapd->dpp_config_obj_override); if (hapd->dpp_discovery_ove...
hostapd_dpp_set_testing_options
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_dpp_start_gas_client(hostapd_data *hapd) { int res; dpp_authentication *auth; wpabuf *buf; auth = hapd->dpp_auth; buf = dpp_build_conf_req_helper(auth, hapd->conf->dpp_name, dpp_netrole_DPP_NETROLE_AP, hapd->conf->dpp_mud_url, 0...
static void hostapd_dpp_start_gas_client(struct hostapd_data *hapd) { struct dpp_authentication *auth = hapd->dpp_auth; struct wpabuf *buf; int res; buf = dpp_build_conf_req_helper(auth, hapd->conf->dpp_name, DPP_NETROLE_AP, hapd->conf->dpp_mud_url, NULL); if (!buf) { wp...
hostapd_dpp_start_gas_client
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_dpp_stop(hostapd_data *hapd) { dpp_auth_deinit(hapd->dpp_auth); hapd->dpp_auth = 0; dpp_pkex_free(hapd->dpp_pkex); hapd->dpp_pkex = 0; }
void hostapd_dpp_stop(struct hostapd_data *hapd) { dpp_auth_deinit(hapd->dpp_auth); hapd->dpp_auth = NULL; dpp_pkex_free(hapd->dpp_pkex); hapd->dpp_pkex = NULL; }
hostapd_dpp_stop
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_driver_commit(hostapd_data *hapd) { if (hapd->driver && hapd->driver->commit) return hapd->driver->commit(hapd->drv_priv); else return 0; }
int hostapd_driver_commit(struct hostapd_data *hapd) { if (hapd->driver == NULL || hapd->driver->commit == NULL) return 0; return hapd->driver->commit(hapd->drv_priv); }
hostapd_driver_commit
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
wpa_scan_results *hostapd_driver_get_scan_results(hostapd_data *hapd) { if (hapd->driver && hapd->driver->get_scan_results2) return hapd->driver->get_scan_results2(hapd->drv_priv); else return 0; }
struct wpa_scan_results * hostapd_driver_get_scan_results(struct hostapd_data *hapd) { if (hapd->driver && hapd->driver->get_scan_results2) return hapd->driver->get_scan_results2(hapd->drv_priv); return NULL; }
hostapd_driver_get_scan_results
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_driver_init(hostapd_iface *iface) { void **v2; size_t i; size_t ia; u8 *b; hostapd_data *hapd; hostapd_bss_config *conf; wowlan_triggers *triggs; hostapd_data *bss; wpa_init_params params; wpa_driver_capa capa; unsigned long v12; v12 = __readfsqword(0x28u); hapd = *iface->bss; c...
static int hostapd_driver_init(struct hostapd_iface *iface) { struct wpa_init_params params; size_t i; struct hostapd_data *hapd = iface->bss[0]; struct hostapd_bss_config *conf = hapd->conf; u8 *b = conf->bssid; struct wpa_driver_capa capa; if (hapd->driver == NULL || hapd->driver->hapd_init == NULL) { ...
hostapd_driver_init
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_driver_scan(hostapd_data *hapd, wpa_driver_scan_params *params) { if (hapd->driver && hapd->driver->scan2) return hapd->driver->scan2(hapd->drv_priv, params); else return -1; }
int hostapd_driver_scan(struct hostapd_data *hapd, struct wpa_driver_scan_params *params) { if (hapd->driver && hapd->driver->scan2) return hapd->driver->scan2(hapd->drv_priv, params); return -1; }
hostapd_driver_scan
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_driver_set_noa(hostapd_data *hapd, u8 count, int start, int duration) { if (hapd->driver && hapd->driver->set_noa) return hapd->driver->set_noa(hapd->drv_priv, count, start, duration); else return -1; }
int hostapd_driver_set_noa(struct hostapd_data *hapd, u8 count, int start, int duration) { if (hapd->driver && hapd->driver->set_noa) return hapd->driver->set_noa(hapd->drv_priv, count, start, duration); return -1; }
hostapd_driver_set_noa
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_dpp_listen(hostapd_data *hapd, bool enable) { if (hapd->driver && hapd->driver->dpp_listen && hapd->drv_priv) return hapd->driver->dpp_listen(hapd->drv_priv, enable); else return 0; }
int hostapd_drv_dpp_listen(struct hostapd_data *hapd, bool enable) { if (!hapd->driver || !hapd->driver->dpp_listen || !hapd->drv_priv) return 0; return hapd->driver->dpp_listen(hapd->drv_priv, enable); }
hostapd_drv_dpp_listen
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
bool hostapd_drv_nl80211(hostapd_data *hapd) { return hapd->driver && !strcmp(hapd->driver->name, "nl80211"); }
bool hostapd_drv_nl80211(struct hostapd_data *hapd) { return hapd->driver && os_strcmp(hapd->driver->name, "nl80211") == 0; }
hostapd_drv_nl80211
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_none(hostapd_data *hapd) { return hapd->driver && !strcmp(hapd->driver->name, "none"); }
int hostapd_drv_none(struct hostapd_data *hapd) { return hapd->driver && os_strcmp(hapd->driver->name, "none") == 0; }
hostapd_drv_none
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_send_action_addr3_ap(hostapd_data *hapd, unsigned int freq, unsigned int wait, const u8 *dst, const u8 *data, size_t len) { if (hapd->driver && hapd->driver->send_action) return hapd->driver->send_action(hapd->drv_priv, freq...
int hostapd_drv_send_action_addr3_ap(struct hostapd_data *hapd, unsigned int freq, unsigned int wait, const u8 *dst, const u8 *data, size_t len) { if (hapd->driver == NULL || hapd->driver->send_action == NUL...
hostapd_drv_send_action_addr3_ap
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_send_mlme(hostapd_data *hapd, const void *msg, size_t len, int noack, const u16 *csa_offs, size_t csa_offs_len, int no_encrypt) { if (hapd->driver && hapd->driver->send_mlme && hapd->drv_priv) return hapd->driver->send_mlme(hapd->drv_priv, (const...
int hostapd_drv_send_mlme(struct hostapd_data *hapd, const void *msg, size_t len, int noack, const u16 *csa_offs, size_t csa_offs_len, int no_encrypt) { if (!hapd->driver || !hapd->driver->send_mlme || !hapd->drv_priv) return 0; return hapd->driver->send_mlme(...
hostapd_drv_send_mlme
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_set_key(const char *ifname, hostapd_data *hapd, wpa_alg alg, const u8 *addr, int key_idx, int vlan_id, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len, key_flag key_flag) { wpa_driver_set_key_params params...
int hostapd_drv_set_key(const char *ifname, struct hostapd_data *hapd, enum wpa_alg alg, const u8 *addr, int key_idx, int vlan_id, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len, enum key_flag key_flag) { struct wpa_driv...
hostapd_drv_set_key
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_set_qos_map(hostapd_data *hapd, const u8 *qos_map_set, u8 qos_map_set_len) { if (hapd->driver && hapd->driver->set_qos_map && hapd->drv_priv) return hapd->driver->set_qos_map(hapd->drv_priv, qos_map_set, qos_map_set_len); else ...
int hostapd_drv_set_qos_map(struct hostapd_data *hapd, const u8 *qos_map_set, u8 qos_map_set_len) { if (!hapd->driver || !hapd->driver->set_qos_map || !hapd->drv_priv) return 0; return hapd->driver->set_qos_map(hapd->drv_priv, qos_map_set, qos_map_s...
hostapd_drv_set_qos_map
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_sta_deauth(hostapd_data *hapd, const u8 *addr, int reason) { if (hapd->driver && hapd->driver->sta_deauth && hapd->drv_priv) return hapd->driver->sta_deauth(hapd->drv_priv, hapd->own_addr, addr, reason); else return 0; }
int hostapd_drv_sta_deauth(struct hostapd_data *hapd, const u8 *addr, int reason) { if (!hapd->driver || !hapd->driver->sta_deauth || !hapd->drv_priv) return 0; return hapd->driver->sta_deauth(hapd->drv_priv, hapd->own_addr, addr, reason); }
hostapd_drv_sta_deauth
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_sta_disassoc(hostapd_data *hapd, const u8 *addr, int reason) { if (hapd->driver && hapd->driver->sta_disassoc && hapd->drv_priv) return hapd->driver->sta_disassoc(hapd->drv_priv, hapd->own_addr, addr, reason); else return 0; }
int hostapd_drv_sta_disassoc(struct hostapd_data *hapd, const u8 *addr, int reason) { if (!hapd->driver || !hapd->driver->sta_disassoc || !hapd->drv_priv) return 0; return hapd->driver->sta_disassoc(hapd->drv_priv, hapd->own_addr, addr, reason); }
hostapd_drv_sta_disassoc
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_update_dh_ie(hostapd_data *hapd, const u8 *peer, u16 reason_code, const u8 *ie, size_t ielen) { if (hapd->driver && hapd->driver->update_dh_ie && hapd->drv_priv) return hapd->driver->update_dh_ie(hapd->drv_priv, peer, reason_code, ie, ...
int hostapd_drv_update_dh_ie(struct hostapd_data *hapd, const u8 *peer, u16 reason_code, const u8 *ie, size_t ielen) { if (!hapd->driver || !hapd->driver->update_dh_ie || !hapd->drv_priv) return 0; return hapd->driver->update_dh_ie(hapd->drv_priv, peer, reason_code, ie, ...
hostapd_drv_update_dh_ie
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_drv_wnm_oper(hostapd_data *hapd, wnm_oper oper, const u8 *peer, u8 *buf, u16 *buf_len) { if (hapd->driver && hapd->driver->wnm_oper) return hapd->driver->wnm_oper(hapd->drv_priv, oper, peer, buf, buf_len); else return -1; }
int hostapd_drv_wnm_oper(struct hostapd_data *hapd, enum wnm_oper oper, const u8 *peer, u8 *buf, u16 *buf_len) { if (hapd->driver == NULL || hapd->driver->wnm_oper == NULL) return -1; return hapd->driver->wnm_oper(hapd->drv_priv, oper, peer, buf, buf_len); }
hostapd_drv_wnm_oper
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_eapol_tx_status(hostapd_data *hapd, const u8 *dst, const u8 *data, size_t len, int ack) { int lena; hostapd_data *hapda; sta_info *sta; size_t j; hostapd_iface *iface; hapda = hapd; lena = len; iface = hapd->iface; sta = ap_get_sta(hapd, dst); if (!sta && i...
void hostapd_eapol_tx_status(struct hostapd_data *hapd, const u8 *dst, const u8 *data, size_t len, int ack) { struct sta_info *sta; struct hostapd_iface *iface = hapd->iface; sta = ap_get_sta(hapd, dst); if (sta == NULL && iface->num_bss > 1) { size_t j; for (j = 0; j < ifa...
hostapd_eapol_tx_status
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_adv_proto(hostapd_data *hapd, u8 *eid) { if (!hapd->conf->interworking) return eid; *eid = 108; eid[1] = 2; eid[2] = 127; eid[3] = 0; return eid + 4; }
u8 *hostapd_eid_adv_proto(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; #ifdef CONFIG_INTERWORKING if (!hapd->conf->interworking) return eid; *pos++ = WLAN_EID_ADV_PROTO; *pos++ = 2; *pos++ = 0x7F; *pos++ = ACCESS_NETWORK_QUERY_PROTOCOL; #endif return pos; }
hostapd_eid_adv_proto
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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_3(eid + 2, hapd->num_sta); eid[4] = hapd->iface->channel_utilization; WPA_PUT_LE16_3(eid + 5,...
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_bss_max_idle_period(hostapd_data *hapd, u8 *eid) { unsigned int val; unsigned int vala; u8 *pos; pos = eid; if (hapd->conf->ap_max_inactivity > 0) { *eid = 90; eid[1] = 3; val = hapd->conf->ap_max_inactivity; if (val > 0x109A0) val = 68000; vala = (1000 * val) >> 10;...
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_country(hostapd_data *hapd, u8 *eid, int max_len) { u8 *v4; int i; int chan_spacing; u8 *pos; hostapd_channel_data *start; hostapd_channel_data *prev; u8 *end; hostapd_hw_modes *mode; hostapd_channel_data *chan; end = &eid[max_len]; chan_spacing = 1; if (!hapd->iconf->ieee80211d...
static u8 *hostapd_eid_country(struct hostapd_data *hapd, u8 *eid, int max_len) { u8 *pos = eid; u8 *end = eid + max_len; int i; struct hostapd_hw_modes *mode; struct hostapd_channel_data *start, *prev; int chan_spacing = 1; if (!hapd->iconf->ieee80211d || max_len < 6 || ...
hostapd_eid_country
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_country_add(u8 *pos, u8 *end, int chan_spacing, hostapd_channel_data *start, hostapd_channel_data *prev) { u8 *posa; posa = pos; if (end - pos > 2) { *pos = start->chan; pos[1] = (prev->chan - start->chan) / chan_spacing + 1; pos...
static u8 *hostapd_eid_country_add(u8 *pos, u8 *end, int chan_spacing, struct hostapd_channel_data *start, struct hostapd_channel_data *prev) { if (end - pos < 3) return pos; *pos++ = start->chan; *pos++ = (prev->chan - start->chan) / cha...
hostapd_eid_country_add
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_csa(hostapd_data *hapd, u8 *eid) { u8 *eida; eida = eid; if (hapd->cs_freq_params.channel) { *eid = 37; eid[1] = 3; eid[2] = hapd->cs_block_tx; eid[3] = hapd->cs_freq_params.channel; eida = eid + 5; eid[4] = hapd->cs_count; } return eida; }
static u8 *hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid) { #ifdef CONFIG_TESTING_OPTIONS if (hapd->iface->cs_oper_class && hapd->iconf->ecsa_ie_only) return eid; #endif if (!hapd->cs_freq_params.channel) return eid; *eid++ = WLAN_EID_CHANNEL_SWITCH; *eid++ = 3; *eid++ = hapd->cs_block_tx; *e...
hostapd_eid_csa
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_dpp_cc(hostapd_data *hapd, u8 *eid, size_t len) { return eid; }
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
size_t hostapd_eid_dpp_cc_len(hostapd_data *hapd) { 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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_ds_params(hostapd_data *hapd, u8 *eid) { *eid = 3; eid[1] = 1; eid[2] = hapd->iconf->channel; return eid + 3; }
static u8 *hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) { *eid++ = WLAN_EID_DS_PARAMS; *eid++ = 1; *eid++ = hapd->iconf->channel; return eid; }
hostapd_eid_ds_params
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_ecsa(hostapd_data *hapd, u8 *eid) { if (!hapd->cs_freq_params.channel || !hapd->iface->cs_oper_class) return eid; *eid = 60; eid[1] = 4; eid[2] = hapd->cs_block_tx; eid[3] = hapd->iface->cs_oper_class; eid[4] = hapd->cs_freq_params.channel; eid[5] = hapd->cs_count; return eid + 6; }
static u8 *hostapd_eid_ecsa(struct hostapd_data *hapd, u8 *eid) { if (!hapd->cs_freq_params.channel || !hapd->iface->cs_oper_class) return eid; *eid++ = WLAN_EID_EXT_CHANSWITCH_ANN; *eid++ = 4; *eid++ = hapd->cs_block_tx; *eid++ = hapd->iface->cs_oper_class; *eid++ = hapd->cs_freq_params.channel; *ei...
hostapd_eid_ecsa
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_erp_info(hostapd_data *hapd, u8 *eid) { if (!hapd->iface->current_mode || hapd->iface->current_mode->mode != hostapd_hw_mode_HOSTAPD_MODE_IEEE80211G) return eid; *eid = 42; eid[1] = 1; eid[2] = ieee802_11_erp_info(hapd); return eid + 3; }
static u8 *hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid) { if (hapd->iface->current_mode == NULL || hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) return eid; *eid++ = WLAN_EID_ERP_INFO; *eid++ = 1; *eid++ = ieee802_11_erp_info(hapd); return eid; }
hostapd_eid_erp_info
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_ext_capab(hostapd_data *hapd, u8 *eid) { u8 len; u8 i; u8 *pos; len = 15; if (hapd->iface->extended_capa_len > 0xF) len = hapd->iface->extended_capa_len; *eid = 127; pos = eid + 2; eid[1] = len; for (i = 0; i < len; ++i) { hostapd_ext_capab_byte(hapd, pos, i); if (i < hapd...
u8 *hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; u8 len = EXT_CAPA_MAX_LEN, i; if (len < hapd->iface->extended_capa_len) len = hapd->iface->extended_capa_len; *pos++ = WLAN_EID_EXT_CAPAB; *pos++ = len; for (i = 0; i < len; i++, pos++) { hostapd_ext_capab_byte(hapd, po...
hostapd_eid_ext_capab
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_fils_indic(hostapd_data *hapd, u8 *eid, int hessid) { return eid; }
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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_6(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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_ht_capabilities(hostapd_data *hapd, u8 *eid) { long v3; u8 *pos; if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || hapd->conf->disable_11n || is_6ghz_op_class(hapd->iconf->op_class)) { return eid; } *eid = 45; eid[1] = 26; memset(eid + 2, 0, 0x1Au); *((_WORD *)eid ...
u8 *hostapd_eid_ht_capabilities(struct hostapd_data *hapd, u8 *eid) { struct ieee80211_ht_capabilities *cap; u8 *pos = eid; if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || hapd->conf->disable_11n || is_6ghz_op_class(hapd->iconf->op_class)) return eid; *pos++ = WLAN_EID_HT_CAP; *pos++...
hostapd_eid_ht_capabilities
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_ht_operation(hostapd_data *hapd, u8 *eid) { if (!hapd->iconf->ieee80211n || hapd->conf->disable_11n || is_6ghz_op_class(hapd->iconf->op_class)) return eid; *eid = 61; eid[1] = 22; memset(eid + 2, 0, 0x16u); eid[2] = hapd->iconf->channel; *((_WORD *)eid + 2) = hapd->iface->ht_op_mod...
u8 *hostapd_eid_ht_operation(struct hostapd_data *hapd, u8 *eid) { struct ieee80211_ht_operation *oper; u8 *pos = eid; if (!hapd->iconf->ieee80211n || hapd->conf->disable_11n || is_6ghz_op_class(hapd->iconf->op_class)) return eid; *pos++ = WLAN_EID_HT_OPERATION; *pos++ = sizeof(*oper); oper = (...
hostapd_eid_ht_operation
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_multi_ap(hostapd_data *hapd, u8 *eid) { u8 multi_ap_val; multi_ap_val = 0; if (!hapd->conf->multi_ap) return eid; if ((hapd->conf->multi_ap & 1) != 0) multi_ap_val = 64; if ((hapd->conf->multi_ap & 2) != 0) multi_ap_val |= 0x20u; return &eid[add_multi_ap_ie(eid, 9u, multi_ap_val...
u8 *hostapd_eid_multi_ap(struct hostapd_data *hapd, u8 *eid) { u8 multi_ap_val = 0; if (!hapd->conf->multi_ap) return eid; if (hapd->conf->multi_ap & BACKHAUL_BSS) multi_ap_val |= MULTI_AP_BACKHAUL_BSS; if (hapd->conf->multi_ap & FRONTHAUL_BSS) multi_ap_val |= MULTI_AP_FRONTHAUL_BSS; return eid ...
hostapd_eid_multi_ap
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_osen(hostapd_data *hapd, u8 *eid) { u16 capab; if (!hapd->conf->osen) return eid; *eid = -35; WPA_PUT_BE24_6(eid + 2, 0x506F9Au); eid[5] = 18; WPA_PUT_BE32_25(eid + 6, 0xFAC07u); WPA_PUT_LE16_20(eid + 10, 1u); WPA_PUT_BE32_25(eid + 12, 0xFAC04u); WPA_PUT_LE16_20(eid + 16, 1u); W...
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_eid_owe_trans_enabled(hostapd_data *hapd) { return hapd->conf->owe_transition_ssid_len && !is_zero_ether_addr_3(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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
size_t hostapd_eid_owe_trans_len(hostapd_data *hapd) { if (hostapd_eid_owe_trans_enabled(hapd)) return hapd->conf->owe_transition_ssid_len + 13; else return 0; }
size_t hostapd_eid_owe_trans_len(struct hostapd_data *hapd) { #ifdef CONFIG_OWE if (!hostapd_eid_owe_trans_enabled(hapd)) return 0; return 6 + ETH_ALEN + 1 + hapd->conf->owe_transition_ssid_len; #else return 0; #endif }
hostapd_eid_owe_trans_len
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_pwr_constraint(hostapd_data *hapd, u8 *eid) { u8 local_pwr_constraint; int dfs; local_pwr_constraint = 0; if (!hapd->iface->current_mode || hapd->iface->current_mode->mode != hostapd_hw_mode_HOSTAPD_MODE_IEEE80211A) return eid; if ((hapd->iface->drv...
static u8 *hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; u8 local_pwr_constraint = 0; int dfs; if (hapd->iface->current_mode == NULL || hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A) return eid; if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOA...
hostapd_eid_pwr_constraint
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_qos_map_set(hostapd_data *hapd, u8 *eid) { u8 len; len = hapd->conf->qos_map_set_len; if (!len) return eid; *eid = 110; eid[1] = len; memcpy(eid + 2, hapd->conf->qos_map_set, len); return &eid[len + 2]; }
u8 *hostapd_eid_qos_map_set(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; u8 len = hapd->conf->qos_map_set_len; if (!len) return eid; *pos++ = WLAN_EID_QOS_MAP_SET; *pos++ = len; os_memcpy(pos, hapd->conf->qos_map_set, len); pos += len; return pos; }
hostapd_eid_qos_map_set
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_rm_enabled_capab(hostapd_data *hapd, u8 *eid, size_t len) { size_t i; for (i = 0; i <= 4 && !hapd->conf->radio_measurements[i]; ++i) ; if (i == 5 || len <= 6) return eid; *eid = 70; eid[1] = 5; memcpy(eid + 2, hapd->conf->radio_measurements, 5u); return eid + 7; }
u8 *hostapd_eid_rm_enabled_capab(struct hostapd_data *hapd, u8 *eid, size_t len) { size_t i; for (i = 0; i < RRM_CAPABILITIES_IE_LEN; i++) { if (hapd->conf->radio_measurements[i]) break; } if (i == RRM_CAPABILITIES_IE_LEN || len < 2 + RRM_CAPABILITIES_IE_LEN) ret...
hostapd_eid_rm_enabled_capab
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_rnr(hostapd_data *hapd, u8 *eid, u32 type) { u8 *eida; colocation_mode mode; size_t current_len; u8 *eid_start; unsigned long v9; eida = eid; v9 = __readfsqword(0x28u); eid_start = eid; current_len = 0; mode = get_colocation_mode(hapd); if (type == 13) { if (hapd->iface->num_b...
u8 *hostapd_eid_rnr(struct hostapd_data *hapd, u8 *eid, u32 type) { u8 *eid_start = eid; size_t current_len = 0; enum colocation_mode mode = get_colocation_mode(hapd); switch (type) { case WLAN_FC_STYPE_BEACON: if (hapd->conf->rnr) eid = hostapd_eid_nr_db(hapd, eid, &current_len); case WLAN_FC_S...
hostapd_eid_rnr
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_rnr_colocation(hostapd_data *hapd, u8 *eid, size_t *current_len) { u8 *eida; size_t i; hostapd_iface *iface; eida = eid; if (!hapd->iface || !hapd->iface->interfaces) return eid; for (i = 0; i < hapd->iface->interfaces->count; ++i) { iface = hapd->ifac...
static u8 *hostapd_eid_rnr_colocation(struct hostapd_data *hapd, u8 *eid, size_t *current_len) { struct hostapd_iface *iface; size_t i; if (!hapd->iface || !hapd->iface->interfaces) return eid; for (i = 0; i < hapd->iface->interfaces->count; i++) { iface = hapd->i...
hostapd_eid_rnr_colocation
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
size_t hostapd_eid_rnr_colocation_len(hostapd_data *hapd, size_t *current_len) { size_t len; size_t i; hostapd_iface *iface; len = 0; if (!hapd->iface || !hapd->iface->interfaces) return 0; for (i = 0; i < hapd->iface->interfaces->count; ++i) { iface = hapd->iface->interfaces->iface[i]; if (ifa...
static size_t hostapd_eid_rnr_colocation_len(struct hostapd_data *hapd, size_t *current_len) { struct hostapd_iface *iface; size_t len = 0; size_t i; if (!hapd->iface || !hapd->iface->interfaces) return 0; for (i = 0; i < hapd->iface->interfaces->count; i++) ...
hostapd_eid_rnr_colocation_len
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_rnr_iface(hostapd_data *hapd, hostapd_data *reporting_hapd, u8 *eid, size_t *current_len) { u8 oper_chwidth_3; 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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
size_t hostapd_eid_rnr_iface_len(hostapd_data *hapd, hostapd_data *reporting_hapd, size_t *current_len) { int tbtt_count; size_t total_len; size_t len; size_t i; size_t start; hostapd_data *bss; total_len = 0; len = *current_len; tbtt_...
static size_t hostapd_eid_rnr_iface_len(struct hostapd_data *hapd, struct hostapd_data *reporting_hapd, size_t *current_len) { size_t total_len = 0, len = *current_len; int tbtt_count = 0; size_t i, start = 0; while (start < hapd->...
hostapd_eid_rnr_iface_len
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
size_t hostapd_eid_rnr_len(hostapd_data *hapd, u32 type) { size_t v2; size_t v3; size_t v4; colocation_mode mode; size_t current_len; size_t total_len; unsigned long v9; v9 = __readfsqword(0x28u); total_len = 0; current_len = 0; mode = get_colocation_mode(hapd); if (type == 13) { if (hapd->...
size_t hostapd_eid_rnr_len(struct hostapd_data *hapd, u32 type) { size_t total_len = 0, current_len = 0; enum colocation_mode mode = get_colocation_mode(hapd); switch (type) { case WLAN_FC_STYPE_BEACON: if (hapd->conf->rnr) total_len += hostapd_eid_nr_db_len(hapd, &current_len); case WLAN_FC_STYPE...
hostapd_eid_rnr_len
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_roaming_consortium(hostapd_data *hapd, u8 *eid) { u8 *v3; unsigned int i; unsigned int count; u8 *pos; u8 *posa; if (!hapd->conf->interworking || !hapd->conf->roaming_consortium || !hapd->conf->roaming_consortium_count) return eid; *eid = 111; if (hapd->conf->roaming_consortiu...
u8 *hostapd_eid_roaming_consortium(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; #ifdef CONFIG_INTERWORKING u8 *len; unsigned int i, count; if (!hapd->conf->interworking || hapd->conf->roaming_consortium == NULL || hapd->conf->roaming_consortium_count == 0) return eid; *pos++ = WLAN_EID_ROA...
hostapd_eid_roaming_consortium
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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_3(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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_supported_op_classes(hostapd_data *hapd, u8 *eid) { u8 oper_chwidth_1; 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_1 = 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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
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_5(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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_time_zone(hostapd_data *hapd, u8 *eid) { size_t len; if (hapd->conf->time_advertisement != 2 || !hapd->conf->time_zone) return eid; len = strlen(hapd->conf->time_zone); *eid = 98; eid[1] = len; memcpy(eid + 2, hapd->conf->time_zone, len); return &eid[len + 2]; }
u8 *hostapd_eid_time_zone(struct hostapd_data *hapd, u8 *eid) { size_t len; if (hapd->conf->time_advertisement != 2 || !hapd->conf->time_zone) return eid; len = os_strlen(hapd->conf->time_zone); *eid++ = WLAN_EID_TIME_ZONE; *eid++ = len; os_memcpy(eid, hapd->conf->time_zone, len); eid += len; re...
hostapd_eid_time_zone
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_txpower_envelope(hostapd_data *hapd, u8 *eid) { u8 oper_chwidth_3; 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
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_vendor_vht(hostapd_data *hapd, u8 *eid) { u8 *v3; if (!hapd->iface->current_mode || hapd->iface->current_mode->mode != hostapd_hw_mode_HOSTAPD_MODE_IEEE80211G) return eid; *eid = -35; eid[1] = 26; WPA_PUT_BE32_24(eid + 2, 0x904C04u); eid[6] = 8; ...
u8 *hostapd_eid_vendor_vht(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; if (!hapd->iface->current_mode || hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) return eid; *pos++ = WLAN_EID_VENDOR_SPECIFIC; *pos++ = (5 + 2 + sizeof(struct ieee80211_vht_capabilities) + 2 + s...
hostapd_eid_vendor_vht
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_vht_capabilities(hostapd_data *hapd, u8 *eid, u32 nsts) { int i; hostapd_hw_modes *mode; u8 *pos; mode = hapd->iface->current_mode; if (!mode || is_6ghz_op_class(hapd->iconf->op_class)) return eid; if (mode->mode == hostapd_hw_mode_HOSTAPD_MODE_IEEE80211G && hapd->conf->vendor_vht...
u8 *hostapd_eid_vht_capabilities(struct hostapd_data *hapd, u8 *eid, u32 nsts) { struct ieee80211_vht_capabilities *cap; struct hostapd_hw_modes *mode = hapd->iface->current_mode; u8 *pos = eid; if (!mode || is_6ghz_op_class(hapd->iconf->op_class)) return eid; if (mode->mode == HOSTAPD_MODE_IEEE80211G &...
hostapd_eid_vht_capabilities
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_vht_operation(hostapd_data *hapd, u8 *eid) { u8 *pos; if (is_6ghz_op_class(hapd->iconf->op_class)) return eid; *eid = -64; pos = eid + 2; eid[1] = 5; memset(eid + 2, 0, 5u); eid[3] = hapd->iconf->vht_oper_centr_freq_seg0_idx; eid[4] = hapd->iconf->vht_oper_centr_freq_seg1_idx; eid...
u8 *hostapd_eid_vht_operation(struct hostapd_data *hapd, u8 *eid) { struct ieee80211_vht_operation *oper; u8 *pos = eid; if (is_6ghz_op_class(hapd->iconf->op_class)) return eid; *pos++ = WLAN_EID_VHT_OPERATION; *pos++ = sizeof(*oper); oper = (struct ieee80211_vht_operation *)pos; os_memset(oper, 0,...
hostapd_eid_vht_operation
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_wb_chsw_wrapper(hostapd_data *hapd, u8 *eid) { int bandwidth; int center_freq1; u8 chan1; u8 chan2; u8 bw; int freq1; unsigned long v9; v9 = __readfsqword(0x28u); chan2 = 0; if (!hapd->cs_freq_params.channel || !hapd->cs_freq_params.vht_enabled && !hapd->cs_freq_params.he_enab...
u8 *hostapd_eid_wb_chsw_wrapper(struct hostapd_data *hapd, u8 *eid) { u8 bw, chan1, chan2 = 0; int freq1; if (!hapd->cs_freq_params.channel || (!hapd->cs_freq_params.vht_enabled && !hapd->cs_freq_params.he_enabled)) return eid; switch (hapd->cs_freq_params.bandwidth) { case 40: bw = 0; bre...
hostapd_eid_wb_chsw_wrapper
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_eid_wmm(hostapd_data *hapd, u8 *eid) { int e; wmm_parameter_element *wmm; wmm_ac_parameter *ac; hostapd_wmm_ac_params *acp; hostapd_wmm_ac_params wmmp[4]; unsigned long v8; v8 = __readfsqword(0x28u); wmm = (wmm_parameter_element *)(eid + 2); memset(wmmp, 0, sizeof(wmmp)); if (!hapd->con...
u8 *hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid) { u8 *pos = eid; struct wmm_parameter_element *wmm = (struct wmm_parameter_element *)(pos + 2); struct hostapd_wmm_ac_params wmmp[WMM_AC_NUM]; int e; os_memset(wmmp, 0, sizeof(wmmp)); if (!hapd->conf->wmm_enabled) return eid; wmm_calc_regulator...
hostapd_eid_wmm
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_eid_wmm_valid(hostapd_data *hapd, const u8 *eid, size_t len) { wpa_hexdump(1, "WMM IE", eid, len); if (len > 6) { wpa_printf(2, "Validating WMM IE: OUI %02x:%02x:%02x OUI type %d OUI " "sub-type %d version %d QoS info 0x%x", *eid, eid[1], eid[2], eid[...
int hostapd_eid_wmm_valid(struct hostapd_data *hapd, const u8 *eid, size_t len) { struct wmm_information_element *wmm; wpa_hexdump(MSG_MSGDUMP, "WMM IE", eid, len); if (len < sizeof(struct wmm_information_element)) { wpa_printf(MSG_DEBUG, "Too short WMM IE (len=%lu)", (unsigned lon...
hostapd_eid_wmm_valid
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_enable_iface(hostapd_iface *hapd_iface) { size_t j; if (!hapd_iface) return -1; if (hapd_iface->enable_iface_cb) return hapd_iface->enable_iface_cb(hapd_iface); if ((*hapd_iface->bss)->drv_priv) { wpa_printf(5, "Interface %s already enabled", *hapd_iface->conf->bss); return -1; } ...
int hostapd_enable_iface(struct hostapd_iface *hapd_iface) { size_t j; if (!hapd_iface) return -1; if (hapd_iface->enable_iface_cb) return hapd_iface->enable_iface_cb(hapd_iface); if (hapd_iface->bss[0]->drv_priv != NULL) { wpa_printf(MSG_ERROR, "Interface %s already enabled", hapd...
hostapd_enable_iface
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_encode_edmg_chan(int edmg_enable, u8 edmg_channel, int primary_channel, ieee80211_edmg_config *edmg) { if (edmg_enable) { switch (edmg_channel) { case 9u: edmg->channels = 3; edmg->bw_config = edmg_bw_config_EDMG_BW_CONFIG_5;...
void hostapd_encode_edmg_chan(int edmg_enable, u8 edmg_channel, int primary_channel, struct ieee80211_edmg_config *edmg) { if (!edmg_enable) { edmg->channels = 0; edmg->bw_config = 0; return; } switch (edmg_channel) { case EDMG_CHANNEL_9: ...
hostapd_encode_edmg_chan
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0