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 vlan_read_ifnames(nlmsghdr *h, size_t len, int del, hostapd_data *hapd) { const char *v4; const char *v5; const char *v6; const char *v7; const char *v8; int attrlen; int n; rtattr *attr; ifinfomsg *ifi; char ifname[24]; unsigned long v16; v16 = __readfsqword(0x28u); if (len > 0xF) { ...
static void vlan_read_ifnames(struct nlmsghdr *h, size_t len, int del, struct hostapd_data *hapd) { struct ifinfomsg *ifi; int attrlen, nlmsg_len, rta_len; struct rtattr *attr; char ifname[IFNAMSIZ + 1]; if (len < sizeof(*ifi)) return; ifi = NLMSG_DATA(h); nlmsg_len = ...
vlan_read_ifnames
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int vlan_rem(const char *if_name) { int *v2; char *v3; int *v4; char *v5; int fd; vlan_ioctl_args if_request; unsigned long v8; v8 = __readfsqword(0x28u); wpa_printf(2, "VLAN: vlan_rem(%s)", if_name); if (strlen(if_name) + 1 <= 0x18) { fd = socket(2, 1, 0); if (fd >= 0) { memset(&if_r...
int vlan_rem(const char *if_name) { int fd; struct vlan_ioctl_args if_request; wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(%s)", if_name); if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) { wpa_printf(MSG_ERROR, "VLAN: Interface name too long: '%s'", if_name); return -1; } if ((fd = socket(AF_...
vlan_rem
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int vlan_remove_dynamic(hostapd_data *hapd, int vlan_id) { hostapd_vlan *vlan; if (vlan_id <= 0) return 1; wpa_printf(2, "VLAN: %s(ifname=%s vlan_id=%d)", "vlan_remove_dynamic", hapd->conf->iface, vlan_id); for (vlan = hapd->conf->vlan; vlan; vlan = vlan->next) { if (vlan_id == vlan->vlan_...
int vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) { struct hostapd_vlan *vlan; if (vlan_id <= 0) return 1; wpa_printf(MSG_DEBUG, "VLAN: %s(ifname=%s vlan_id=%d)", __func__, hapd->conf->iface, vlan_id); vlan = hapd->conf->vlan; while (vlan) { if (vlan->vlan_id == vlan_id &...
vlan_remove_dynamic
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int vlan_set_name_type(unsigned int name_type) { int *v1; char *v2; int *v4; char *v5; int fd; vlan_ioctl_args if_request; unsigned long v8; v8 = __readfsqword(0x28u); wpa_printf(2, "VLAN: vlan_set_name_type(name_type=%u)", name_type); fd = socket(2, 1, 0); if (fd >= 0) { memset(&if_request, ...
int vlan_set_name_type(unsigned int name_type) { int fd; struct vlan_ioctl_args if_request; wpa_printf(MSG_DEBUG, "VLAN: vlan_set_name_type(name_type=%u)", name_type); if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { wpa_printf(MSG_ERROR, "VLAN: %s: socket(AF_INET,SOCK_STREAM) failed: %s", ...
vlan_set_name_type
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void web_connection_check_data(void *ctx, http_request *req) { int v2; char *v3; httpread_hdr_type htype; char *filename; sockaddr_in *cli; htype = http_request_get_type(req); filename = http_request_get_uri(req); cli = http_request_get_cli_addr(req); if (!filename) { wpa_printf(3, "WPS UPnP: Cou...
static void web_connection_check_data(void *ctx, struct http_request *req) { struct upnp_wps_device_sm *sm = ctx; enum httpread_hdr_type htype = http_request_get_type(req); char *filename = http_request_get_uri(req); struct sockaddr_in *cli = http_request_get_cli_addr(req); if (!filename) { wpa_printf(MS...
web_connection_check_data
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void web_connection_parse_get(upnp_wps_device_sm *sm, http_request *hreq, const char *filename) { dl_list *next; size_t v4; int req; int body_length; wpabuf *buf; size_t extra_len; upnp_wps_device_interface *iface; char *put_length_here; unsigned int body_start; char le...
static void web_connection_parse_get(struct upnp_wps_device_sm *sm, struct http_request *hreq, const char *filename) { struct wpabuf *buf; char *put_length_here; char *body_start; enum { GET_DEVICE_XML_FILE, GET_SCPD_XML_FILE } req; siz...
web_connection_parse_get
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void web_connection_parse_post(upnp_wps_device_sm *sm, sockaddr_in *cli, http_request *req, const char *filename) { http_reply_code ret; size_t action_len; const char *replyname; wpabuf *reply; const char *action; char *data; unsigned long v12; v12 = __readfsqword(0x28u);...
static void web_connection_parse_post(struct upnp_wps_device_sm *sm, struct sockaddr_in *cli, struct http_request *req, const char *filename) { enum http_reply_code ret; char *data = http_request_get_da...
web_connection_parse_post
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void web_connection_parse_subscribe(upnp_wps_device_sm *sm, http_request *req, const char *filename) { size_t v3; size_t v4; size_t v5; int got_nt; int got_uuid; http_reply_code ret; int match_len; int match_lena; int match_lenb; int match_lenc; int len; char ...
static void web_connection_parse_subscribe(struct upnp_wps_device_sm *sm, struct http_request *req, const char *filename) { struct wpabuf *buf; char *b; char *hdr = http_request_get_hdr(req); char *h; char *match; int matc...
web_connection_parse_subscribe
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void web_connection_parse_unsubscribe(upnp_wps_device_sm *sm, http_request *req, const char *filename) { size_t v3; size_t v4; dl_list *next; const char *v6; int got_uuid; http_reply_code ret; int match_len; int match_lena; const char *h; char *ha; char *hb; ...
static void web_connection_parse_unsubscribe(struct upnp_wps_device_sm *sm, struct http_request *req, const char *filename) { struct wpabuf *buf; char *hdr = http_request_get_hdr(req); char *h; char *match; int match_len...
web_connection_parse_unsubscribe
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void web_connection_send_reply(http_request *req, http_reply_code ret, const char *action, int action_len, const wpabuf *reply, const char *replyname) { size_t v6; const void *v7; size_t v8; long v9; unsigned int v10; size_t v11; size_t len; ...
static void web_connection_send_reply(struct http_request *req, enum http_reply_code ret, const char *action, int action_len, const struct wpabuf *reply, const char *re...
web_connection_send_reply
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void web_connection_unimplemented(http_request *req) { wpabuf *buf; buf = wpabuf_alloc(0xC8u); if (buf) { http_put_empty(buf, http_reply_code_HTTP_UNIMPLEMENTED); http_request_send_and_deinit(req, buf); } else { http_request_deinit(req); } }
static void web_connection_unimplemented(struct http_request *req) { struct wpabuf *buf; buf = wpabuf_alloc(200); if (buf == NULL) { http_request_deinit(req); return; } http_put_empty(buf, HTTP_UNIMPLEMENTED); http_request_send_and_deinit(req, buf); }
web_connection_unimplemented
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
const char *web_get_action(http_request *req, size_t *action_len) { int match_len; char *b; char *ba; char *bb; char *bc; const char *match; char *action; *action_len = 0; b = http_request_get_hdr_line(req, "SOAPAction:"); if (!b) return 0; if (*b != 34) return 0; ba = b + 1; match = ...
static const char *web_get_action(struct http_request *req, size_t *action_len) { const char *match; int match_len; char *b; char *action; *action_len = 0; b = http_request_get_hdr_line(req, "SOAPAction:"); if (b == NULL) return NULL; if (*b == '"') b++; els...
web_get_action
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int web_listener_start(upnp_wps_device_sm *sm) { in_addr addr; unsigned long v3; v3 = __readfsqword(0x28u); addr.s_addr = sm->ip_addr; sm->web_srv = http_server_init( &addr, -1, (void (*)(void *, http_request *))web_connection_check_data, sm); if (sm->web_srv) { sm->web_port = http_server_g...
int web_listener_start(struct upnp_wps_device_sm *sm) { struct in_addr addr; addr.s_addr = sm->ip_addr; sm->web_srv = http_server_init(&addr, -1, web_connection_check_data, sm); if (sm->web_srv == NULL) { web_listener_stop(sm); return -1; } sm->web_port = http_server_get_port(sm->web_srv); return...
web_listener_start
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void web_listener_stop(upnp_wps_device_sm *sm) { http_server_deinit(sm->web_srv); sm->web_srv = 0; }
void web_listener_stop(struct upnp_wps_device_sm *sm) { http_server_deinit(sm->web_srv); sm->web_srv = NULL; }
web_listener_stop
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
http_reply_code web_process_get_device_info(upnp_wps_device_sm *sm, wpabuf **reply, const char **replyname) { upnp_wps_device_interface *next; upnp_wps_peer *v5; wsc_op_code op_code; upnp_wps_device_interface *iface; upnp_...
static enum http_reply_code web_process_get_device_info(struct upnp_wps_device_sm *sm, struct wpabuf **reply, const char **replyname) { static const char *name = "NewDeviceInfo"; struct wps_config cfg; struct upnp_wps_device_interface *iface; struct upnp_wps_peer *peer; iface = ...
web_process_get_device_info
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
http_reply_code web_process_put_message(upnp_wps_device_sm *sm, char *data, wpabuf **reply, const char **replyname) { upnp_wps_device_interface *next; upnp_wps_peer *v6; http_reply_code ret; wsc_op_code op_code; wps_process_res re...
static enum http_reply_code web_process_put_message(struct upnp_wps_device_sm *sm, char *data, struct wpabuf **reply, const char **replyname) { struct wpabuf *msg; static const char *name = "NewOutMessage"; enum http_reply_code ret; enum wps_process_res res; enum wsc_op_code op_code; ...
web_process_put_message
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
http_reply_code web_process_put_wlan_response(upnp_wps_device_sm *sm, char *data, wpabuf **reply, const char **replyname) { http_reply_code ret; int type; int ok; int ev_type; upnp_wps_device_interface *iface; wpabuf...
static enum http_reply_code web_process_put_wlan_response(struct upnp_wps_device_sm *sm, char *data, struct wpabuf **reply, const char **replyname) { struct wpabuf *msg; enum http_reply_code ret; u8 macaddr[ETH_ALEN]; int ev_type; int type; char *val; struct upnp_wps_device_i...
web_process_put_wlan_response
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
http_reply_code web_process_set_selected_registrar(upnp_wps_device_sm *sm, sockaddr_in *cli, char *data, wpabuf **reply, const char **replyname) { http_reply_code re...
static enum http_reply_code web_process_set_selected_registrar( struct upnp_wps_device_sm *sm, struct sockaddr_in *cli, char *data, struct wpabuf **reply, const char **replyname) { struct wpabuf *msg; enum http_reply_code ret; struct subscription *s; struct upnp_wps_device_interface *iface; int err = ...
web_process_set_selected_registrar
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wifi_filter(ndef_record *record) { return record->type && record->type_length == 23 && memcmp(record->type, "application/vnd.wfa.wsc", 0x17u) == 0; }
static int wifi_filter(struct ndef_record *record) { if (record->type == NULL || record->type_length != os_strlen(wifi_handover_type)) return 0; if (os_memcmp(record->type, wifi_handover_type, os_strlen(wifi_handover_type)) != 0) return 0; return 1; }
wifi_filter
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_akm_suites(wiphy_info_data *info, nlattr *tb) { wpa_driver_capa *capa; if (tb) { *((_BYTE *)info + 22) |= 2u; capa = info->capa; capa->key_mgmt = get_akm_suites_info(tb); wpa_printf(2, "nl80211: wiphy supported key_mgmt 0x%x", info->capa->key_mgmt); } }
static void wiphy_info_akm_suites(struct wiphy_info_data *info, struct nlattr *tb) { if (!tb) return; info->has_key_mgmt = 1; info->capa->key_mgmt = get_akm_suites_info(tb); wpa_printf(MSG_DEBUG, "nl80211: wiphy supported key_mgmt 0x%x", info->capa->key_mgmt);...
wiphy_info_akm_suites
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_cipher_suites(wiphy_info_data *info, nlattr *tb) { unsigned int v2; unsigned int enc; unsigned int v4; unsigned int v5; unsigned int v6; unsigned int v7; int i; int num; u32 c; u32 *ciphers; if (tb) { num = (unsigned long)(int)nla_len(tb) >> 2; ciphers = (u32 *)nla_data(tb...
static void wiphy_info_cipher_suites(struct wiphy_info_data *info, struct nlattr *tb) { int i, num; u32 *ciphers; if (tb == NULL) return; num = nla_len(tb) / sizeof(u32); ciphers = nla_data(tb); for (i = 0; i < num; i++) { u32 c = ciphers[i]; wpa_printf(MS...
wiphy_info_cipher_suites
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_ext_feature_flags(wiphy_info_data *info, nlattr *tb) { u64 flags2; int len; wpa_driver_capa *capa; u8 *ext_features; capa = info->capa; if (tb) { ext_features = (u8 *)nla_data(tb); len = nla_len(tb); if (ext_feature_isset( ext_features, len, nl80211_ext_f...
static void wiphy_info_ext_feature_flags(struct wiphy_info_data *info, struct nlattr *tb) { struct wpa_driver_capa *capa = info->capa; u8 *ext_features; int len; if (tb == NULL) return; ext_features = nla_data(tb); len = nla_len(tb); if (ext_feature_isset(ex...
wiphy_info_ext_feature_flags
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_extended_capab(wpa_driver_nl80211_data *drv, nlattr *tb) { unsigned int v2; long v3; nl80211_iftype u32; const char *v5; size_t v6; const void *v7; u8 *v8; size_t v9; const void *v10; u8 *v11; int rem; int i; unsigned int len; nlattr *attr; drv_nl80211_ext_capa *capa; nla...
static void wiphy_info_extended_capab(struct wpa_driver_nl80211_data *drv, struct nlattr *tb) { int rem = 0, i; struct nlattr *tb1[NL80211_ATTR_MAX + 1], *attr; if (!tb || drv->num_iface_ext_capa == NL80211_IFTYPE_MAX) return; nla_for_each_nested(attr, tb, rem) { ...
wiphy_info_extended_capab
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_feature_flags(wiphy_info_data *info, nlattr *tb) { u64 v2; u32 flags; wpa_driver_capa *capa; capa = info->capa; if (tb) { flags = nla_get_u32(tb); if ((flags & 1) != 0) *((_BYTE *)info + 20) |= 8u; if ((flags & 4) != 0) capa->flags |= 0x800000uLL; if ((flags & 0x20...
static void wiphy_info_feature_flags(struct wiphy_info_data *info, struct nlattr *tb) { u32 flags; struct wpa_driver_capa *capa = info->capa; if (tb == NULL) return; flags = nla_get_u32(tb); if (flags & NL80211_FEATURE_SK_TX_STATUS) info->data_tx_status = 1; ...
wiphy_info_feature_flags
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wiphy_info_handler(nl_msg *msg, void *arg) { long v2; unsigned int v3; long v4; const char *string; u64 flags; int v7; size_t v8; const void *v9; int v10; size_t v11; const void *v12; unsigned int u32; unsigned char u8; int rem; nlattr *nl; nlattr *nl_0; genlmsghdr *gnlh; wiphy_i...
static int wiphy_info_handler(struct nl_msg *msg, void *arg) { struct nlattr *tb[NL80211_ATTR_MAX + 1]; struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); struct wiphy_info_data *info = arg; struct wpa_driver_capa *capa = info->capa; struct wpa_driver_nl80211_data *drv = info->drv; nla_parse(tb, NL80211...
wiphy_info_handler
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_iface_comb(wiphy_info_data *info, nlattr *tb) { int rem_combi; nlattr *nl_combi; unsigned long v4; v4 = __readfsqword(0x28u); if (tb) { nl_combi = (nlattr *)nla_data(tb); for (rem_combi = nla_len(tb); (unsigned int)nla_ok(nl_combi, (unsigned int)rem_combi) && wiphy_i...
static void wiphy_info_iface_comb(struct wiphy_info_data *info, struct nlattr *tb) { struct nlattr *nl_combi; int rem_combi; if (tb == NULL) return; nla_for_each_nested(nl_combi, tb, rem_combi) { if (wiphy_info_iface_comb_process(info, nl_combi) > 0) break; } ...
wiphy_info_iface_comb
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wiphy_info_iface_comb_process(wiphy_info_data *info, nlattr *nl_combi) { int rem_limit; int rem_mode; int combination_has_p2p; int combination_has_mgd; int err; int ift; unsigned int num_channels; nlattr *nl_limit; nlattr *nl_mode; nlattr *tb_limit[3]; nlattr *tb_comb[8]; unsigned long v14; ...
static int wiphy_info_iface_comb_process(struct wiphy_info_data *info, struct nlattr *nl_combi) { struct nlattr *tb_comb[NUM_NL80211_IFACE_COMB]; struct nlattr *tb_limit[NUM_NL80211_IFACE_LIMIT]; struct nlattr *nl_limit, *nl_mode; int err, rem_limit, rem_mode; int comb...
wiphy_info_iface_comb_process
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_iftype_akm_suites(wiphy_info_data *info, nlattr *tb) { int rem_if; nlattr *nl_if; unsigned long v4; v4 = __readfsqword(0x28u); if (tb) { nl_if = (nlattr *)nla_data(tb); for (rem_if = nla_len(tb); (unsigned int)nla_ok(nl_if, (unsigned int)rem_if); nl_if = (nlattr *)nl...
static void wiphy_info_iftype_akm_suites(struct wiphy_info_data *info, struct nlattr *tb) { struct nlattr *nl_if; int rem_if; if (!tb) return; nla_for_each_nested(nl_if, tb, rem_if) get_iface_akm_suites_info(info, nl_if); }
wiphy_info_iftype_akm_suites
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_max_roc(wpa_driver_capa *capa, nlattr *tb) { if (tb) capa->max_remain_on_chan = nla_get_u32(tb); }
static void wiphy_info_max_roc(struct wpa_driver_capa *capa, struct nlattr *tb) { if (tb) capa->max_remain_on_chan = nla_get_u32(tb); }
wiphy_info_max_roc
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_probe_resp_offload(wpa_driver_capa *capa, nlattr *tb) { u32 protocols; if (tb) { protocols = nla_get_u32(tb); wpa_printf(2, "nl80211: Supports Probe Response offload in AP mode"); capa->flags |= 0x200000uLL; capa->probe_resp_offloads = probe_resp_offload_support(protocols); } }
static void wiphy_info_probe_resp_offload(struct wpa_driver_capa *capa, struct nlattr *tb) { u32 protocols; if (tb == NULL) return; protocols = nla_get_u32(tb); wpa_printf(MSG_DEBUG, "nl80211: Supports Probe Response offload in AP " "mode")...
wiphy_info_probe_resp_offload
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_supp_cmds(wiphy_info_data *info, nlattr *tb) { unsigned int u32; int i; nlattr *nl_cmd; unsigned long v5; v5 = __readfsqword(0x28u); if (tb) { nl_cmd = (nlattr *)nla_data(tb); for (i = nla_len(tb); (unsigned int)nla_ok(nl_cmd, (unsigned int)i); nl_cmd = (nlattr *)nla_next(n...
static void wiphy_info_supp_cmds(struct wiphy_info_data *info, struct nlattr *tb) { struct nlattr *nl_cmd; int i; if (tb == NULL) return; nla_for_each_nested(nl_cmd, tb, i) { switch (nla_get_u32(nl_cmd)) { case NL80211_CMD_AUTHENTICATE: info->auth_supported =...
wiphy_info_supp_cmds
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_supported_iftypes(wiphy_info_data *info, nlattr *tb) { int i; nlattr *nl_mode; unsigned long v4; v4 = __readfsqword(0x28u); if (tb) { nl_mode = (nlattr *)nla_data(tb); for (i = nla_len(tb); (unsigned int)nla_ok(nl_mode, (unsigned int)i); nl_mode = (nlattr *)nla_next(nl_mode, ...
static void wiphy_info_supported_iftypes(struct wiphy_info_data *info, struct nlattr *tb) { struct nlattr *nl_mode; int i; if (tb == NULL) return; nla_for_each_nested(nl_mode, tb, i) { switch (nla_type(nl_mode)) { case NL80211_IFTYPE_AP: info->capa->f...
wiphy_info_supported_iftypes
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_tdls(wpa_driver_capa *capa, nlattr *tdls, nlattr *ext_setup) { if (tdls) { wpa_printf(2, "nl80211: TDLS supported"); capa->flags |= 0x80000uLL; if (ext_setup) { wpa_printf(2, "nl80211: TDLS external setup"); capa->flags |= 0x100000uLL; } } }
static void wiphy_info_tdls(struct wpa_driver_capa *capa, struct nlattr *tdls, struct nlattr *ext_setup) { if (tdls == NULL) return; wpa_printf(MSG_DEBUG, "nl80211: TDLS supported"); capa->flags |= WPA_DRIVER_FLAGS_TDLS_SUPPORT; if (ext_setup) { wpa_printf(MSG_DEBUG, "nl802...
wiphy_info_tdls
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wiphy_info_wowlan_triggers(wpa_driver_capa *capa, nlattr *tb) { nlattr *triggers[20]; unsigned long v3; v3 = __readfsqword(0x28u); if (tb && !(unsigned int)nla_parse_nested(triggers, 19, tb, 0)) { if (triggers[1]) capa->wowlan_triggers.any = 1; if (triggers[2]) capa->wowlan_triggers.di...
static void wiphy_info_wowlan_triggers(struct wpa_driver_capa *capa, struct nlattr *tb) { struct nlattr *triggers[MAX_NL80211_WOWLAN_TRIG + 1]; if (tb == NULL) return; if (nla_parse_nested(triggers, MAX_NL80211_WOWLAN_TRIG, tb, NULL)) return; if (triggers[NL8021...
wiphy_info_wowlan_triggers
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wired_driver_hapd_deinit(void *priv) { if (*((int *)priv + 8) >= 0) { eloop_unregister_read_sock(*((_DWORD *)priv + 8)); close(*((_DWORD *)priv + 8)); } if (*((int *)priv + 14) >= 0) { eloop_unregister_read_sock(*((_DWORD *)priv + 14)); close(*((_DWORD *)priv + 14)); } free(priv); }
static void wired_driver_hapd_deinit(void *priv) { struct wpa_driver_wired_data *drv = priv; if (drv->common.sock >= 0) { eloop_unregister_read_sock(drv->common.sock); close(drv->common.sock); } if (drv->dhcp_sock >= 0) { eloop_unregister_read_sock(drv->dhcp_sock); close(drv->dhcp_sock); } ...
wired_driver_hapd_deinit
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void *wired_driver_hapd_init(hostapd_data *hapd, wpa_init_params *params) { wpa_driver_wired_data *drv; drv = (wpa_driver_wired_data *)os_zalloc(0x40u); if (drv) { drv->common.ctx = hapd; os_strlcpy(drv->common.ifname, params->ifname, 0x11u); drv->use_pae_group_addr = params->use_pae_group_addr; ...
static void *wired_driver_hapd_init(struct hostapd_data *hapd, struct wpa_init_params *params) { struct wpa_driver_wired_data *drv; drv = os_zalloc(sizeof(struct wpa_driver_wired_data)); if (drv == NULL) { wpa_printf(MSG_INFO, "Could not allocate memory for wired driver da...
wired_driver_hapd_init
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wired_init_sockets(wpa_driver_wired_data *drv, u8 *own_addr) { uint16_t v2; int *v3; char *v4; int *v6; char *v7; int *v8; char *v9; int *v10; char *v11; int *v12; char *v13; int *v14; char *v15; int *v16; char *v17; int *v18; char *v19; int *v20; char *v21; int n; sockaddr...
static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) { #ifdef __linux__ struct ifreq ifr; struct sockaddr_ll addr; struct sockaddr_in addr2; int n = 1; drv->common.sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_PAE)); if (drv->common.sock < 0) { wpa_printf(MSG_ERROR, "socket[P...
wired_init_sockets
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wired_multicast_membership(int sock, int ifindex, const u8 *addr, int add) { int v5; int *v6; char *v7; packet_mreq mreq; unsigned long v11; v11 = __readfsqword(0x28u); if (sock < 0) return -1; memset(&mreq, 0, sizeof(mreq)); mreq.mr_ifindex = ifindex; mreq.mr_type = 0; mreq.mr_alen = 6; ...
int wired_multicast_membership(int sock, int ifindex, const u8 *addr, int add) { #ifdef __linux__ struct packet_mreq mreq; if (sock < 0) return -1; os_memset(&mreq, 0, sizeof(mreq)); mreq.mr_ifindex = ifindex; mreq.mr_type = PACKET_MR_MULTICAST; mreq.mr_alen = ETH_ALEN; os_memcpy(mreq.mr_address, ad...
wired_multicast_membership
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wired_send_eapol(void *priv, const u8 *addr, const u8 *data, size_t data_len, int encrypt, const u8 *own_addr, u32 flags) { int *v9; char *v10; int res; size_t len; ieee8023_hdr *hdr; len = data_len + 14; hdr = (ieee8023_hdr *)os_zalloc(data_len + 14); if (...
static int wired_send_eapol(void *priv, const u8 *addr, const u8 *data, size_t data_len, int encrypt, const u8 *own_addr, u32 flags) { struct wpa_driver_wired_data *drv = priv; struct ieee8023_hdr *hdr; size_t len; u8 *pos; int res; len = sizeof(*hdr)...
wired_send_eapol
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 wmm_aci_aifsn(int aifsn, int acm, int aci) { u8 ret; ret = aifsn & 0xF; if (acm) ret |= 0x10u; return (32 * aci) & 0x60 | ret; }
static inline u8 wmm_aci_aifsn(int aifsn, int acm, int aci) { u8 ret; ret = (aifsn << WMM_AC_AIFNS_SHIFT) & WMM_AC_AIFSN_MASK; if (acm) ret |= WMM_AC_ACM; ret |= (aci << WMM_AC_ACI_SHIFT) & WMM_AC_ACI_MASK; return ret; }
wmm_aci_aifsn
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wmm_addts_req(hostapd_data *hapd, const ieee80211_mgmt *mgmt, const wmm_tspec_element *tspec, size_t len) { long v4; long v5; long v6; int res; wmm_tspec_element tspec_resp; unsigned long v10; v10 = __readfsqword(0x28u); if ((char *)mgmt + len >= (char *)&tspec[1]) { wpa_pri...
static void wmm_addts_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, const struct wmm_tspec_element *tspec, size_t len) { const u8 *end = ((const u8 *)mgmt) + len; int res; struct wmm_tspec_element tspec_resp; if ((const u8 *)(tspec + 1) > ...
wmm_addts_req
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wmm_calc_regulatory_limit(hostapd_data *hapd, hostapd_wmm_ac_params *acp) { int c; hostapd_hw_modes *mode; hostapd_channel_data *chan; mode = hapd->iface->current_mode; memcpy(acp, hapd->iconf->wmm_ac_params, 0x50u); for (c = 0; mode && c < mode->num_channels; ++c) { chan = &mode->channels[c]; ...
static void wmm_calc_regulatory_limit(struct hostapd_data *hapd, struct hostapd_wmm_ac_params *acp) { struct hostapd_hw_modes *mode = hapd->iface->current_mode; int c; os_memcpy(acp, hapd->iconf->wmm_ac_params, sizeof(hapd->iconf->wmm_ac_params)); for (c = 0; ...
wmm_calc_regulatory_limit
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 wmm_ecw(int ecwmin, int ecwmax) { return ecwmin & 0xF | (16 * ecwmax); }
static inline u8 wmm_ecw(int ecwmin, int ecwmax) { return ((ecwmin << WMM_AC_ECWMIN_SHIFT) & WMM_AC_ECWMIN_MASK) | ((ecwmax << WMM_AC_ECWMAX_SHIFT) & WMM_AC_ECWMAX_MASK); }
wmm_ecw
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wmm_process_tspec(wmm_tspec_element *tspec) { const char *v1; le32 v3; signed short val; u16 vala; u16 surplus; le32 pps; unsigned int duration; wpa_printf(2, "WMM: TS Info: UP=%d PSB=%d Direction=%d TID=%d", (tspec->ts_info[1] >> 3) & 7, (tspec->ts_info[1] & 4) != 0, (tsp...
int wmm_process_tspec(struct wmm_tspec_element *tspec) { u64 medium_time; unsigned int pps, duration; unsigned int up, psb, dir, tid; u16 val, surplus; up = (tspec->ts_info[1] >> 3) & 0x07; psb = (tspec->ts_info[1] >> 2) & 0x01; dir = (tspec->ts_info[0] >> 5) & 0x03; tid = (tspec->ts_info[0] >> 1) & 0x...
wmm_process_tspec
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wmm_send_action(hostapd_data *hapd, const u8 *addr, const wmm_tspec_element *tspec, u8 action_code, u8 dialogue_token, u8 status_code) { u8 buf[256]; unsigned long v11; long savedregs; v11 = __readfsqword(0x28u); hostapd_logger(hapd, addr, 1u, 1, "action respons...
static void wmm_send_action(struct hostapd_data *hapd, const u8 *addr, const struct wmm_tspec_element *tspec, u8 action_code, u8 dialogue_token, u8 status_code) { u8 buf[256]; struct ieee80211_mgmt *m = (struct ieee80211_mgmt *)buf; struct wmm_tspec_element ...
wmm_send_action
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wmm_set_regulatory_limit(const hostapd_wmm_ac_params *wmm_conf, hostapd_wmm_ac_params *wmm, const hostapd_wmm_rule *wmm_reg) { int cwmin; int cwmax; int aifs; int txop_limit; int ac; for (ac = 0; ac <= 3; ++ac) { cwmin = wmm_conf[ac].cwmi...
static void wmm_set_regulatory_limit(const struct hostapd_wmm_ac_params *wmm_conf, struct hostapd_wmm_ac_params *wmm, const struct hostapd_wmm_rule *wmm_reg) { int ac; for (ac = 0; ac < WMM_AC_NUM; ac++) { wmm[ac].cwmin = MAX(wmm_conf[ac].cwmin, wmm_reg[ac].min...
wmm_set_regulatory_limit
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wnm_beacon_protection_failure(hostapd_data *hapd, const u8 *addr) { sta_info *sta; if (hapd->conf->beacon_prot && (hapd->iface->drv_flags & 0x4000000000000000LL) != 0) { sta = ap_get_sta(hapd, addr); if (sta && (sta->flags & 0x20) != 0) { hostapd_logger(hapd, sta->addr, 1u, 2, ...
static void wnm_beacon_protection_failure(struct hostapd_data *hapd, const u8 *addr) { struct sta_info *sta; if (!hapd->conf->beacon_prot || !(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_BEACON_PROTECTION)) return; sta = ap_get_sta(hapd, addr); if (!sta || !(s...
wnm_beacon_protection_failure
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wnm_send_bss_tm_req(hostapd_data *hapd, sta_info *sta, u8 req_mode, int disassoc_timer, u8 valid_int, const u8 *bss_term_dur, u8 dialog_token, const char *url, const u8 *nei_rep, size_t nei_rep_len, const u8 *mbo_attrs, ...
int wnm_send_bss_tm_req(struct hostapd_data *hapd, struct sta_info *sta, u8 req_mode, int disassoc_timer, u8 valid_int, const u8 *bss_term_dur, u8 dialog_token, const char *url, const u8 *nei_rep, size_t nei_rep_len, const u...
wnm_send_bss_tm_req
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wnm_send_coloc_intf_req(hostapd_data *hapd, sta_info *sta, unsigned int auto_report, unsigned int timeout) { u8 buf[100]; unsigned long v8; v8 = __readfsqword(0x28u); if (auto_report > 3 || timeout > 0x3F) return -1; memset(buf, 0, sizeof(buf)); *(_WORD *)buf = 208; me...
int wnm_send_coloc_intf_req(struct hostapd_data *hapd, struct sta_info *sta, unsigned int auto_report, unsigned int timeout) { u8 buf[100], *pos; struct ieee80211_mgmt *mgmt; u8 dialog_token = 1; if (auto_report > 3 || timeout > 63) return -1; os_memset(buf, 0, sizeof(buf)); ...
wnm_send_coloc_intf_req
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wnm_send_disassoc_imminent(hostapd_data *hapd, sta_info *sta, int disassoc_timer) { u8 buf[1000]; unsigned long v6; v6 = __readfsqword(0x28u); memset(buf, 0, sizeof(buf)); *(_WORD *)buf = 208; memcpy(&buf[4], sta->addr, 6u); memcpy(&buf[10], hapd->own_addr, 6u); memcp...
int wnm_send_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, int disassoc_timer) { u8 buf[1000], *pos; struct ieee80211_mgmt *mgmt; os_memset(buf, 0, sizeof(buf)); mgmt = (struct ieee80211_mgmt *)buf; mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, WLAN...
wnm_send_disassoc_imminent
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wnm_send_ess_disassoc_imminent(hostapd_data *hapd, sta_info *sta, const char *url, int disassoc_timer) { size_t url_len; u8 buf[1000]; unsigned long v9; v9 = __readfsqword(0x28u); memset(buf, 0, sizeof(buf)); *(_WORD *)buf = 208; memcpy(&buf[4], sta->addr, 6u); me...
int wnm_send_ess_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, const char *url, int disassoc_timer) { u8 buf[1000], *pos; struct ieee80211_mgmt *mgmt; size_t url_len; os_memset(buf, 0, sizeof(buf)); mgmt = (struct ieee...
wnm_send_ess_disassoc_imminent
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int word_eq(char *s1, char *s2) { char *v2; char *v3; int c1; int c2; _BOOL4 end1; _BOOL4 end2; do { v2 = s1++; c1 = *v2; v3 = s2++; c2 = *v3; if (((*__ctype_b_loc())[c1] & 0x400) != 0 && ((*__ctype_b_loc())[c1] & 0x100) != 0) c1 = tolower(c1); if (((*__ctype_b_loc()...
static int word_eq(char *s1, char *s2) { int c1; int c2; int end1 = 0; int end2 = 0; for (;;) { c1 = *s1++; c2 = *s2++; if (isalpha(c1) && isupper(c1)) c1 = tolower(c1); if (isalpha(c2) && isupper(c2)) c2 = tolower(c2); end1 = !isgraph(c1); end2 = !isgraph(c2); if (end1...
word_eq
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int word_separation_length(const char *s) { const char *sa; int c; for (sa = s;; ++sa) { c = *sa; if (c != 32 && c != 9) break; } return (_DWORD)sa - (_DWORD)s; }
static int word_separation_length(const char *s) { const char *begin = s; for (;; s++) { int c = *s; if (c == ' ' || c == '\t') continue; break; } return s - begin; }
word_separation_length
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *wpa_add_kde(u8 *pos, u32 kde, const u8 *data, size_t data_len, const u8 *data2, size_t data2_len) { u8 *posa; *pos = -35; pos[1] = data_len + data2_len + 4; WPA_PUT_BE32_1(pos + 2, kde); memcpy(pos + 6, data, data_len); posa = &pos[data_len + 6]; if (data2) { memcpy(posa, data2, d...
u8 *wpa_add_kde(u8 *pos, u32 kde, const u8 *data, size_t data_len, const u8 *data2, size_t data2_len) { *pos++ = WLAN_EID_VENDOR_SPECIFIC; *pos++ = RSN_SELECTOR_LEN + data_len + data2_len; RSN_SELECTOR_PUT(pos, kde); pos += RSN_SELECTOR_LEN; os_memcpy(pos, data, data_len); pos += data_len; ...
wpa_add_kde
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u32 wpa_akm_to_suite(int akm) { long v1; if ((akm & 0x1000000) != 0) { LODWORD(v1) = 1027085; } else if ((akm & 0x20) != 0) { LODWORD(v1) = 1027075; } else if ((akm & 0x40) != 0) { LODWORD(v1) = 1027076; } else if ((akm & 0x80) != 0) { return (unsigned int)&loc_FAC05; } else if ((akm & 1) !...
u32 wpa_akm_to_suite(int akm) { if (akm & WPA_KEY_MGMT_FT_IEEE8021X_SHA384) return RSN_AUTH_KEY_MGMT_FT_802_1X_SHA384; if (akm & WPA_KEY_MGMT_FT_IEEE8021X) return RSN_AUTH_KEY_MGMT_FT_802_1X; if (akm & WPA_KEY_MGMT_FT_PSK) return RSN_AUTH_KEY_MGMT_FT_PSK; if (akm & WPA_KEY_MGMT_IEEE8021X_SHA256) ...
wpa_akm_to_suite
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u32 wpa_alg_to_cipher_suite(wpa_alg alg, size_t key_len) { void *v2; switch (alg) { case wpa_alg_WPA_ALG_NONE: wpa_printf(5, "nl80211: Unexpected encryption algorithm %d", alg); LODWORD(v2) = 0; break; case wpa_alg_WPA_ALG_WEP: if (key_len == 5) LODWORD(v2) = 1027073; else v2 = ...
static u32 wpa_alg_to_cipher_suite(enum wpa_alg alg, size_t key_len) { switch (alg) { case WPA_ALG_WEP: if (key_len == 5) return RSN_CIPHER_SUITE_WEP40; return RSN_CIPHER_SUITE_WEP104; case WPA_ALG_TKIP: return RSN_CIPHER_SUITE_TKIP; case WPA_ALG_CCMP: return RSN_CIPHER_SUITE_CCMP; case ...
wpa_alg_to_cipher_suite
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
wpa_group *wpa_auth_add_group(wpa_authenticator *wpa_auth, int vlan_id) { wpa_group *group; if (!wpa_auth || !wpa_auth->group) return 0; wpa_printf(2, "WPA: Add group state machine for VLAN-ID %d", vlan_id); group = wpa_group_init(wpa_auth, vlan_id, 0); if (!group) return 0; group->next = wpa_auth-...
static struct wpa_group *wpa_auth_add_group(struct wpa_authenticator *wpa_auth, int vlan_id) { struct wpa_group *group; if (!wpa_auth || !wpa_auth->group) return NULL; wpa_printf(MSG_DEBUG, "WPA: Add group state machine for VLAN-ID %d", vlan_id); group = wpa_gro...
wpa_auth_add_group
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_add_sae_pmkid(wpa_state_machine *sm, const u8 *pmkid) { long v2; v2 = *((_QWORD *)pmkid + 1); *(_QWORD *)sm->pmkid = *(_QWORD *)pmkid; *(_QWORD *)&sm->pmkid[8] = v2; *((_BYTE *)sm + 681) |= 8u; }
void wpa_auth_add_sae_pmkid(struct wpa_state_machine *sm, const u8 *pmkid) { os_memcpy(sm->pmkid, pmkid, PMKID_LEN); sm->pmkid_set = 1; }
wpa_auth_add_sae_pmkid
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_add_sta_ft(wpa_authenticator *wpa_auth, const u8 *addr) { if (wpa_auth->cb->add_sta_ft) return wpa_auth->cb->add_sta_ft(wpa_auth->cb_ctx, addr); else return -1; }
static inline int wpa_auth_add_sta_ft(struct wpa_authenticator *wpa_auth, const u8 *addr) { if (!wpa_auth->cb->add_sta_ft) return -1; return wpa_auth->cb->add_sta_ft(wpa_auth->cb_ctx, addr); }
wpa_auth_add_sta_ft
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_countermeasures_start(wpa_authenticator *wpa_auth) { if (wpa_auth) ++wpa_auth->dot11RSNATKIPCounterMeasuresInvoked; }
void wpa_auth_countermeasures_start(struct wpa_authenticator *wpa_auth) { if (wpa_auth) wpa_auth->dot11RSNATKIPCounterMeasuresInvoked++; }
wpa_auth_countermeasures_start
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_derive_ptk_ft(wpa_state_machine *sm, wpa_ptk *ptk) { size_t v2; int v4; int psk_local; u32 expires_in; int session_timeout; const u8 *identity; const u8 *radius_cui; const u8 *mpmk; size_t mpmk_len; size_t pmk_r0_len; size_t pmk_r1_len; const u8 *mdid; const u8 *r0kh; size_t r0k...
int wpa_auth_derive_ptk_ft(struct wpa_state_machine *sm, struct wpa_ptk *ptk) { u8 pmk_r0[PMK_LEN_MAX], pmk_r0_name[WPA_PMK_NAME_LEN]; size_t pmk_r0_len = wpa_key_mgmt_sha384(sm->wpa_key_mgmt) ? SHA384_MAC_LEN : PMK_LEN; size_t pmk_r1_len = pmk_r0_len; u8 pmk_r1[PMK_LEN_MAX]; u8 ptk_name[WPA_PMK_NAME_LE...
wpa_auth_derive_ptk_ft
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_eapol_key_tx_status(wpa_authenticator *wpa_auth, wpa_state_machine *sm, int ack) { if (wpa_auth) { if (sm) { wpa_printf(2, "WPA: EAPOL-Key TX status for STA " "%02x:%02x:%02x:%02x:%02x:%02x ack=%d", sm->addr[0...
void wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) { if (!wpa_auth || !sm) return; wpa_printf(MSG_DEBUG, "WPA: EAPOL-Key TX status for STA " MACSTR " ack=%d", MAC2STR(sm->addr), ack); if (sm->pending_1_of_...
wpa_auth_eapol_key_tx_status
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_ensure_group(wpa_authenticator *wpa_auth, int vlan_id) { wpa_group *group; if (!wpa_auth) return 0; for (group = wpa_auth->group; group && vlan_id != group->vlan_id; group = group->next) ; if (!group) { group = wpa_auth_add_group(wpa_auth, vlan_id); if (!group) return ...
int wpa_auth_ensure_group(struct wpa_authenticator *wpa_auth, int vlan_id) { struct wpa_group *group; if (!wpa_auth) return 0; group = wpa_auth->group; while (group) { if (group->vlan_id == vlan_id) break; group = group->next; } if (!group) { group = wpa_auth_add_group(wpa_auth, vla...
wpa_auth_ensure_group
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_for_each_auth(wpa_authenticator *wpa_auth, int (*cb)(wpa_authenticator *, void *), void *cb_ctx) { if (wpa_auth->cb->for_each_auth) return wpa_auth->cb->for_each_auth(wpa_auth->cb_ctx, cb, cb_ctx); else return 0; }
int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_authenticator *a, void *ctx), void *cb_ctx) { if (!wpa_auth->cb->for_each_auth) return 0; return wpa_auth->cb->for_each_auth(wpa_auth->cb_ctx, cb, cb_ctx); }
wpa_auth_for_each_auth
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_for_each_sta(wpa_authenticator *wpa_auth, int (*cb)(wpa_state_machine *, void *), void *cb_ctx) { if (wpa_auth->cb->for_each_sta) return wpa_auth->cb->for_each_sta(wpa_auth->cb_ctx, cb, cb_ctx); else return 0; }
int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) { if (!wpa_auth->cb->for_each_sta) return 0; return wpa_auth->cb->for_each_sta(wpa_auth->cb_ctx, cb, cb_ctx); }
wpa_auth_for_each_sta
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_gen_wpa_ie(wpa_authenticator *wpa_auth) { int res; int resa; int resb; int resc; u8 *pos; u8 *posa; u8 buf[128]; _QWORD v9[2]; v9[1] = __readfsqword(0x28u); pos = buf; if (wpa_auth->conf.wpa == 8) pos = wpa_write_osen(&wpa_auth->conf, buf); if ((wpa_auth->conf.wpa & 2) != 0) { ...
int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) { u8 *pos, buf[128]; int res; #ifdef CONFIG_TESTING_OPTIONS if (wpa_auth->conf.own_ie_override_len) { wpa_hexdump(MSG_DEBUG, "WPA: Forced own IE(s) for testing", wpa_auth->conf.own_ie_override, wpa_auth->conf.own_ie_o...
wpa_auth_gen_wpa_ie
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_get_eapol(wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) { if (wpa_auth->cb->get_eapol) return wpa_auth->cb->get_eapol(wpa_auth->cb_ctx, addr, var); else return -1; }
static inline int wpa_auth_get_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var) { if (!wpa_auth->cb->get_eapol) return -1; return wpa_auth->cb->get_eapol(wpa_auth->cb_ctx, addr, var); }
wpa_auth_get_eapol
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_get_msk(wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) { if (wpa_auth->cb->get_msk) return wpa_auth->cb->get_msk(wpa_auth->cb_ctx, addr, msk, len); else return -1; }
static inline int wpa_auth_get_msk(struct wpa_authenticator *wpa_auth, const u8 *addr, u8 *msk, size_t *len) { if (!wpa_auth->cb->get_msk) return -1; return wpa_auth->cb->get_msk(wpa_auth->cb_ctx, addr, msk, len); }
wpa_auth_get_msk
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_get_pairwise(wpa_state_machine *sm) { return sm->pairwise; }
int wpa_auth_get_pairwise(struct wpa_state_machine *sm) { return sm->pairwise; }
wpa_auth_get_pairwise
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
const u8 *wpa_auth_get_pmk(wpa_state_machine *sm, int *len) { if (!sm) return 0; *len = sm->pmk_len; return sm->PMK; }
const u8 *wpa_auth_get_pmk(struct wpa_state_machine *sm, int *len) { if (!sm) return NULL; *len = sm->pmk_len; return sm->PMK; }
wpa_auth_get_pmk
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
const u8 *wpa_auth_get_psk(wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, size_t *psk_len, int *vlan_id) { if (wpa_auth->cb->get_psk) return wpa_auth->cb->get_psk(wpa_auth->cb_ctx, addr, p2p_dev_addr, prev_psk, ...
static inline const u8 *wpa_auth_get_psk(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr, const u8 *prev_psk, size_t *psk_len, int *vlan_id) { if (!wpa_auth->cb->get_ps...
wpa_auth_get_psk
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
const u8 *wpa_auth_get_wpa_ie(wpa_authenticator *wpa_auth, size_t *len) { if (!wpa_auth) return 0; *len = wpa_auth->wpa_ie_len; return wpa_auth->wpa_ie; }
const u8 *wpa_auth_get_wpa_ie(struct wpa_authenticator *wpa_auth, size_t *len) { if (!wpa_auth) return NULL; *len = wpa_auth->wpa_ie_len; return wpa_auth->wpa_ie; }
wpa_auth_get_wpa_ie
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
bool wpa_auth_gtk_rekey_in_process(wpa_authenticator *wpa_auth) { wpa_group *group; for (group = wpa_auth->group; group; group = group->next) { if (group->GKeyDoneStations) return 1; } return 0; }
static bool wpa_auth_gtk_rekey_in_process(struct wpa_authenticator *wpa_auth) { struct wpa_group *group; for (group = wpa_auth->group; group; group = group->next) { if (group->GKeyDoneStations) return true; } return false; }
wpa_auth_gtk_rekey_in_process
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_iface_iter(hostapd_iface *iface, void *ctx) { size_t i; for (i = 0; i < iface->num_bss; ++i) { if (iface->bss[i]->wpa_auth && (*(unsigned int (**)(wpa_authenticator *, _QWORD))ctx)( iface->bss[i]->wpa_auth, *((_QWORD *)ctx + 1))) { return 1; } } return 0; }
static int wpa_auth_iface_iter(struct hostapd_iface *iface, void *ctx) { struct wpa_auth_iface_iter_data *data = ctx; size_t i; for (i = 0; i < iface->num_bss; i++) { if (iface->bss[i]->wpa_auth && data->cb(iface->bss[i]->wpa_auth, data->cb_ctx)) return 1; } return 0; }
wpa_auth_iface_iter
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_logger(wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) { if (wpa_auth->cb->logger) wpa_auth->cb->logger(wpa_auth->cb_ctx, addr, level, txt); }
void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr, logger_level level, const char *txt) { if (!wpa_auth->cb->logger) return; wpa_auth->cb->logger(wpa_auth->cb_ctx, addr, level, txt); }
wpa_auth_logger
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_mic_failure_report(wpa_authenticator *wpa_auth, const u8 *addr) { if (wpa_auth->cb->mic_failure_report) return wpa_auth->cb->mic_failure_report(wpa_auth->cb_ctx, addr); else return 0; }
static inline int wpa_auth_mic_failure_report(struct wpa_authenticator *wpa_auth, const u8 *addr) { if (wpa_auth->cb->mic_failure_report) return wpa_auth->cb->mic_failure_report(wpa_auth->cb_ctx, addr); return 0; }
wpa_auth_mic_failure_report
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_okc_iter(wpa_authenticator *a, void *ctx) { *(_QWORD *)ctx = pmksa_cache_get_okc(a->pmksa, *((const u8 **)ctx + 1), *((const u8 **)ctx + 2), *((const u8 **)ctx + 3)); return *(_QWORD *)ctx != 0; }
static int wpa_auth_okc_iter(struct wpa_authenticator *a, void *ctx) { struct wpa_auth_okc_iter_data *data = ctx; data->pmksa = pmksa_cache_get_okc(a->pmksa, data->aa, data->spa, data->pmkid); if (data->pmksa) return 1; return 0; }
wpa_auth_okc_iter
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_pairwise_set(wpa_state_machine *sm) { return sm && sm->pairwise_set; }
int wpa_auth_pairwise_set(struct wpa_state_machine *sm) { return sm && sm->pairwise_set; }
wpa_auth_pairwise_set
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_pmksa_add(wpa_state_machine *sm, const u8 *pmk, unsigned int pmk_len, int session_timeout, eapol_state_machine *eapol) { unsigned int pmk_lena; const u8 *pmka; pmka = pmk; pmk_lena = pmk_len; if (!sm || sm->wpa != WPA_VERSION_WPA2 || sm->wpa_au...
int wpa_auth_pmksa_add(struct wpa_state_machine *sm, const u8 *pmk, unsigned int pmk_len, int session_timeout, struct eapol_state_machine *eapol) { if (!sm || sm->wpa != WPA_VERSION_WPA2 || sm->wpa_auth->conf.disable_pmksa_caching) return -1; #ifdef CONFIG_IEEE...
wpa_auth_pmksa_add
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_pmksa_add2(wpa_authenticator *wpa_auth, const u8 *addr, const u8 *pmk, size_t pmk_len, const u8 *pmkid, int session_timeout, int akmp) { if (!wpa_auth || wpa_auth->conf.disable_pmksa_caching) return -1; wpa_hexdump_key(2, "RSN: Cache PMK (2)", pmk, 0x...
int wpa_auth_pmksa_add2(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *pmk, size_t pmk_len, const u8 *pmkid, int session_timeout, int akmp) { if (!wpa_auth || wpa_auth->conf.disable_pmksa_caching) return -1; wpa_hexdump_key(MSG_DEBUG, "RSN: Cache P...
wpa_auth_pmksa_add2
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_pmksa_add_preauth(wpa_authenticator *wpa_auth, const u8 *pmk, size_t len, const u8 *sta_addr, int session_timeout, eapol_state_machine *eapol) { if (!wpa_auth) return -1; wpa_hexdump_key(2, "RSN: Cache PMK ...
int wpa_auth_pmksa_add_preauth(struct wpa_authenticator *wpa_auth, const u8 *pmk, size_t len, const u8 *sta_addr, int session_timeout, struct eapol_state_machine *eapol) { if (!wpa_auth) return -1; wpa_hexdump_key(MSG_...
wpa_auth_pmksa_add_preauth
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_pmksa_add_sae(wpa_authenticator *wpa_auth, const u8 *addr, const u8 *pmk, const u8 *pmkid) { if (wpa_auth->conf.disable_pmksa_caching) return -1; wpa_hexdump_key(2, "RSN: Cache PMK from SAE", pmk, 0x20u); if (pmksa_cache_auth_add(wpa_auth->pmksa, pmk, 0x20u, pmkid, 0, 0...
int wpa_auth_pmksa_add_sae(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *pmk, const u8 *pmkid) { if (wpa_auth->conf.disable_pmksa_caching) return -1; wpa_hexdump_key(MSG_DEBUG, "RSN: Cache PMK from SAE", pmk, PMK_LEN); if (pmksa_cache_auth_add(wpa_auth->pmksa, pmk, ...
wpa_auth_pmksa_add_sae
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_pmksa_clear_cb(wpa_state_machine *sm, void *ctx) { if (ctx == sm->pmksa) sm->pmksa = 0; return 0; }
static int wpa_auth_pmksa_clear_cb(struct wpa_state_machine *sm, void *ctx) { if (sm->pmksa == ctx) sm->pmksa = NULL; return 0; }
wpa_auth_pmksa_clear_cb
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_pmksa_flush(wpa_authenticator *wpa_auth) { if (wpa_auth) { if (wpa_auth->pmksa) pmksa_cache_auth_flush(wpa_auth->pmksa); } }
void wpa_auth_pmksa_flush(struct wpa_authenticator *wpa_auth) { if (wpa_auth && wpa_auth->pmksa) pmksa_cache_auth_flush(wpa_auth->pmksa); }
wpa_auth_pmksa_flush
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_pmksa_free_cb(rsn_pmksa_cache_entry *entry, void *ctx) { wpa_auth_for_each_sta( (wpa_authenticator *)ctx, (int (*)(wpa_state_machine *, void *))wpa_auth_pmksa_clear_cb, entry); }
static void wpa_auth_pmksa_free_cb(struct rsn_pmksa_cache_entry *entry, void *ctx) { struct wpa_authenticator *wpa_auth = ctx; wpa_auth_for_each_sta(wpa_auth, wpa_auth_pmksa_clear_cb, entry); }
wpa_auth_pmksa_free_cb
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
rsn_pmksa_cache_entry *wpa_auth_pmksa_get(wpa_authenticator *wpa_auth, const u8 *sta_addr, const u8 *pmkid) { if (wpa_auth && wpa_auth->pmksa) return pmksa_cache_auth_get(wpa_auth->pmksa, sta_addr, pmkid); else return 0; }
struct rsn_pmksa_cache_entry * wpa_auth_pmksa_get(struct wpa_authenticator *wpa_auth, const u8 *sta_addr, const u8 *pmkid) { if (!wpa_auth || !wpa_auth->pmksa) return NULL; return pmksa_cache_auth_get(wpa_auth->pmksa, sta_addr, pmkid); }
wpa_auth_pmksa_get
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_pmksa_list(wpa_authenticator *wpa_auth, char *buf, size_t len) { if (wpa_auth && wpa_auth->pmksa) return pmksa_cache_auth_list(wpa_auth->pmksa, buf, len); else return 0; }
int wpa_auth_pmksa_list(struct wpa_authenticator *wpa_auth, char *buf, size_t len) { if (!wpa_auth || !wpa_auth->pmksa) return 0; return pmksa_cache_auth_list(wpa_auth->pmksa, buf, len); }
wpa_auth_pmksa_list
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_pmksa_remove(wpa_authenticator *wpa_auth, const u8 *sta_addr) { rsn_pmksa_cache_entry *pmksa; if (wpa_auth && wpa_auth->pmksa) { pmksa = pmksa_cache_auth_get(wpa_auth->pmksa, sta_addr, 0); if (pmksa) { wpa_printf(2, "WPA: Remove PMKSA cache entry for " ...
void wpa_auth_pmksa_remove(struct wpa_authenticator *wpa_auth, const u8 *sta_addr) { struct rsn_pmksa_cache_entry *pmksa; if (!wpa_auth || !wpa_auth->pmksa) return; pmksa = pmksa_cache_auth_get(wpa_auth->pmksa, sta_addr, NULL); if (pmksa) { wpa_printf(MSG_DEBUG, ...
wpa_auth_pmksa_remove
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_pmksa_set_to_sm(rsn_pmksa_cache_entry *pmksa, wpa_state_machine *sm, wpa_authenticator *wpa_auth, u8 *pmkid, u8 *pmk) { long v5; long v6; if (sm) { sm->pmksa = pmksa; memcpy(pmk, pmksa->pmk, 0x20u); v5 = *(_QWORD *)&pmksa->pmki...
void wpa_auth_pmksa_set_to_sm(struct rsn_pmksa_cache_entry *pmksa, struct wpa_state_machine *sm, struct wpa_authenticator *wpa_auth, u8 *pmkid, u8 *pmk) { if (!sm) return; sm->pmksa = pmksa; os_memcpy(pmk, pmksa->pmk, P...
wpa_auth_pmksa_set_to_sm
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_psk_failure_report(wpa_authenticator *wpa_auth, const u8 *addr) { if (wpa_auth->cb->psk_failure_report) wpa_auth->cb->psk_failure_report(wpa_auth->cb_ctx, addr); }
static inline void wpa_auth_psk_failure_report(struct wpa_authenticator *wpa_auth, const u8 *addr) { if (wpa_auth->cb->psk_failure_report) wpa_auth->cb->psk_failure_report(wpa_auth->cb_ctx, addr); }
wpa_auth_psk_failure_report
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_radius_das_disconnect_pmksa(wpa_authenticator *wpa_auth, radius_das_attrs *attr) { return pmksa_cache_auth_radius_das_disconnect(wpa_auth->pmksa, attr); }
int wpa_auth_radius_das_disconnect_pmksa(struct wpa_authenticator *wpa_auth, struct radius_das_attrs *attr) { return pmksa_cache_auth_radius_das_disconnect(wpa_auth->pmksa, attr); }
wpa_auth_radius_das_disconnect_pmksa
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_reconfig_group_keys(wpa_authenticator *wpa_auth) { wpa_group *group; if (wpa_auth) { for (group = wpa_auth->group; group; group = group->next) wpa_group_config_group_keys(wpa_auth, group); } }
void wpa_auth_reconfig_group_keys(struct wpa_authenticator *wpa_auth) { struct wpa_group *group; if (!wpa_auth) return; for (group = wpa_auth->group; group; group = group->next) wpa_group_config_group_keys(wpa_auth, group); }
wpa_auth_reconfig_group_keys
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_release_group(wpa_authenticator *wpa_auth, int vlan_id) { int ret; wpa_group *group; ret = 0; if (!wpa_auth) return 0; for (group = wpa_auth->group; group && vlan_id != group->vlan_id; group = group->next) ; if (!group) return -1; wpa_printf(2, "WPA: Try stopping group sta...
int wpa_auth_release_group(struct wpa_authenticator *wpa_auth, int vlan_id) { struct wpa_group *group; int ret = 0; if (!wpa_auth) return 0; group = wpa_auth->group; while (group) { if (group->vlan_id == vlan_id) break; group = group->next; } if (!group) return -1; wpa_printf(M...
wpa_auth_release_group
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_remove_ptksa(wpa_authenticator *wpa_auth, const u8 *addr, int cipher) { if (wpa_auth->cb->clear_ptksa) wpa_auth->cb->clear_ptksa(wpa_auth->cb_ctx, addr, cipher); }
void wpa_auth_remove_ptksa(struct wpa_authenticator *wpa_auth, const u8 *addr, int cipher) { if (wpa_auth->cb->clear_ptksa) wpa_auth->cb->clear_ptksa(wpa_auth->cb_ctx, addr, cipher); }
wpa_auth_remove_ptksa
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int wpa_auth_send_eapol(wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) { if (wpa_auth->cb->send_eapol) return wpa_auth->cb->send_eapol(wpa_auth->cb_ctx, addr, data, data_len, encrypt); else return -1; }
static inline int wpa_auth_send_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *data, size_t data_len, int encrypt) { if (!wpa_auth->cb->send_eapol) return -1; return wpa_auth->cb->send_eapol(wpa_auth->cb_ctx, addr, ...
wpa_auth_send_eapol
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_set_auth_alg(wpa_state_machine *sm, u16 auth_alg) { if (sm) sm->auth_alg = auth_alg; }
void wpa_auth_set_auth_alg(struct wpa_state_machine *sm, u16 auth_alg) { if (sm) sm->auth_alg = auth_alg; }
wpa_auth_set_auth_alg
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_set_eapol(wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var, int value) { if (wpa_auth->cb->set_eapol) wpa_auth->cb->set_eapol(wpa_auth->cb_ctx, addr, var, value); }
static inline void wpa_auth_set_eapol(struct wpa_authenticator *wpa_auth, const u8 *addr, wpa_eapol_variable var, int value) { if (wpa_auth->cb->set_eapol) wpa_auth->cb->set_eapol(wpa_auth->cb_ctx, addr, var, value); }
wpa_auth_set_eapol
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_set_ocv(wpa_state_machine *sm, int ocv) { if (sm) sm->ocv_enabled = ocv; }
void wpa_auth_set_ocv(struct wpa_state_machine *sm, int ocv) { if (sm) sm->ocv_enabled = ocv; }
wpa_auth_set_ocv
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_set_ptk_rekey_timer(wpa_state_machine *sm) { if (sm) { if (sm->wpa_auth->conf.wpa_ptk_rekey) { wpa_printf(2, "WPA: Start PTK rekeying timer for " "%02x:%02x:%02x:%02x:%02x:%02x (%d seconds)", sm->addr[0], sm->addr[1], sm->addr[2], sm->addr[3],...
void wpa_auth_set_ptk_rekey_timer(struct wpa_state_machine *sm) { if (sm && sm->wpa_auth->conf.wpa_ptk_rekey) { wpa_printf(MSG_DEBUG, "WPA: Start PTK rekeying timer for " MACSTR " (%d seconds)", MAC2STR(sm->addr), sm->wpa_auth->conf.wpa_ptk_rekey); eloop_cancel_timeout(wpa_rekey_...
wpa_auth_set_ptk_rekey_timer
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void wpa_auth_set_transition_disable(wpa_authenticator *wpa_auth, u8 val) { if (wpa_auth) wpa_auth->conf.transition_disable = val; }
void wpa_auth_set_transition_disable(struct wpa_authenticator *wpa_auth, u8 val) { if (wpa_auth) wpa_auth->conf.transition_disable = val; }
wpa_auth_set_transition_disable
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0