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 gas_anqp_set_len(wpabuf *buf) {
int v1;
u16 v2;
size_t offset;
u8 *len;
if (buf && wpabuf_len_72(buf) > 1) {
v1 = wpabuf_head_u8_25(buf)[1];
if (v1 == 13) {
offset = 12;
} else {
if (v1 > 13)
return;
if (v1 == 10) {
offset = 7;
} else {
if (v1 ... | void gas_anqp_set_len(struct wpabuf *buf) {
u8 action;
size_t offset;
u8 *len;
if (buf == NULL || wpabuf_len(buf) < 2)
return;
action = *(wpabuf_head_u8(buf) + 1);
switch (action) {
case WLAN_PA_GAS_INITIAL_REQ:
offset = 3 + 4;
break;
case WLAN_PA_GAS_INITIAL_RESP:
offset = 7 + 4;
... | gas_anqp_set_len | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpabuf *gas_build_req(u8 action, u8 dialog_token, size_t size) {
wpabuf *buf;
buf = wpabuf_alloc(size + 100);
if (!buf)
return 0;
wpabuf_put_u8_51(buf, 4u);
wpabuf_put_u8_51(buf, action);
wpabuf_put_u8_51(buf, dialog_token);
return buf;
} | static struct wpabuf *gas_build_req(u8 action, u8 dialog_token, size_t size) {
struct wpabuf *buf;
buf = wpabuf_alloc(100 + size);
if (buf == NULL)
return NULL;
wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC);
wpabuf_put_u8(buf, action);
wpabuf_put_u8(buf, dialog_token);
return buf;
} | gas_build_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpabuf *gas_build_resp(u8 action, u8 dialog_token, u16 status_code, u8 frag_id,
u8 more, u16 comeback_delay, size_t size) {
char v8;
wpabuf *buf;
buf = wpabuf_alloc(size + 100);
if (!buf)
return 0;
wpabuf_put_u8_51(buf, 4u);
wpabuf_put_u8_51(buf, action);
wpabuf_put_u8_51(buf, ... | static struct wpabuf *gas_build_resp(u8 action, u8 dialog_token,
u16 status_code, u8 frag_id, u8 more,
u16 comeback_delay, size_t size) {
struct wpabuf *buf;
buf = wpabuf_alloc(100 + size);
if (buf == NULL)
return NULL;
wpabuf_put_u... | gas_build_resp | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
gas_dialog_info *gas_dialog_create(hostapd_data *hapd, const u8 *addr,
u8 dialog_token) {
u8 v4;
int i;
int ia;
int j;
sta_info *sta;
gas_dialog_info *dia;
sta = ap_get_sta(hapd, addr);
if (sta) {
ap_sta_replenish_timeout(hapd, sta, 5u);
} else {
wpa_printf(... | static struct gas_dialog_info *
gas_dialog_create(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token) {
struct sta_info *sta;
struct gas_dialog_info *dia = NULL;
int i, j;
sta = ap_get_sta(hapd, addr);
if (!sta) {
wpa_printf(MSG_DEBUG, "ANQP: Add a temporary STA entry for "
... | gas_dialog_create | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
gas_query_ap *gas_query_ap_init(hostapd_data *hapd, void *msg_ctx) {
gas_query_ap *gas;
gas = (gas_query_ap *)os_zalloc(0x28u);
if (!gas)
return 0;
gas->hapd = hapd;
gas->msg_ctx = msg_ctx;
dl_list_init_12(&gas->pending);
return gas;
} | struct gas_query_ap *gas_query_ap_init(struct hostapd_data *hapd,
void *msg_ctx) {
struct gas_query_ap *gas;
gas = os_zalloc(sizeof(*gas));
if (!gas)
return NULL;
gas->hapd = hapd;
gas->msg_ctx = msg_ctx;
dl_list_init(&gas->pending);
return gas;
} | gas_query_ap_init | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_query_ap_req(gas_query_ap *gas, const u8 *dst, int freq, wpabuf *req,
void (*cb)(void *, const u8 *, u8, gas_query_ap_result,
const wpabuf *, const wpabuf *, u16),
void *ctx) {
int dialog_token;
gas_query_pending *query;
if (!gas |... | int gas_query_ap_req(struct gas_query_ap *gas, const u8 *dst, int freq,
struct wpabuf *req,
void (*cb)(void *ctx, const u8 *dst, u8 dialog_token,
enum gas_query_ap_result result,
const struct wpabuf *adv_proto,
... | gas_query_ap_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_query_ap_rx(gas_query_ap *gas, const u8 *sa, u8 categ, const u8 *data,
size_t len, int freq) {
int v7;
int v8;
int v9;
int v10;
int v11;
int v12;
int v13;
u8 frag_id;
u8 more_frags;
u8 action;
u8 dialog_token;
u16 comeback_delay;
u16 resp_len;
_BOOL4 prot;
int p... | int gas_query_ap_rx(struct gas_query_ap *gas, const u8 *sa, u8 categ,
const u8 *data, size_t len, int freq) {
struct gas_query_pending *query;
u8 action, dialog_token, frag_id = 0, more_frags = 0;
u16 comeback_delay, resp_len;
const u8 *pos, *adv_proto;
int prot, pmf;
unsigned int left;
... | gas_query_ap_rx | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_query_ap_tx_status(gas_query_ap *gas, const u8 *dst, const u8 *data,
size_t data_len, int ok) {
int dur;
gas_query_pending *query;
if (gas && gas->current) {
query = gas->current;
dur = ms_from_time(&query->last_oper);
wpa_printf(2,
"GAS: TX status:... | void gas_query_ap_tx_status(struct gas_query_ap *gas, const u8 *dst,
const u8 *data, size_t data_len, int ok) {
struct gas_query_pending *query;
int dur;
if (!gas || !gas->current) {
wpa_printf(MSG_DEBUG,
"GAS: Unexpected TX status: dst=" MACSTR
" ok=... | gas_query_ap_tx_status | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_query_deinit(gas_query *gas) {
gas_query_pending *query;
gas_query_pending *next;
if (gas) {
query = (gas_query_pending *)gas->pending.next;
next = (gas_query_pending *)query->list.next;
while (query != (gas_query_pending *)&gas->pending) {
gas_query_done_0(gas, query,
... | void gas_query_deinit(struct gas_query *gas) {
struct gas_query_pending *query, *next;
if (gas == NULL)
return;
dl_list_for_each_safe(query, next, &gas->pending, struct gas_query_pending,
list)
gas_query_done(gas, query, GAS_QUERY_DELETED_AT_DEINIT);
os_free(gas);
} | gas_query_deinit | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
gas_query *gas_query_init(wpa_supplicant *wpa_s) {
gas_query *gas;
gas = (gas_query *)os_zalloc(0x48u);
if (!gas)
return 0;
gas->wpa_s = wpa_s;
dl_list_init_17(&gas->pending);
return gas;
} | struct gas_query *gas_query_init(struct wpa_supplicant *wpa_s) {
struct gas_query *gas;
gas = os_zalloc(sizeof(*gas));
if (gas == NULL)
return NULL;
gas->wpa_s = wpa_s;
dl_list_init(&gas->pending);
return gas;
} | gas_query_init | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_query_req(gas_query *gas, const u8 *dst, int freq, int wildcard_bssid,
int maintain_addr, wpabuf *req,
void (*cb)(void *, const u8 *, u8, gas_query_result,
const wpabuf *, const wpabuf *, u16),
void *ctx) {
int dialog_token;
... | int gas_query_req(struct gas_query *gas, const u8 *dst, int freq,
int wildcard_bssid, int maintain_addr, struct wpabuf *req,
void (*cb)(void *ctx, const u8 *dst, u8 dialog_token,
enum gas_query_result result,
const struct wpab... | gas_query_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_query_rx(gas_query *gas, const u8 *da, const u8 *sa, const u8 *bssid,
u8 categ, const u8 *data, size_t len, int freq) {
int v9;
int v10;
int v11;
int v12;
int v13;
int v14;
int v16;
u8 frag_id;
u8 more_frags;
u8 action;
u8 dialog_token;
u16 comeback_delay;
u16 resp_len... | int gas_query_rx(struct gas_query *gas, const u8 *da, const u8 *sa,
const u8 *bssid, u8 categ, const u8 *data, size_t len,
int freq) {
struct gas_query_pending *query;
u8 action, dialog_token, frag_id = 0, more_frags = 0;
u16 comeback_delay, resp_len;
const u8 *pos, *adv_proto;... | gas_query_rx | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_query_set_sa(gas_query *gas, gas_query_pending *query) {
long v2;
const char *v3;
const char *v4;
const char *v5;
wpa_supplicant *wpa_s;
os_reltime now;
unsigned long v9;
v9 = __readfsqword(0x28u);
wpa_s = gas->wpa_s;
if ((*((_BYTE *)query + 32) & 0x10) == 0 && wpa_s->conf->gas_rand_mac_add... | static int gas_query_set_sa(struct gas_query *gas,
struct gas_query_pending *query) {
struct wpa_supplicant *wpa_s = gas->wpa_s;
struct os_reltime now;
if (query->maintain_addr || !wpa_s->conf->gas_rand_mac_addr ||
!(wpa_s->current_bss
? (wpa_s->drv_flags & WPA_DRIVE... | gas_query_set_sa | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_query_start_cb(wpa_radio_work *work, int deinit) {
gas_query_pending *query;
gas_query *gas;
wpa_supplicant *wpa_s;
query = (gas_query_pending *)work->ctx;
gas = query->gas;
wpa_s = gas->wpa_s;
if (deinit) {
if ((*((_BYTE *)work + 56) & 1) != 0) {
gas->work = 0;
gas_query_done_0(... | static void gas_query_start_cb(struct wpa_radio_work *work, int deinit) {
struct gas_query_pending *query = work->ctx;
struct gas_query *gas = query->gas;
struct wpa_supplicant *wpa_s = gas->wpa_s;
if (deinit) {
if (work->started) {
gas->work = NULL;
gas_query_done(gas, query, GAS_QUERY_DELETED... | gas_query_start_cb | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_query_stop(gas_query *gas, u8 dialog_token) {
gas_query_pending *query;
for (query = (gas_query_pending *)gas->pending.next;;
query = (gas_query_pending *)query->list.next) {
if (query == (gas_query_pending *)&gas->pending)
return -1;
if (dialog_token == query->dialog_token)
brea... | int gas_query_stop(struct gas_query *gas, u8 dialog_token) {
struct gas_query_pending *query;
dl_list_for_each(query, &gas->pending, struct gas_query_pending, list) {
if (query->dialog_token == dialog_token) {
if (!gas->work) {
radio_remove_pending_work(gas->wpa_s, query);
}
gas_quer... | gas_query_stop | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_query_tx_status(wpa_supplicant *wpa_s, unsigned int freq,
const u8 *dst, const u8 *src, const u8 *bssid,
const u8 *data, size_t data_len,
offchannel_send_action_result result) {
long v8;
long v9;
long v10;
long v11;
long v12;
... | static void gas_query_tx_status(struct wpa_supplicant *wpa_s, unsigned int freq,
const u8 *dst, const u8 *src, const u8 *bssid,
const u8 *data, size_t data_len,
enum offchannel_send_action_result result) {
struct gas_query... | gas_query_tx_status | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_request(wpa_supplicant *wpa_s, char *cmd) {
u8 *v3;
u8 *v4;
int ret;
int used;
wpabuf *query;
char *pos;
char *posa;
size_t len;
size_t lena;
size_t lenb;
size_t lenc;
char *end;
wpabuf *advproto;
u8 dst_addr[6];
unsigned long v17;
v17 = __readfsqword(0x28u);
query = 0;
ret ... | static int gas_request(struct wpa_supplicant *wpa_s, char *cmd) {
u8 dst_addr[ETH_ALEN];
struct wpabuf *advproto, *query = NULL;
int used, ret = -1;
char *pos, *end;
size_t len;
used = hwaddr_aton2(cmd, dst_addr);
if (used < 0)
return -1;
pos = cmd + used;
while (*pos == ' ')
pos++;
end =... | gas_request | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_resp_cb(void *ctx, const u8 *addr, u8 dialog_token,
gas_query_result result, const wpabuf *adv_proto,
const wpabuf *resp, u16 status_code) {
int v7;
wpabuf *n;
if (resp)
v7 = wpabuf_len_21(resp);
else
v7 = -1;
wpa_msg(ctx, 3,
"GAS-RESPONSE-INFO add... | static void gas_resp_cb(void *ctx, const u8 *addr, u8 dialog_token,
enum gas_query_result result,
const struct wpabuf *adv_proto,
const struct wpabuf *resp, u16 status_code) {
struct wpa_supplicant *wpa_s = ctx;
struct wpabuf *n;
wpa_msg(wpa... | gas_resp_cb | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_response_get(wpa_supplicant *wpa_s, char *cmd, char *buf,
size_t buflen) {
const u8 *v5;
int used;
int dialog_token;
int ret;
char *pos;
const char *posa;
char *posb;
size_t start;
size_t requested_len;
wpabuf *resp;
size_t resp_len;
u8 addr[6];
unsigned long v20;
... | static int gas_response_get(struct wpa_supplicant *wpa_s, char *cmd, char *buf,
size_t buflen) {
u8 addr[ETH_ALEN];
int dialog_token;
int used;
char *pos;
size_t resp_len, start, requested_len;
struct wpabuf *resp;
int ret;
used = hwaddr_aton2(cmd, addr);
if (used < 0)
... | gas_response_get | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_send_request(wpa_supplicant *wpa_s, const u8 *dst,
const wpabuf *adv_proto, const wpabuf *query) {
char v5;
u16 v6;
int ret;
signed int freq;
int res;
size_t len;
wpa_bss *bss;
wpabuf *buf;
ret = 0;
freq = wpa_s->assoc_freq;
bss = wpa_bss_get_bssid(wpa_s, dst);
if (... | int gas_send_request(struct wpa_supplicant *wpa_s, const u8 *dst,
const struct wpabuf *adv_proto,
const struct wpabuf *query) {
struct wpabuf *buf;
int ret = 0;
int freq;
struct wpa_bss *bss;
int res;
size_t len;
u8 query_resp_len_limit = 0;
freq = wpa_s->assoc... | gas_send_request | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpabuf *gas_serv_build_gas_resp_payload(
hostapd_data *hapd, unsigned int request, const u8 *home_realm,
size_t home_realm_len, const u8 *icon_name, size_t icon_name_len,
const u16 *extra_req, unsigned int num_extra_req) {
size_t required_len;
unsigned int i;
size_t len;
wpabuf *buf;
len = 1400;
... | static struct wpabuf *gas_serv_build_gas_resp_payload(
struct hostapd_data *hapd, unsigned int request, const u8 *home_realm,
size_t home_realm_len, const u8 *icon_name, size_t icon_name_len,
const u16 *extra_req, unsigned int num_extra_req) {
struct wpabuf *buf;
size_t len;
unsigned int i;
len = 1... | gas_serv_build_gas_resp_payload | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_serv_req_dpp_processing(hostapd_data *hapd, const u8 *sa,
u8 dialog_token, int prot, wpabuf *buf) {
size_t v5;
u16 v6;
size_t v7;
const u8 *v8;
u16 comeback_delay;
wpabuf *tx_buf;
gas_dialog_info *di_0;
if (wpabuf_len_54(buf) > hapd->conf->gas_frag_limit ||
... | void gas_serv_req_dpp_processing(struct hostapd_data *hapd, const u8 *sa,
u8 dialog_token, int prot,
struct wpabuf *buf) {
struct wpabuf *tx_buf;
if (wpabuf_len(buf) > hapd->conf->gas_frag_limit ||
hapd->conf->gas_comeback_delay) {
struct ... | gas_serv_req_dpp_processing | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_serv_req_local_processing(hostapd_data *hapd, const u8 *sa,
u8 dialog_token, anqp_query_info *qi,
int prot, int std_addr3) {
size_t v6;
const u8 *v7;
u16 comeback_delay;
wpabuf *tx_buf;
wpabuf *buf;
gas_dialog_info *di_0;
buf ... | static void gas_serv_req_local_processing(struct hostapd_data *hapd,
const u8 *sa, u8 dialog_token,
struct anqp_query_info *qi, int prot,
int std_addr3) {
struct wpabuf *buf, *tx_buf;
buf =... | gas_serv_req_local_processing | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_serv_rx_gas_comeback_req(hostapd_data *hapd, const u8 *sa,
const u8 *data, size_t len, int prot,
int std_addr3) {
const u8 *v6;
int v7;
size_t v8;
const u8 *v9;
u8 dialog_token;
int more;
wpabuf *tx_buf;
size_t frag_len;
gas_... | static void gas_serv_rx_gas_comeback_req(struct hostapd_data *hapd,
const u8 *sa, const u8 *data,
size_t len, int prot, int std_addr3) {
struct gas_dialog_info *dialog;
struct wpabuf *buf, *tx_buf;
u8 dialog_token;
size_t frag_len... | gas_serv_rx_gas_comeback_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_serv_rx_gas_initial_req(hostapd_data *hapd, const u8 *sa,
const u8 *data, size_t len, int prot,
int std_addr3) {
const u8 *v6;
unsigned char *v7;
size_t v8;
const u8 *v9;
u8 dialog_token;
u16 slen;
u16 slena;
u16 info_id;
u16 e... | static void gas_serv_rx_gas_initial_req(struct hostapd_data *hapd, const u8 *sa,
const u8 *data, size_t len, int prot,
int std_addr3) {
const u8 *pos = data;
const u8 *end = data + len;
const u8 *next;
u8 dialog_token;
u16 slen;
... | gas_serv_rx_gas_initial_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_serv_rx_public_action(void *ctx, const u8 *buf, size_t len, int freq) {
int v4;
size_t lenb;
int std_addr3;
_BOOL4 prot;
const u8 *sa;
if (len > 0x19 && (buf[24] == 4 || buf[24] == 9)) {
prot = buf[24] == 9;
sa = buf + 10;
if (*(_DWORD *)(*((_QWORD *)ctx + 2) + 1144LL) == 1) {
st... | static void gas_serv_rx_public_action(void *ctx, const u8 *buf, size_t len,
int freq) {
struct hostapd_data *hapd = ctx;
const struct ieee80211_mgmt *mgmt;
const u8 *sa, *data;
int prot, std_addr3;
mgmt = (const struct ieee80211_mgmt *)buf;
if (len < IEEE80211_HDRLEN +... | gas_serv_rx_public_action | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_serv_write_dpp_adv_proto(wpabuf *buf) {
wpabuf_put_u8_41(buf, 0x6Cu);
wpabuf_put_u8_41(buf, 8u);
wpabuf_put_u8_41(buf, 0x7Fu);
wpabuf_put_u8_41(buf, 0xDDu);
wpabuf_put_u8_41(buf, 5u);
wpabuf_put_be24_4(buf, 0x506F9Au);
wpabuf_put_u8_41(buf, 0x1Au);
wpabuf_put_u8_41(buf, 1u);
} | static void gas_serv_write_dpp_adv_proto(struct wpabuf *buf) {
wpabuf_put_u8(buf, WLAN_EID_ADV_PROTO);
wpabuf_put_u8(buf, 8);
wpabuf_put_u8(buf, 0x7f);
wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC);
wpabuf_put_u8(buf, 5);
wpabuf_put_be24(buf, OUI_WFA);
wpabuf_put_u8(buf, DPP_OUI_TYPE);
wpabuf_put_u8(buf,... | gas_serv_write_dpp_adv_proto | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_server_deinit(gas_server *gas) {
gas_server *handler;
gas_server_handler *tmp;
gas_server_response *response;
gas_server_response *tmp_r;
if (gas) {
handler = (gas_server *)gas->handlers.next;
tmp = (gas_server_handler *)gas->handlers.next->next;
while (handler != gas) {
dl_list_de... | void gas_server_deinit(struct gas_server *gas) {
struct gas_server_handler *handler, *tmp;
struct gas_server_response *response, *tmp_r;
if (!gas)
return;
dl_list_for_each_safe(handler, tmp, &gas->handlers, struct gas_server_handler,
list) {
dl_list_del(&handler->list);
os_... | gas_server_deinit | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_server_free_response(gas_server_response *response) {
if (response) {
wpa_printf(2, "DPP: Free GAS response @%p", response);
eloop_cancel_timeout((eloop_timeout_handler)gas_server_response_timeout,
response, 0);
wpabuf_free(response->resp);
free(response);
}
} | static void gas_server_free_response(struct gas_server_response *response) {
if (!response)
return;
wpa_printf(MSG_DEBUG, "DPP: Free GAS response @%p", response);
eloop_cancel_timeout(gas_server_response_timeout, response, NULL);
wpabuf_free(response->resp);
os_free(response);
} | gas_server_free_response | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_server_handle_rx_comeback_req(gas_server_response *response) {
long v1;
size_t v2;
u8 frag_id;
const u8 *v4;
unsigned int wait_time;
size_t resp_frag_len;
wpabuf *resp;
gas_server_handler *handler;
gas_server *gas;
size_t max_len;
size_t hdr_len;
size_t remaining;
handler = response-... | static void
gas_server_handle_rx_comeback_req(struct gas_server_response *response) {
struct gas_server_handler *handler = response->handler;
struct gas_server *gas = handler->gas;
size_t max_len = (response->freq > 56160) ? 928 : 1400;
size_t hdr_len = 24 + 2 + 6 + 3 + handler->adv_proto_id_len + 2;
size_t r... | gas_server_handle_rx_comeback_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_server_handle_tx_status(gas_server_response *response, int ack) {
size_t offset;
if (ack && response->resp &&
(offset = response->offset, offset < wpabuf_len_71(response->resp))) {
wpa_printf(2, "GAS: More fragments remaining - keep pending entry");
} else if (ack && !response->resp && respons... | static void gas_server_handle_tx_status(struct gas_server_response *response,
int ack) {
if (ack && response->resp && response->offset < wpabuf_len(response->resp)) {
wpa_printf(MSG_DEBUG, "GAS: More fragments remaining - keep pending entry");
return;
}
if (ack && ... | gas_server_handle_tx_status | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
gas_server *gas_server_init(void *ctx, void (*tx)(void *, int, const u8 *,
wpabuf *, unsigned int)) {
gas_server *gas;
gas = (gas_server *)os_zalloc(0x30u);
if (!gas)
return 0;
gas->ctx = ctx;
gas->tx = tx;
dl_list_init_16(&gas->handlers);
dl_list_ini... | struct gas_server *gas_server_init(void *ctx,
void (*tx)(void *ctx, int freq, const u8 *da,
struct wpabuf *buf,
unsigned int wait_time)) {
struct gas_server *gas;
gas = os_zalloc(sizeof(*g... | gas_server_init | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_server_register(gas_server *gas, const u8 *adv_proto_id,
u8 adv_proto_id_len,
wpabuf *(*req_cb)(void *, void *, const u8 *,
const u8 *, size_t, u16 *),
void (*status_cb)(void *, wpabuf *, int), void... | int gas_server_register(
struct gas_server *gas, const u8 *adv_proto_id, u8 adv_proto_id_len,
struct wpabuf *(*req_cb)(void *ctx, void *resp_ctx, const u8 *sa,
const u8 *query, size_t query_len,
u16 *comeback_delay),
void (*status_cb)(void *ctx, stru... | gas_server_register | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
bool gas_server_response_sent(gas_server *gas, void *resp_ctx) {
size_t offset;
bool result;
gas_server_response *tmp;
for (tmp = (gas_server_response *)gas->responses.next;;
tmp = (gas_server_response *)tmp->list.next) {
if (tmp == (gas_server_response *)&gas->responses)
return 0;
if (tmp... | bool gas_server_response_sent(struct gas_server *gas, void *resp_ctx) {
struct gas_server_response *tmp;
dl_list_for_each(tmp, &gas->responses, struct gas_server_response, list) {
if (tmp == resp_ctx)
return tmp->resp && tmp->offset == wpabuf_len(tmp->resp);
}
return false;
} | gas_server_response_sent | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_server_response_timeout(void *eloop_ctx, void *user_ctx) {
size_t v2;
if (*((_QWORD *)eloop_ctx + 4))
v2 = wpabuf_len_71(*((const wpabuf **)eloop_ctx + 4));
else
v2 = 0;
wpa_printf(
2,
"GAS: Response @%p timeout for %02x:%02x:%02x:%02x:%02x:%02x "
"(dialog_token=%u freq=%d fr... | static void gas_server_response_timeout(void *eloop_ctx, void *user_ctx) {
struct gas_server_response *response = eloop_ctx;
wpa_printf(
MSG_DEBUG,
"GAS: Response @%p timeout for " MACSTR
" (dialog_token=%u freq=%d frag_id=%u sent=%lu/%lu) - drop pending data",
response, MAC2STR(response->d... | gas_server_response_timeout | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_server_rx(gas_server *gas, const u8 *da, const u8 *sa, const u8 *bssid,
u8 categ, const u8 *data, size_t len, int freq) {
int v9;
int v10;
int v11;
int v12;
int v13;
int v14;
const char *v15;
int v16;
int v17;
int v18;
int v19;
int v20;
u8 action;
u8 dialog_token;
... | int gas_server_rx(struct gas_server *gas, const u8 *da, const u8 *sa,
const u8 *bssid, u8 categ, const u8 *data, size_t len,
int freq) {
u8 action, dialog_token;
const u8 *pos, *end;
if (!gas || len < 2)
return -1;
if (categ == WLAN_ACTION_PROTECTED_DUAL)
return -1;... | gas_server_rx | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_server_rx_comeback_req(gas_server *gas, const u8 *da, const u8 *sa,
const u8 *bssid, int freq, u8 dialog_token) {
gas_server_response *response;
for (response = (gas_server_response *)gas->responses.next;
response != (gas_server_response *)&gas->responses;
respo... | static int gas_server_rx_comeback_req(struct gas_server *gas, const u8 *da,
const u8 *sa, const u8 *bssid, int freq,
u8 dialog_token) {
struct gas_server_response *response;
dl_list_for_each(response, &gas->responses, struct gas_server_res... | gas_server_rx_comeback_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_server_rx_initial_req(gas_server *gas, const u8 *da, const u8 *sa,
const u8 *bssid, int freq, u8 dialog_token,
const u8 *data, size_t len) {
long v8;
long v9;
long v10;
const u8 *v12;
u8 adv_proto_len;
u16 comeback_delay;
u16 query_req_le... | static int gas_server_rx_initial_req(struct gas_server *gas, const u8 *da,
const u8 *sa, const u8 *bssid, int freq,
u8 dialog_token, const u8 *data,
size_t len) {
const u8 *pos, *end, *adv_proto, *query_req;... | gas_server_rx_initial_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_server_send_resp(gas_server *gas, gas_server_handler *handler,
gas_server_response *response, const u8 *da, int freq,
u8 dialog_token, wpabuf *query_resp,
u16 comeback_delay) {
long v8;
wpabuf *v9;
unsigned int v10;
u16 comeb... | static void gas_server_send_resp(struct gas_server *gas,
struct gas_server_handler *handler,
struct gas_server_response *response,
const u8 *da, int freq, u8 dialog_token,
struct wpabuf *q... | gas_server_send_resp | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int gas_server_set_resp(gas_server *gas, void *resp_ctx, wpabuf *resp) {
gas_server *tmp;
gas_server_response *response;
response = 0;
for (tmp = (gas_server *)gas->responses.next;
tmp != (gas_server *)&gas->responses;
tmp = (gas_server *)tmp->handlers.next) {
if (tmp == resp_ctx) {
res... | int gas_server_set_resp(struct gas_server *gas, void *resp_ctx,
struct wpabuf *resp) {
struct gas_server_response *tmp, *response = NULL;
dl_list_for_each(tmp, &gas->responses, struct gas_server_response, list) {
if (tmp == resp_ctx) {
response = tmp;
break;
}
}
if ... | gas_server_set_resp | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void gas_server_tx_status(gas_server *gas, const u8 *dst, const u8 *data,
size_t data_len, int ack) {
const char *v5;
u8 code;
u8 dialog_token;
gas_server_response *response;
if (data_len > 0x1A) {
code = data[25];
dialog_token = data[26];
if (data[24] == 4 && (code == 1... | void gas_server_tx_status(struct gas_server *gas, const u8 *dst, const u8 *data,
size_t data_len, int ack) {
const u8 *pos;
u8 action, code, dialog_token;
struct gas_server_response *response;
if (data_len < 24 + 3)
return;
pos = data + 24;
action = *pos++;
code = *pos++;
... | gas_server_tx_status | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const char *get_ac_str(u8 ac) {
if (ac == 3)
return "VO";
if (ac > 3u)
return "N/A";
if (ac == 2)
return "VI";
if (ac > 2u)
return "N/A";
if (ac)
return "BK";
return "BE";
} | static const char *get_ac_str(u8 ac) {
switch (ac) {
case WMM_AC_BE:
return "BE";
case WMM_AC_BK:
return "BK";
case WMM_AC_VI:
return "VI";
case WMM_AC_VO:
return "VO";
default:
return "N/A";
}
} | get_ac_str | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
unsigned int get_akm_suites_info(nlattr *tb) {
unsigned int v2;
int i;
unsigned int key_mgmt;
int num;
u32 *akms;
key_mgmt = 0;
if (!tb)
return 0;
num = (unsigned long)(int)nla_len(tb) >> 2;
akms = (u32 *)nla_data(tb);
for (i = 0; i < num; ++i) {
v2 = akms[i];
if (v2 == 1349491202) {
... | static unsigned int get_akm_suites_info(struct nlattr *tb) {
int i, num;
unsigned int key_mgmt = 0;
u32 *akms;
if (!tb)
return 0;
num = nla_len(tb) / sizeof(u32);
akms = nla_data(tb);
for (i = 0; i < num; i++) {
switch (akms[i]) {
case RSN_AUTH_KEY_MGMT_UNSPEC_802_1X:
key_mgmt |= WPA_D... | get_akm_suites_info | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
DBusMessage *get_all_properties(DBusMessage *message, char *interface,
wpa_dbus_object_desc *obj_dsc) {
DBusMessage *reply;
DBusMessage *replya;
DBusError error;
DBusMessageIter iter;
DBusMessageIter dict_iter;
unsigned long v10;
v10 = __readfsqword(0x28u);
reply = (DBus... | static DBusMessage *get_all_properties(DBusMessage *message, char *interface,
struct wpa_dbus_object_desc *obj_dsc) {
DBusMessage *reply;
DBusMessageIter iter, dict_iter;
DBusError error;
reply = dbus_message_new_method_return(message);
if (reply == NULL)
return wpa... | get_all_properties | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_anqp(wpa_supplicant *wpa_s, char *dst) {
int freq;
u32 subtypes;
u32 mbo_subtypes;
int used;
int num_0;
int num;
char *pos;
char *posa;
char *posb;
size_t num_id;
u16 id[105];
u8 dst_addr[6];
unsigned long v15;
v15 = __readfsqword(0x28u);
freq = 0;
num_id = 0;
subtypes = 0;
... | static int get_anqp(struct wpa_supplicant *wpa_s, char *dst) {
u8 dst_addr[ETH_ALEN];
int used, freq = 0;
char *pos;
#define MAX_ANQP_INFO_ID 100
u16 id[MAX_ANQP_INFO_ID];
size_t num_id = 0;
u32 subtypes = 0;
u32 mbo_subtypes = 0;
used = hwaddr_aton2(dst, dst_addr);
if (used < 0)
return -1;
pos... | get_anqp | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int *get_bss_freqs_in_ess(wpa_supplicant *wpa_s) {
int num_freqs;
int max_freqs;
wpa_bss *bss;
int *freqs;
wpa_bss *cbss;
unsigned long v7;
v7 = __readfsqword(0x28u);
max_freqs = 10;
num_freqs = 0;
freqs = (int *)os_calloc_14(0xBu, 4u);
if (!freqs)
return 0;
cbss = wpa_s->current_bss;
for... | static int *get_bss_freqs_in_ess(struct wpa_supplicant *wpa_s) {
struct wpa_bss *bss, *cbss;
const int max_freqs = 10;
int *freqs;
int num_freqs = 0;
freqs = os_calloc(max_freqs + 1, sizeof(int));
if (freqs == NULL)
return NULL;
cbss = wpa_s->current_bss;
dl_list_for_each(bss, &wpa_s->bss, struct... | get_bss_freqs_in_ess | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpa_bss *get_bss_helper(bss_handler_args *args, DBusError *error,
const char *func_name) {
wpa_bss *res;
res = wpa_bss_get_id(args->wpa_s, args->id);
if (!res) {
wpa_printf(5, "%s[dbus]: no bss with id %d found", func_name, args->id);
dbus_set_error(error, "org.freedesktop.DBus.Er... | static struct wpa_bss *get_bss_helper(struct bss_handler_args *args,
DBusError *error, const char *func_name) {
struct wpa_bss *res = wpa_bss_get_id(args->wpa_s, args->id);
if (!res) {
wpa_printf(MSG_ERROR, "%s[dbus]: no bss with id %d found", func_name,
arg... | get_bss_helper | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_center_160mhz(hostapd_hw_modes *mode, u8 channel,
const u8 *center_channels, size_t num_chan) {
unsigned int i;
if (mode->mode != hostapd_hw_mode_HOSTAPD_MODE_IEEE80211A)
return 0;
for (i = 0; num_chan > i; ++i) {
if (channel >= center_channels[i] - 14 &&
channel <= ... | static int get_center_160mhz(struct hostapd_hw_modes *mode, u8 channel,
const u8 *center_channels, size_t num_chan) {
unsigned int i;
if (mode->mode != HOSTAPD_MODE_IEEE80211A)
return 0;
for (i = 0; i < num_chan; i++) {
if (channel >= center_channels[i] - 14 &&
chan... | get_center_160mhz | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_center_80mhz(hostapd_hw_modes *mode, u8 channel,
const u8 *center_channels, size_t num_chan) {
size_t i;
if (mode->mode != hostapd_hw_mode_HOSTAPD_MODE_IEEE80211A)
return 0;
for (i = 0; i < num_chan; ++i) {
if (channel >= center_channels[i] - 6 && channel <= center_channels[i... | static int get_center_80mhz(struct hostapd_hw_modes *mode, u8 channel,
const u8 *center_channels, size_t num_chan) {
size_t i;
if (mode->mode != HOSTAPD_MODE_IEEE80211A)
return 0;
for (i = 0; i < num_chan; i++) {
if (channel >= center_channels[i] - 6 && channel <= center_cha... | get_center_80mhz | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const char *get_direction_str(u8 direction) {
if (direction == 3)
return "Bi-directional";
if (direction <= 3u) {
if (!direction)
return "Uplink";
if (direction == 1)
return "Downlink";
}
return "N/A";
} | static const char *get_direction_str(u8 direction) {
switch (direction) {
case WMM_AC_DIR_DOWNLINK:
return "Downlink";
case WMM_AC_DIR_UPLINK:
return "Uplink";
case WMM_AC_DIR_BIDIRECTIONAL:
return "Bi-directional";
default:
return "N/A";
}
} | get_direction_str | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
ieee80211_edmg_config get_edmg_intersection(ieee80211_edmg_config a,
ieee80211_edmg_config b,
u8 primary_channel) {
int i;
int contiguous;
int max_contiguous;
ieee80211_edmg_config result;
contiguous = 0;
max_contiguous... | static struct ieee80211_edmg_config
get_edmg_intersection(struct ieee80211_edmg_config a,
struct ieee80211_edmg_config b, u8 primary_channel) {
struct ieee80211_edmg_config result;
int i, contiguous = 0;
int max_contiguous = 0;
result.channels = b.channels & a.channels;
if (!result.chan... | get_edmg_intersection | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpa_bss *get_first_acceptable(wpa_supplicant *wpa_s) {
unsigned int i;
neighbor_report *nei;
for (i = 0; i < wpa_s->wnm_num_neighbor_report; ++i) {
nei = &wpa_s->wnm_neighbor_report_elements[i];
if ((*((_BYTE *)nei + 50) & 0x40) != 0)
return wpa_bss_get_bssid(wpa_s, nei->bssid);
}
return 0;
} | static struct wpa_bss *get_first_acceptable(struct wpa_supplicant *wpa_s) {
unsigned int i;
struct neighbor_report *nei;
for (i = 0; i < wpa_s->wnm_num_neighbor_report; i++) {
nei = &wpa_s->wnm_neighbor_report_elements[i];
if (nei->acceptable)
return wpa_bss_get_bssid(wpa_s, nei->bssid);
}
ret... | get_first_acceptable | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_hs20_anqp(wpa_supplicant *wpa_s, char *dst) {
u32 subtypes;
int used;
int num;
char *pos;
char *posa;
u8 dst_addr[6];
unsigned long v9;
v9 = __readfsqword(0x28u);
subtypes = 0;
used = hwaddr_aton2(dst, dst_addr);
if (used < 0)
return -1;
pos = &dst[used];
if (*pos == 32)
++pos... | static int get_hs20_anqp(struct wpa_supplicant *wpa_s, char *dst) {
u8 dst_addr[ETH_ALEN];
int used;
char *pos;
u32 subtypes = 0;
used = hwaddr_aton2(dst, dst_addr);
if (used < 0)
return -1;
pos = dst + used;
if (*pos == ' ')
pos++;
for (;;) {
int num = atoi(pos);
if (num <= 0 || num ... | get_hs20_anqp | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_hs20_icon(wpa_supplicant *wpa_s, char *cmd, char *reply, int buflen) {
size_t v5;
int v6;
char *cmda;
int used;
char *ctx;
char *icon;
char *poffset;
char *psize;
u8 dst_addr[6];
unsigned long v16;
v16 = __readfsqword(0x28u);
ctx = 0;
used = hwaddr_aton2(cmd, dst_addr);
if (used < 0... | static int get_hs20_icon(struct wpa_supplicant *wpa_s, char *cmd, char *reply,
int buflen) {
u8 dst_addr[ETH_ALEN];
int used;
char *ctx = NULL, *icon, *poffset, *psize;
used = hwaddr_aton2(cmd, dst_addr);
if (used < 0)
return -1;
cmd += used;
icon = str_token(cmd, " ", &ctx)... | get_hs20_icon | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_hs20_version(wpa_bss *bss) {
const u8 *ie;
if (!bss)
return 0;
ie = wpa_bss_get_vendor_ie(bss, 0x506F9A10u);
if (ie && ie[1] > 4u)
return ((ie[6] >> 4) & 0xF) + 1;
else
return 0;
} | int get_hs20_version(struct wpa_bss *bss) {
const u8 *ie;
if (!bss)
return 0;
ie = wpa_bss_get_vendor_ie(bss, HS20_IE_VENDOR_TYPE);
if (!ie || ie[1] < 5)
return 0;
return ((ie[6] >> 4) & 0x0f) + 1;
} | get_hs20_version | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpa_supplicant *get_iface_by_dbus_path(wpa_global *global, const char *path) {
wpa_supplicant *wpa_s;
for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) {
if (wpa_s->dbus_new_path && !strcmp(wpa_s->dbus_new_path, path))
return wpa_s;
}
return 0;
} | static struct wpa_supplicant *get_iface_by_dbus_path(struct wpa_global *global,
const char *path) {
struct wpa_supplicant *wpa_s;
for (wpa_s = global->ifaces; wpa_s; wpa_s = wpa_s->next) {
if (wpa_s->dbus_new_path && os_strcmp(wpa_s->dbus_new_path, path) == ... | get_iface_by_dbus_path | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
wpa_bss *get_mbo_transition_candidate(wpa_supplicant *wpa_s,
mbo_transition_reject_reason *reason) {
unsigned int i;
unsigned int ia;
unsigned int ib;
unsigned int ic;
wpa_bss *target;
wpa_bss_candidate_info *info;
neighbor_report *nei;
u8 *first_candidate_bssid;
... | static struct wpa_bss *
get_mbo_transition_candidate(struct wpa_supplicant *wpa_s,
enum mbo_transition_reject_reason *reason) {
struct wpa_bss *target = NULL;
struct wpa_bss_trans_info params;
struct wpa_bss_candidate_info *info = NULL;
struct neighbor_report *nei = wpa_s->wnm_neigh... | get_mbo_transition_candidate | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
hostapd_hw_modes *get_mode(hostapd_hw_modes *modes, u16 num_modes,
hostapd_hw_mode mode, bool is_6ghz) {
u16 i;
if (!modes)
return 0;
for (i = 0; i < num_modes; ++i) {
if (mode == modes[i].mode && modes[i].num_channels && modes[i].channels &&
(!is_6ghz && !is_6ghz_freq(... | struct hostapd_hw_modes *get_mode(struct hostapd_hw_modes *modes, u16 num_modes,
enum hostapd_hw_mode mode, bool is_6ghz) {
u16 i;
if (!modes)
return NULL;
for (i = 0; i < num_modes; i++) {
if (modes[i].mode != mode || !modes[i].num_channels || !modes[i].channels)
... | get_mode | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
hostapd_hw_modes *get_mode_with_freq(hostapd_hw_modes *modes, u16 num_modes,
int freq) {
int i;
int j;
for (i = 0; i < num_modes; ++i) {
for (j = 0; j < modes[i].num_channels; ++j) {
if (freq == modes[i].channels[j].freq)
return &modes[i];
}
}
return... | struct hostapd_hw_modes *get_mode_with_freq(struct hostapd_hw_modes *modes,
u16 num_modes, int freq) {
int i, j;
for (i = 0; i < num_modes; i++) {
for (j = 0; j < modes[i].num_channels; j++) {
if (freq == modes[i].channels[j].freq)
return &modes[i];
... | get_mode_with_freq | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_peer_hwaddr_helper(DBusMessage *message, const char *func_name,
u8 *peer_address, DBusMessage **error) {
long v4;
DBusMessage **errora;
const char *peer_string[2];
peer_string[1] = (const char *)__readfsqword(0x28u);
*error = 0;
if ((unsigned int)dbus_message_get_args(mes... | static int get_peer_hwaddr_helper(DBusMessage *message, const char *func_name,
u8 *peer_address, DBusMessage **error) {
const char *peer_string;
*error = NULL;
if (!dbus_message_get_args(message, NULL, DBUS_TYPE_STRING, &peer_string,
DBUS_TYPE_INVAL... | get_peer_hwaddr_helper | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_peer_mbies(const char *params, char *buf, size_t buflen) {
size_t v3;
const u8 *v4;
char *endp;
fst_group *g;
fst_iface *iface;
const wpabuf *mbies;
u8 peer_addr[6];
char ifname[40];
unsigned long v13;
v13 = __readfsqword(0x28u);
iface = 0;
if (fst_read_next_text_param(params, ifname, 0... | static int get_peer_mbies(const char *params, char *buf, size_t buflen) {
char *endp;
char ifname[FST_MAX_INTERFACE_SIZE];
u8 peer_addr[ETH_ALEN];
struct fst_group *g;
struct fst_iface *iface = NULL;
const struct wpabuf *mbies;
if (fst_read_next_text_param(params, ifname, sizeof(ifname), &endp) ||
... | get_peer_mbies | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_shared_radio_freqs(wpa_supplicant *wpa_s, int *freq_array,
unsigned int len) {
int i;
int num;
wpa_used_freq_data *freqs_data;
memset(freq_array, 0, 4LL * len);
freqs_data = (wpa_used_freq_data *)os_calloc_14(len, 8u);
if (!freqs_data)
return -1;
num = get_shared_ra... | int get_shared_radio_freqs(struct wpa_supplicant *wpa_s, int *freq_array,
unsigned int len) {
struct wpa_used_freq_data *freqs_data;
int num, i;
os_memset(freq_array, 0, sizeof(int) * len);
freqs_data = os_calloc(len, sizeof(struct wpa_used_freq_data));
if (!freqs_data)
return... | get_shared_radio_freqs | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int get_shared_radio_freqs_data(wpa_supplicant *wpa_s,
wpa_used_freq_data *freqs_data,
unsigned int len) {
unsigned int v3;
int v4;
int freq;
unsigned int idx;
unsigned int i;
wpa_supplicant *ifs;
u8 bssid[6];
unsigned long v13;
v13 = __... | int get_shared_radio_freqs_data(struct wpa_supplicant *wpa_s,
struct wpa_used_freq_data *freqs_data,
unsigned int len) {
struct wpa_supplicant *ifs;
u8 bssid[ETH_ALEN];
int freq;
unsigned int idx = 0, i;
wpa_dbg(wpa_s, MSG_DEBUG, "Determining sh... | get_shared_radio_freqs_data | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
ieee80211_edmg_config get_supported_edmg(wpa_supplicant *wpa_s,
hostapd_freq_params *freq,
ieee80211_edmg_config request_edmg) {
u8 primary_channel;
hostapd_hw_mode hw_mode;
hostapd_hw_modes *mode;
unsigned long v7;
ieee80211_ed... | static struct ieee80211_edmg_config
get_supported_edmg(struct wpa_supplicant *wpa_s,
struct hostapd_freq_params *freq,
struct ieee80211_edmg_config request_edmg) {
enum hostapd_hw_mode hw_mode;
struct hostapd_hw_modes *mode = NULL;
u8 primary_channel;
if (!wpa_s->hw.modes)... | get_supported_edmg | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
const u8 *get_vendor_ie(const u8 *ies, size_t len, u32 vendor_type) {
const element *elem;
for (elem = (const element *)ies;
&ies[len] - (const u8 *)elem > 1 &&
&ies[len] - (const u8 *)elem >= elem->datalen + 2;
elem = (const element *)((char *)elem + elem->datalen + 2)) {
if (elem->id == ... | const u8 *get_vendor_ie(const u8 *ies, size_t len, u32 vendor_type) {
const struct element *elem;
for_each_element_id(elem, WLAN_EID_VENDOR_SPECIFIC, ies, len) {
if (elem->datalen >= 4 && vendor_type == WPA_GET_BE32(elem->data))
return &elem->id;
}
return NULL;
} | get_vendor_ie | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int handle_action(hostapd_data *hapd, const ieee80211_mgmt *mgmt, size_t len,
unsigned int freq) {
int result;
u16 seq_ctrl;
sta_info *sta;
ieee80211_mgmt *resp;
if (len <= 0x1A) {
hostapd_logger(hapd, mgmt->sa, 1u, 1,
"handle_action - too short payload (len=%lu)", le... | static int handle_action(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len,
unsigned int freq) {
struct sta_info *sta;
u8 *action __maybe_unused;
if (len < IEEE80211_HDRLEN + 2 + 1) {
hostapd_logger(
hapd, mgmt->sa, HOSTAPD_MODU... | handle_action | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_action_cb(hostapd_data *hapd, const ieee80211_mgmt *mgmt,
size_t len, int ok) {
if (!is_multicast_ether_addr_4(mgmt->da)) {
if (len > 0x1D && mgmt->u.beacon.timestamp[0] == 4 &&
mgmt->u.beacon.timestamp[1] == 9 &&
WPA_GET_BE24_11(&mgmt->u.beacon.timestamp[2]) == 5... | static void handle_action_cb(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len,
int ok) {
struct sta_info *sta;
const struct rrm_measurement_report_element *report;
if (is_multicast_ether_addr(mgmt->da))
return;
#ifdef CONFIG_DP... | handle_action_cb | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_assoc(hostapd_data *hapd, const ieee80211_mgmt *mgmt, size_t len,
int reassoc, int rssi) {
size_t v5;
const char *v6;
const char *v7;
u32 flags;
int aid;
int v10;
char v11;
u32 v12;
u32 v13;
const char *v14;
int capab_info;
u16 reply_res;
u16 fc;
u16 seq_ctrl;
... | static void handle_assoc(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len,
int reassoc, int rssi) {
u16 capab_info, listen_interval, seq_ctrl, fc;
int resp = WLAN_STATUS_SUCCESS;
u16 reply_res = WLAN_STATUS_UNSPECIFIED_FAILURE;
const u8 *... | handle_assoc | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_assoc_cb(hostapd_data *hapd, const ieee80211_mgmt *mgmt, size_t len,
int reassoc, int ok) {
u32 flags;
u32 v6;
size_t v7;
const u8 *v8;
u16 status;
_BOOL4 new_assoc;
sta_info *sta;
os_reltime now;
os_reltime age;
char ifname_wds[24];
unsigned long v18;
v18 = __r... | static void handle_assoc_cb(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len,
int reassoc, int ok) {
u16 status;
struct sta_info *sta;
int new_assoc = 1;
sta = ap_get_sta(hapd, mgmt->da);
if (!sta) {
wpa_printf(MSG_INFO, "han... | handle_assoc_cb | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_auth(hostapd_data *hapd, const ieee80211_mgmt *mgmt, size_t len,
int rssi, int from_queue) {
const char *v5;
const char *v6;
const char *v7;
int ieee80211ac;
int secondary_channel;
unsigned int freq;
u8 *v11;
u8 *v12;
u8 *v13;
u32 flags;
u16 v15;
u8 op_class;
u8 ch... | static void handle_auth(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len, int rssi,
int from_queue) {
u16 auth_alg, auth_transaction, status_code;
u16 resp = WLAN_STATUS_SUCCESS;
struct sta_info *sta = NULL;
int res, reply_res;
u16 fc;
... | handle_auth | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_auth_cb(hostapd_data *hapd, const ieee80211_mgmt *mgmt, size_t len,
int ok) {
bool success_status;
ieee80211_mgmt_$1A5EAEE4254064C9532380220564CC4F_$E5600CD80BBC10BE76C4DF662C356128
auth_alg;
sta_info *sta;
sta = ap_get_sta(hapd, mgmt->da);
if (!sta) {
wpa_printf(2, ... | static void handle_auth_cb(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len,
int ok) {
u16 auth_alg, auth_transaction, status_code;
struct sta_info *sta;
bool success_status;
sta = ap_get_sta(hapd, mgmt->da);
if (!sta) {
wpa_pr... | handle_auth_cb | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_auth_fils(hostapd_data *hapd, sta_info *sta, const u8 *pos,
size_t len, u16 auth_alg, u16 auth_transaction,
u16 status_code,
void (*cb)(hostapd_data *, sta_info *, u16, wpabuf *,
int)) {
size_t v8;
const u... | void handle_auth_fils(struct hostapd_data *hapd, struct sta_info *sta,
const u8 *pos, size_t len, u16 auth_alg,
u16 auth_transaction, u16 status_code,
void (*cb)(struct hostapd_data *hapd,
struct sta_info *sta, u16 resp,
... | handle_auth_fils | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_auth_fils_finish(hostapd_data *hapd, sta_info *sta, u16 resp,
wpabuf *data, int pub) {
short v5;
size_t v6;
const u8 *v7;
u16 v8;
u16 auth_alg;
if (pub || resp == 77)
v5 = 5;
else
v5 = 4;
auth_alg = v5;
if (data)
v6 = wpabuf_len_51(data);
else
... | static void handle_auth_fils_finish(struct hostapd_data *hapd,
struct sta_info *sta, u16 resp,
struct wpabuf *data, int pub) {
u16 auth_alg;
auth_alg = (pub || resp == WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED)
? WLAN_AUTH... | handle_auth_fils_finish | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_auth_sae(hostapd_data *hapd, sta_info *sta,
const ieee80211_mgmt *mgmt, size_t len,
u16 auth_transaction, u16 status_code) {
const char *v6;
u16 v7;
u16 v8;
sae_temporary_data *tmp;
u16 v10;
_BOOL4 v11;
const char *v12;
const char *v13;
size_t v14;... | static void handle_auth_sae(struct hostapd_data *hapd, struct sta_info *sta,
const struct ieee80211_mgmt *mgmt, size_t len,
u16 auth_transaction, u16 status_code) {
int resp = WLAN_STATUS_SUCCESS;
struct wpabuf *data = NULL;
int *groups = hapd->conf->sae_gro... | handle_auth_sae | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_deauth_cb(hostapd_data *hapd, const ieee80211_mgmt *mgmt,
size_t len, int ok) {
sta_info *sta;
if (!is_multicast_ether_addr_4(mgmt->da)) {
sta = ap_get_sta(hapd, mgmt->da);
if (sta) {
if (ok)
wpa_printf(2, "STA %02x:%02x:%02x:%02x:%02x:%02x acknowledged deaut... | static void handle_deauth_cb(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len,
int ok) {
struct sta_info *sta;
if (is_multicast_ether_addr(mgmt->da))
return;
sta = ap_get_sta(hapd, mgmt->da);
if (!sta) {
wpa_printf(MSG_DEB... | handle_deauth_cb | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_dhcp(int sock, void *eloop_ctx, void *sock_ctx) {
int *v3;
char *v4;
int len;
wpa_event_data event;
unsigned char buf[3000];
unsigned long v8;
v8 = __readfsqword(0x28u);
len = recv(sock, buf, 0xBB8u, 0);
if (len >= 0) {
if (len > 43) {
wpa_printf(1,
"Got DHCP br... | static void handle_dhcp(int sock, void *eloop_ctx, void *sock_ctx) {
int len;
unsigned char buf[3000];
struct dhcp_message *msg;
u8 *mac_address;
union wpa_event_data event;
len = recv(sock, buf, sizeof(buf), 0);
if (len < 0) {
wpa_printf(MSG_ERROR, "recv: %s", strerror(errno));
return;
}
if... | handle_dhcp | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_disassoc(hostapd_data *hapd, const ieee80211_mgmt *mgmt,
size_t len) {
sta_info *sta;
if (len > 0x19) {
wpa_printf(
2, "disassocation: STA=%02x:%02x:%02x:%02x:%02x:%02x reason_code=%d",
mgmt->sa[0], mgmt->sa[1], mgmt->sa[2], mgmt->sa[3], mgmt->sa[4],
mgm... | static void handle_disassoc(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len) {
struct sta_info *sta;
if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.disassoc)) {
wpa_printf(MSG_INFO, "handle_disassoc - too short payload (len=%lu)",
(unsigned long)... | handle_disassoc | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_disassoc_cb(hostapd_data *hapd, const ieee80211_mgmt *mgmt,
size_t len, int ok) {
sta_info *sta;
if (!is_multicast_ether_addr_4(mgmt->da)) {
sta = ap_get_sta(hapd, mgmt->da);
if (sta) {
if (ok)
wpa_printf(2, "STA %02x:%02x:%02x:%02x:%02x:%02x acknowledged d... | static void handle_disassoc_cb(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len,
int ok) {
struct sta_info *sta;
if (is_multicast_ether_addr(mgmt->da))
return;
sta = ap_get_sta(hapd, mgmt->da);
if (!sta) {
wpa_printf(M... | handle_disassoc_cb | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int handle_dpp_remove_bi(hostapd_iface *iface, void *ctx) {
size_t i;
hostapd_data *hapd;
for (i = 0; i < iface->num_bss; ++i) {
hapd = iface->bss[i];
if (ctx == hapd->dpp_chirp_bi)
hostapd_dpp_chirp_stop(hapd);
}
return 0;
} | static int handle_dpp_remove_bi(struct hostapd_iface *iface, void *ctx) {
struct dpp_bootstrap_info *bi = ctx;
size_t i;
for (i = 0; i < iface->num_bss; i++) {
struct hostapd_data *hapd = iface->bss[i];
if (bi == hapd->dpp_chirp_bi)
hostapd_dpp_chirp_stop(hapd);
}
return 0;
} | handle_dpp_remove_bi | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_eap(hostapd_data *hapd, sta_info *sta, u8 *buf, size_t len) {
int v4;
const char *v5;
int v6;
u16 eap_len;
if (len > 3) {
eap_len = _bswap_16_12(*((_WORD *)buf + 1));
v4 = buf[1];
v5 = eap_code_str(*buf);
wpa_printf(2, "EAP: code=%d (%s) identifier=%d length=%d", *buf, v5, v4,
... | static void handle_eap(struct hostapd_data *hapd, struct sta_info *sta, u8 *buf,
size_t len) {
struct eap_hdr *eap;
u16 eap_len;
if (len < sizeof(*eap)) {
wpa_printf(MSG_INFO, " too short EAP packet");
return;
}
eap = (struct eap_hdr *)buf;
eap_len = be_to_host16(eap->len... | handle_eap | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_eap_initiate(hostapd_data *hapd, sta_info *sta, eap_hdr *eap,
size_t len) {
;
} | static void handle_eap_initiate(struct hostapd_data *hapd, struct sta_info *sta,
struct eap_hdr *eap, size_t len) {
#ifdef CONFIG_ERP
u8 type, *data;
struct eapol_state_machine *sm = sta->eapol_sm;
if (!sm)
return;
if (len < sizeof(*eap) + 1) {
wpa_printf(MSG_INFO, "%s:... | handle_eap_initiate | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_eap_response(hostapd_data *hapd, sta_info *sta, eap_hdr *eap,
size_t len) {
const char *name;
__uint16_t v5;
eap_eapol_interface *eap_if;
u8 type;
eapol_state_machine *sm;
eap_hdr *data;
sm = sta->eapol_sm;
if (sm) {
data = eap + 1;
if (len > 4) {
type... | static void handle_eap_response(struct hostapd_data *hapd, struct sta_info *sta,
struct eap_hdr *eap, size_t len) {
u8 type, *data;
struct eapol_state_machine *sm = sta->eapol_sm;
if (!sm)
return;
data = (u8 *)(eap + 1);
if (len < sizeof(*eap) + 1) {
wpa_printf(MSG_I... | handle_eap_response | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_eapol(int sock, void *eloop_ctx, void *sock_ctx) {
int *v3;
char *v4;
socklen_t fromlen;
int len;
wpa_driver_nl80211_data *drv;
sockaddr_ll lladdr;
unsigned char buf[3000];
unsigned long v10;
v10 = __readfsqword(0x28u);
drv = (wpa_driver_nl80211_data *)eloop_ctx;
fromlen = 20;
len =... | static void handle_eapol(int sock, void *eloop_ctx, void *sock_ctx) {
struct wpa_driver_nl80211_data *drv = eloop_ctx;
struct sockaddr_ll lladdr;
unsigned char buf[3000];
int len;
socklen_t fromlen = sizeof(lladdr);
len =
recvfrom(sock, buf, sizeof(buf), 0, (struct sockaddr *)&lladdr, &fromlen);
if... | handle_eapol | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_monitor_read(int sock, void *eloop_ctx, void *sock_ctx) {
int *v3;
char *v4;
int len;
int datarate;
int ssi_signal;
int injected;
int failed;
int rxflags;
int ret;
ieee80211_radiotap_iterator iter;
unsigned char buf[3000];
unsigned long v14;
v14 = __readfsqword(0x28u);
datarate ... | static void handle_monitor_read(int sock, void *eloop_ctx, void *sock_ctx) {
struct wpa_driver_nl80211_data *drv = eloop_ctx;
int len;
unsigned char buf[3000];
struct ieee80211_radiotap_iterator iter;
int ret;
int datarate = 0, ssi_signal = 0;
int injected = 0, failed = 0, rxflags = 0;
len = recv(sock,... | handle_monitor_read | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void handle_probe_req(hostapd_data *hapd, const ieee80211_mgmt *mgmt,
size_t len, int ssi_signal) {
const char *v4;
int v5;
int v6;
int v7;
int v8;
const char *v9;
_BOOL4 v10;
unsigned int cs_c_off_proberesp;
size_t v12;
unsigned int cs_c_off_ecsa_proberesp;
size_t v14;
u16... | void handle_probe_req(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len,
int ssi_signal) {
u8 *resp;
struct ieee802_11_elems elems;
const u8 *ie;
size_t ie_len;
size_t i, resp_len;
int noack;
enum ssid_match_result res;
int ret;
u16 cs... | handle_probe_req | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int has_proto_match(const u8 *pos, const u8 *end, u8 proto) {
while (end - pos > 3) {
if (proto == *pos && pos[3] == 1)
return 1;
pos += 4;
}
return 0;
} | static int has_proto_match(const u8 *pos, const u8 *end, u8 proto) {
while (end - pos >= 4) {
if (pos[0] == proto && pos[3] == 1)
return 1;
pos += 4;
}
return 0;
} | has_proto_match | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int has_proto_port_match(const u8 *pos, const u8 *end, u8 proto, u16 port) {
while (end - pos > 3) {
if (proto == *pos && port == WPA_GET_LE16_16(pos + 1) && pos[3] == 1)
return 1;
pos += 4;
}
return 0;
} | static int has_proto_port_match(const u8 *pos, const u8 *end, u8 proto,
u16 port) {
while (end - pos >= 4) {
if (pos[0] == proto && WPA_GET_LE16(&pos[1]) == port && pos[3] == 1)
return 1;
pos += 4;
}
return 0;
} | has_proto_port_match | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int hmac_sha256_kdf(const u8 *secret, size_t secret_len, const char *label,
const u8 *seed, size_t seed_len, u8 *out, size_t outlen) {
u8 iter;
size_t pos;
size_t clen;
const unsigned char *addr[4];
size_t len[4];
u8 T[40];
unsigned long v17;
v17 = __readfsqword(0x28u);
iter = 1;
... | int hmac_sha256_kdf(const u8 *secret, size_t secret_len, const char *label,
const u8 *seed, size_t seed_len, u8 *out, size_t outlen) {
u8 T[SHA256_MAC_LEN];
u8 iter = 1;
const unsigned char *addr[4];
size_t len[4];
size_t pos, clen;
addr[0] = T;
len[0] = SHA256_MAC_LEN;
if (label) {... | hmac_sha256_kdf | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int hmac_sha384_kdf(const u8 *secret, size_t secret_len, const char *label,
const u8 *seed, size_t seed_len, u8 *out, size_t outlen) {
u8 iter;
size_t pos;
size_t clen;
const unsigned char *addr[4];
size_t len[4];
u8 T[56];
unsigned long v17;
v17 = __readfsqword(0x28u);
iter = 1;
... | int hmac_sha384_kdf(const u8 *secret, size_t secret_len, const char *label,
const u8 *seed, size_t seed_len, u8 *out, size_t outlen) {
u8 T[SHA384_MAC_LEN];
u8 iter = 1;
const unsigned char *addr[4];
size_t len[4];
size_t pos, clen;
addr[0] = T;
len[0] = SHA384_MAC_LEN;
if (label) {... | hmac_sha384_kdf | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int hmac_sha512_kdf(const u8 *secret, size_t secret_len, const char *label,
const u8 *seed, size_t seed_len, u8 *out, size_t outlen) {
u8 iter;
size_t pos;
size_t clen;
const unsigned char *addr[4];
size_t len[4];
u8 T[72];
unsigned long v17;
v17 = __readfsqword(0x28u);
iter = 1;
... | int hmac_sha512_kdf(const u8 *secret, size_t secret_len, const char *label,
const u8 *seed, size_t seed_len, u8 *out, size_t outlen) {
u8 T[SHA512_MAC_LEN];
u8 iter = 1;
const unsigned char *addr[4];
size_t len[4];
size_t pos, clen;
addr[0] = T;
len[0] = SHA512_MAC_LEN;
if (label) {... | hmac_sha512_kdf | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
hostapd_hw_modes *hostap_get_hw_feature_data(void *priv, u16 *num_modes,
u16 *flags, u8 *dfs) {
int i;
int rlen;
hostapd_hw_modes *mode;
short chan2freq[20];
unsigned long v11;
v11 = __readfsqword(0x28u);
chan2freq[0] = 2412;
chan2freq[1] = 2417;
chan2freq... | static struct hostapd_hw_modes *
hostap_get_hw_feature_data(void *priv, u16 *num_modes, u16 *flags, u8 *dfs) {
struct hostapd_hw_modes *mode;
int i, clen, rlen;
const short chan2freq[14] = {2412, 2417, 2422, 2427, 2432, 2437, 2442,
2447, 2452, 2457, 2462, 2467, 2472, 2484};
mode ... | hostap_get_hw_feature_data | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int hostap_init_sockets(hostap_driver_data *drv, u8 *own_addr) {
uint16_t v2;
int *v3;
char *v4;
int *v6;
char *v7;
int *v8;
char *v9;
sockaddr_ll addr;
ifreq ifr;
unsigned long v12;
v12 = __readfsqword(0x28u);
v2 = htons(3u);
drv->sock = socket(17, 3, v2);
if (drv->sock >= 0) {
if (elo... | static int hostap_init_sockets(struct hostap_driver_data *drv, u8 *own_addr) {
struct ifreq ifr;
struct sockaddr_ll addr;
drv->sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
if (drv->sock < 0) {
wpa_printf(MSG_ERROR, "socket[PF_PACKET,SOCK_RAW]: %s", strerror(errno));
return -1;
}
if (eloop... | hostap_init_sockets | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int hostap_send_eapol(void *priv, const u8 *addr, const u8 *data,
size_t data_len, int encrypt, const u8 *own_addr,
u32 flags) {
int *v8;
char *v9;
int *v10;
int res;
size_t len;
ieee80211_hdr *hdr;
len = data_len + 32;
hdr = (ieee80211_hdr *)os_zalloc(data_l... | static int hostap_send_eapol(void *priv, const u8 *addr, const u8 *data,
size_t data_len, int encrypt, const u8 *own_addr,
u32 flags) {
struct hostap_driver_data *drv = priv;
struct ieee80211_hdr *hdr;
size_t len;
u8 *pos;
int res;
len = sizeof(*hdr... | hostap_send_eapol | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int hostap_set_ap_wps_ie(void *priv, const wpabuf *beacon,
const wpabuf *proberesp, const wpabuf *assocresp) {
size_t v4;
const void *v5;
free(*((void **)priv + 9));
*((_QWORD *)priv + 9) = 0;
*((_QWORD *)priv + 10) = 0;
if (proberesp) {
v4 = wpabuf_len_79(proberesp);
v5 = ... | static int hostap_set_ap_wps_ie(void *priv, const struct wpabuf *beacon,
const struct wpabuf *proberesp,
const struct wpabuf *assocresp) {
struct hostap_driver_data *drv = priv;
os_free(drv->wps_ie);
drv->wps_ie = NULL;
drv->wps_ie_len = 0;
if (... | hostap_set_ap_wps_ie | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int hostap_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr,
u16 reason) {
ieee80211_mgmt mgmt;
unsigned long v8;
v8 = __readfsqword(0x28u);
if (is_broadcast_ether_addr_8(addr))
return 0;
memset(&mgmt, 0, sizeof(mgmt));
mgmt.frame_control = 192;
*(_DWORD *)mgmt.da = *(_... | static int hostap_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr,
u16 reason) {
struct hostap_driver_data *drv = priv;
struct ieee80211_mgmt mgmt;
if (is_broadcast_ether_addr(addr)) {
return 0;
}
memset(&mgmt, 0, sizeof(mgmt));
mgmt.frame_control = IEEE80211_FC... | hostap_sta_deauth | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void hostapd_2040_coex_action(hostapd_data *hapd, const ieee80211_mgmt *mgmt,
size_t len) {
const char *v3;
const char *v4;
const char *v5;
const char *v6;
const char *v7;
const char *v8;
u8 ielen;
u8 chan;
int is_ht40_allowed;
int i;
int delay_time;
const u8 *data;... | void hostapd_2040_coex_action(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len) {
struct hostapd_iface *iface = hapd->iface;
struct ieee80211_2040_bss_coex_ie *bc_ie;
struct ieee80211_2040_intol_chan_report *ic_report;
int is_ht40_allowed = 1;
int i;
con... | hostapd_2040_coex_action | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
void hostapd_acl_deinit(hostapd_data *hapd) {
hostapd_acl_query_data *query;
hostapd_acl_query_data *prev;
query = hapd->acl_queries;
hapd->acl_queries = 0;
while (query) {
prev = query;
query = query->next;
hostapd_acl_query_free(prev);
}
} | void hostapd_acl_deinit(struct hostapd_data *hapd) {
struct hostapd_acl_query_data *query, *prev;
#ifndef CONFIG_NO_RADIUS
hostapd_acl_cache_free(hapd->acl_cache);
hapd->acl_cache = NULL;
#endif
query = hapd->acl_queries;
hapd->acl_queries = NULL;
while (query) {
prev = query;
query = query->next;... | hostapd_acl_deinit | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int hostapd_acl_init(hostapd_data *hapd) { return 0; } | int hostapd_acl_init(struct hostapd_data *hapd) {
#ifndef CONFIG_NO_RADIUS
if (radius_client_register(hapd->radius, RADIUS_AUTH, hostapd_acl_recv_radius,
hapd))
return -1;
#endif
return 0;
} | hostapd_acl_init | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
int hostapd_add_iface(hapd_interfaces *interfaces, char *buf) {
hostapd_iface **iface;
size_t count;
char *v5;
const char *v6;
hostapd_config *conf;
hostapd_iface *hapd_iface;
hostapd_iface *new_iface;
size_t i;
size_t ia;
size_t j;
const char *conf_file;
const char *driver;
char *ptr;
char ... | int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf) {
struct hostapd_config *conf = NULL;
struct hostapd_iface *hapd_iface = NULL, *new_iface = NULL;
struct hostapd_data *hapd;
char *ptr;
size_t i, j;
const char *conf_file = NULL, *phy_name = NULL;
if (os_strncmp(buf, "bss_config=", 11) ... | hostapd_add_iface | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
hostapd_data *hostapd_alloc_bss_data(hostapd_iface *hapd_iface,
hostapd_config *conf,
hostapd_bss_config *bss) {
hostapd_data *hapd;
hapd = (hostapd_data *)os_zalloc(0xE60u);
if (!hapd)
return 0;
hapd->new_assoc_sta_cb =
(void ... | struct hostapd_data *hostapd_alloc_bss_data(struct hostapd_iface *hapd_iface,
struct hostapd_config *conf,
struct hostapd_bss_config *bss) {
struct hostapd_data *hapd;
hapd = os_zalloc(sizeof(*hapd));
if (hapd == NULL)
re... | hostapd_alloc_bss_data | wpa_supplicant-2.10-r1 | net-wireless | O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.