input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int hostapd_ctrl_iface_attach(hostapd_data *hapd, sockaddr_storage *from,
socklen_t fromlen, const char *input) {
return ctrl_iface_attach(&hapd->ctrl_dst, from, fromlen, input);
} | static int hostapd_ctrl_iface_attach(struct hostapd_data *hapd,
struct sockaddr_storage *from,
socklen_t fromlen, const char *input) {
return ctrl_iface_attach(&hapd->ctrl_dst, from, fromlen, input);
} | hostapd_ctrl_iface_attach | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_bss_tm_req(hostapd_data *hapd, const char *cmd) {
u16 v3;
u8 *v4;
u8 req_mode;
u8 valid_int;
u8 dialog_token;
unsigned int disassoc_timer;
int nei_len;
int ret;
char *url;
size_t len;
sta_info *sta;
char *pos;
char *posa;
char *posb;
char *posc;
char *posd;
const... | static int hostapd_ctrl_iface_bss_tm_req(struct hostapd_data *hapd,
const char *cmd) {
u8 addr[ETH_ALEN];
const char *pos, *end;
int disassoc_timer = 0;
struct sta_info *sta;
u8 req_mode = 0, valid_int = 0x01, dialog_token = 0x01;
u8 bss_term_dur[12];
char *url = N... | hostapd_ctrl_iface_bss_tm_req | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_chan_switch(hostapd_iface *iface, char *pos) {
u8 chan;
int dfs_range;
unsigned int i;
int bandwidth;
int ret;
csa_settings settings;
unsigned long v9;
v9 = __readfsqword(0x28u);
dfs_range = 0;
ret = hostapd_parse_csa_settings(pos, &settings);
if (ret)
return ret;
ret... | static int hostapd_ctrl_iface_chan_switch(struct hostapd_iface *iface,
char *pos) {
#ifdef NEED_AP_MLME
struct csa_settings settings;
int ret;
int dfs_range = 0;
unsigned int i;
int bandwidth;
u8 chan;
ret = hostapd_parse_csa_settings(pos, &settings);
if (ret)
... | hostapd_ctrl_iface_chan_switch | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_coloc_intf_req(hostapd_data *hapd, const char *cmd) {
int auto_report;
int timeout;
sta_info *sta;
char *pos;
u8 addr[6];
unsigned long v8;
v8 = __readfsqword(0x28u);
if (hwaddr_aton(cmd, addr)) {
wpa_printf(2, "Invalid STA MAC address");
return -1;
} else {
sta = a... | static int hostapd_ctrl_iface_coloc_intf_req(struct hostapd_data *hapd,
const char *cmd) {
u8 addr[ETH_ALEN];
struct sta_info *sta;
const char *pos;
unsigned int auto_report, timeout;
if (hwaddr_aton(cmd, addr)) {
wpa_printf(MSG_DEBUG, "Invalid STA MAC address... | hostapd_ctrl_iface_coloc_intf_req | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_deauthenticate(hostapd_data *hapd, const char *txtaddr) {
u16 reason;
int encrypt;
char *pos;
char *posa;
sta_info *sta;
ieee80211_mgmt mgmt;
u8 addr[6];
unsigned long v10;
v10 = __readfsqword(0x28u);
reason = 2;
wpa_msg(hapd->msg_ctx, 2, "CTRL_IFACE DEAUTHENTICATE %s", txt... | int hostapd_ctrl_iface_deauthenticate(struct hostapd_data *hapd,
const char *txtaddr) {
u8 addr[ETH_ALEN];
struct sta_info *sta;
const char *pos;
u16 reason = WLAN_REASON_PREV_AUTH_NOT_VALID;
wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "CTRL_IFACE DEAUTHENTICATE %s", txtaddr);
... | hostapd_ctrl_iface_deauthenticate | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_ctrl_iface_deinit(hostapd_data *hapd) {
int *v1;
char *v2;
wpa_ctrl_dst *dst;
wpa_ctrl_dst *prev;
char *fname;
if (hapd->ctrl_sock >= 0) {
eloop_unregister_read_sock(hapd->ctrl_sock);
close(hapd->ctrl_sock);
hapd->ctrl_sock = -1;
fname = hostapd_ctrl_iface_path(hapd);
if (f... | void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd) {
struct wpa_ctrl_dst *dst, *prev;
if (hapd->ctrl_sock > -1) {
#ifndef CONFIG_CTRL_IFACE_UDP
char *fname;
#endif
eloop_unregister_read_sock(hapd->ctrl_sock);
close(hapd->ctrl_sock);
hapd->ctrl_sock = -1;
#ifndef CONFIG_CTRL_IFACE_UDP
fn... | hostapd_ctrl_iface_deinit | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_detach(hostapd_data *hapd, sockaddr_storage *from,
socklen_t fromlen) {
return ctrl_iface_detach(&hapd->ctrl_dst, from, fromlen);
} | static int hostapd_ctrl_iface_detach(struct hostapd_data *hapd,
struct sockaddr_storage *from,
socklen_t fromlen) {
return ctrl_iface_detach(&hapd->ctrl_dst, from, fromlen);
} | hostapd_ctrl_iface_detach | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_disable(hostapd_iface *iface) {
if (hostapd_disable_iface(iface) >= 0)
return 0;
wpa_printf(5, "Disabling of interface failed");
return -1;
} | static int hostapd_ctrl_iface_disable(struct hostapd_iface *iface) {
if (hostapd_disable_iface(iface) < 0) {
wpa_printf(MSG_ERROR, "Disabling of interface failed");
return -1;
}
return 0;
} | hostapd_ctrl_iface_disable | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_disassoc_imminent(hostapd_data *hapd, const char *cmd) {
int disassoc_timer;
sta_info *sta;
u8 addr[6];
unsigned long v6;
v6 = __readfsqword(0x28u);
if (hwaddr_aton(cmd, addr))
return -1;
if (cmd[17] != 32)
return -1;
disassoc_timer = atoi(cmd + 17);
sta = ap_get_sta(ha... | static int hostapd_ctrl_iface_disassoc_imminent(struct hostapd_data *hapd,
const char *cmd) {
u8 addr[ETH_ALEN];
int disassoc_timer;
struct sta_info *sta;
if (hwaddr_aton(cmd, addr))
return -1;
if (cmd[17] != ' ')
return -1;
disassoc_timer = atoi(cmd ... | hostapd_ctrl_iface_disassoc_imminent | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_disassociate(hostapd_data *hapd, const char *txtaddr) {
u16 reason;
int encrypt;
char *pos;
char *posa;
sta_info *sta;
ieee80211_mgmt mgmt;
u8 addr[6];
unsigned long v10;
v10 = __readfsqword(0x28u);
reason = 2;
wpa_msg(hapd->msg_ctx, 2, "CTRL_IFACE DISASSOCIATE %s", txtaddr... | int hostapd_ctrl_iface_disassociate(struct hostapd_data *hapd,
const char *txtaddr) {
u8 addr[ETH_ALEN];
struct sta_info *sta;
const char *pos;
u16 reason = WLAN_REASON_PREV_AUTH_NOT_VALID;
wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "CTRL_IFACE DISASSOCIATE %s", txtaddr);
if (hw... | hostapd_ctrl_iface_disassociate | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_dup_param(hostapd_data *src_hapd, hostapd_data *dst_hapd,
const char *param) {
int res;
int resa;
char *value;
value = (char *)os_zalloc(0x100u);
if (value) {
if (!strcmp(param, "wpa")) {
snprintf(value, 0x100u, "%d", src_hapd->conf->wpa);
... | static int hostapd_ctrl_iface_dup_param(struct hostapd_data *src_hapd,
struct hostapd_data *dst_hapd,
const char *param) {
int res;
char *value;
value = os_zalloc(HOSTAPD_CLI_DUP_VALUE_MAX_LEN);
if (!value) {
wpa_printf(MSG_ERR... | hostapd_ctrl_iface_dup_param | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_eapol_reauth(hostapd_data *hapd, const char *cmd) {
sta_info *sta;
u8 addr[6];
unsigned long v5;
v5 = __readfsqword(0x28u);
if (hwaddr_aton(cmd, addr))
return -1;
sta = ap_get_sta(hapd, addr);
if (!sta || !sta->eapol_sm)
return -1;
eapol_auth_reauthenticate(sta->eapol_sm)... | static int hostapd_ctrl_iface_eapol_reauth(struct hostapd_data *hapd,
const char *cmd) {
u8 addr[ETH_ALEN];
struct sta_info *sta;
if (hwaddr_aton(cmd, addr))
return -1;
sta = ap_get_sta(hapd, addr);
if (!sta || !sta->eapol_sm)
return -1;
eapol_auth_reaut... | hostapd_ctrl_iface_eapol_reauth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_eapol_set(hostapd_data *hapd, char *cmd) {
char *v3;
char *pos;
char *posa;
sta_info *sta;
u8 addr[6];
unsigned long v8;
v8 = __readfsqword(0x28u);
if (hwaddr_aton(cmd, addr) || cmd[17] != 32)
return -1;
pos = strchr(cmd + 18, 32);
if (!pos)
return -1;
v3 = pos;
p... | static int hostapd_ctrl_iface_eapol_set(struct hostapd_data *hapd, char *cmd) {
u8 addr[ETH_ALEN];
struct sta_info *sta;
char *pos = cmd, *param;
if (hwaddr_aton(pos, addr) || pos[17] != ' ')
return -1;
pos += 18;
param = pos;
pos = os_strchr(pos, ' ');
if (!pos)
return -1;
*pos++ = '\0';
... | hostapd_ctrl_iface_eapol_set | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_enable(hostapd_iface *iface) {
if (hostapd_enable_iface(iface) >= 0)
return 0;
wpa_printf(5, "Enabling of interface failed");
return -1;
} | static int hostapd_ctrl_iface_enable(struct hostapd_iface *iface) {
if (hostapd_enable_iface(iface) < 0) {
wpa_printf(MSG_ERROR, "Enabling of interface failed");
return -1;
}
return 0;
} | hostapd_ctrl_iface_enable | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_ess_disassoc(hostapd_data *hapd, const char *cmd) {
unsigned int disassoc_timer;
sta_info *sta;
char *url;
u8 addr[6];
unsigned long v7;
v7 = __readfsqword(0x28u);
if (hwaddr_aton(cmd, addr))
return -1;
sta = ap_get_sta(hapd, addr);
if (sta) {
if (cmd[17] == 32) {
... | static int hostapd_ctrl_iface_ess_disassoc(struct hostapd_data *hapd,
const char *cmd) {
u8 addr[ETH_ALEN];
const char *url, *timerstr;
int disassoc_timer;
struct sta_info *sta;
if (hwaddr_aton(cmd, addr))
return -1;
sta = ap_get_sta(hapd, addr);
if (sta ==... | hostapd_ctrl_iface_ess_disassoc | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_ctrl_iface_flush(hapd_interfaces *interfaces) {
dpp_global_clear(interfaces->dpp);
} | static void hostapd_ctrl_iface_flush(struct hapd_interfaces *interfaces) {
#ifdef CONFIG_WPS_TESTING
wps_version_number = 0x20;
wps_testing_stub_cred = 0;
wps_corrupt_pkhash = 0;
#endif
#ifdef CONFIG_TESTING_OPTIONS
#ifdef CONFIG_DPP
dpp_test = DPP_TEST_DISABLED;
#ifdef CONFIG_DPP3
dpp_version_override = 3;
... | hostapd_ctrl_iface_flush | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_get(hostapd_data *hapd, char *cmd, char *buf,
size_t buflen) {
int res;
int resa;
wpa_printf(2, "CTRL_IFACE GET '%s'", cmd);
if (!strcmp(cmd, "version")) {
res = snprintf(buf, buflen, "%s", "2.10");
if (os_snprintf_error_9(buflen, res))
return -1;... | static int hostapd_ctrl_iface_get(struct hostapd_data *hapd, char *cmd,
char *buf, size_t buflen) {
int res;
wpa_printf(MSG_DEBUG, "CTRL_IFACE GET '%s'", cmd);
if (os_strcmp(cmd, "version") == 0) {
res = os_snprintf(buf, buflen, "%s", VERSION_STR);
if (os_snprintf_error... | hostapd_ctrl_iface_get | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_get_capability(hostapd_data *hapd, const char *field,
char *buf, size_t buflen) {
int res;
wpa_printf(2, "CTRL_IFACE: GET_CAPABILITY '%s'", field);
if (!strcmp(field, "dpp")) {
res = snprintf(buf, buflen, "DPP=1");
if (os_snprintf_error_9(bufle... | static int hostapd_ctrl_iface_get_capability(struct hostapd_data *hapd,
const char *field, char *buf,
size_t buflen) {
wpa_printf(MSG_DEBUG, "CTRL_IFACE: GET_CAPABILITY '%s'", field);
#ifdef CONFIG_DPP
if (os_strcmp(field, "d... | hostapd_ctrl_iface_get_capability | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_get_config(hostapd_data *hapd, char *buf,
size_t buflen) {
const char *v3;
const char *v5;
const char *v6;
const char *v7;
int ret;
int reta;
int retb;
int retc;
int retd;
int rete;
int retf;
int retg;
int reth;
int reti;
int retj;
... | static int hostapd_ctrl_iface_get_config(struct hostapd_data *hapd, char *buf,
size_t buflen) {
int ret;
char *pos, *end;
pos = buf;
end = buf + buflen;
ret = os_snprintf(
pos, end - pos,
"bssid=" MACSTR "\n"
"ssid=%s\n",
MAC2STR(hapd->own_add... | hostapd_ctrl_iface_get_config | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_get_key_mgmt(hostapd_data *hapd, char *buf,
size_t buflen) {
int ret;
int reta;
int retb;
int retc;
int retd;
int rete;
int retf;
int retg;
int reth;
int reti;
int retj;
int retk;
int retl;
char *pos;
char *end;
pos = buf;
end... | static int hostapd_ctrl_iface_get_key_mgmt(struct hostapd_data *hapd, char *buf,
size_t buflen) {
int ret = 0;
char *pos, *end;
pos = buf;
end = buf + buflen;
WPA_ASSERT(hapd->conf->wpa_key_mgmt);
if (hapd->conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK) {
ret = os_s... | hostapd_ctrl_iface_get_key_mgmt | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_hs20_deauth_req(hostapd_data *hapd, const char *cmd) {
int code;
int reauth_delay;
int ret;
char *pos;
const char *posc;
char *posa;
const char *posd;
char *posb;
size_t url_len;
wpabuf *req;
u8 addr[6];
unsigned long v14;
v14 = __readfsqword(0x28u);
if (hwaddr_aton(c... | static int hostapd_ctrl_iface_hs20_deauth_req(struct hostapd_data *hapd,
const char *cmd) {
u8 addr[ETH_ALEN];
int code, reauth_delay, ret;
const char *pos;
size_t url_len;
struct wpabuf *req;
if (hwaddr_aton(cmd, addr))
return -1;
pos = os_strchr(cmd, '... | hostapd_ctrl_iface_hs20_deauth_req | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_hs20_wnm_notif(hostapd_data *hapd, const char *cmd) {
const char *url;
u8 addr[6];
unsigned long v5;
v5 = __readfsqword(0x28u);
if (hwaddr_aton(cmd, addr))
return -1;
if (!cmd[17])
return hs20_send_wnm_notification(hapd, addr, 1u, 0);
if (cmd[17] != 32)
return -1;
url... | static int hostapd_ctrl_iface_hs20_wnm_notif(struct hostapd_data *hapd,
const char *cmd) {
u8 addr[ETH_ALEN];
const char *url;
if (hwaddr_aton(cmd, addr))
return -1;
url = cmd + 17;
if (*url == '\0') {
url = NULL;
} else {
if (*url != ' ')
retu... | hostapd_ctrl_iface_hs20_wnm_notif | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_init(hostapd_data *hapd) {
int *v2;
char *v3;
int *v4;
char *v5;
size_t v6;
int *v7;
char *v8;
int *v9;
char *v10;
int *v11;
char *v12;
int *v13;
char *v14;
int *v15;
char *v16;
int *v17;
char *v18;
int s;
char *fname;
sockaddr_un addr;
unsigned long v22;... | int hostapd_ctrl_iface_init(struct hostapd_data *hapd) {
#ifdef CONFIG_CTRL_IFACE_UDP
int port = HOSTAPD_CTRL_IFACE_PORT;
char p[32] = {0};
char port_str[40], *tmp;
char *pos;
struct addrinfo hints = {0}, *res, *saveres;
int n;
if (hapd->ctrl_sock > -1) {
wpa_printf(MSG_DEBUG, "ctrl_iface already exi... | hostapd_ctrl_iface_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_kick_mismatch_psk_sta_iter(hostapd_data *hapd,
sta_info *sta, void *ctx) {
_BOOL4 v3;
_BOOL4 v4;
int pmk_len;
int pmk_match;
int sta_match;
int bss_match;
int reason;
hostapd_wpa_psk *psk;
const u8 *pmk;
unsigned long v13;
v... | static int
hostapd_ctrl_iface_kick_mismatch_psk_sta_iter(struct hostapd_data *hapd,
struct sta_info *sta, void *ctx) {
struct hostapd_wpa_psk *psk;
const u8 *pmk;
int pmk_len;
int pmk_match;
int sta_match;
int bss_match;
int reason;
pmk = wpa_auth_get_pmk(s... | hostapd_ctrl_iface_kick_mismatch_psk_sta_iter | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_level(hostapd_data *hapd, sockaddr_storage *from,
socklen_t fromlen, char *level) {
return ctrl_iface_level(&hapd->ctrl_dst, from, fromlen, level);
} | static int hostapd_ctrl_iface_level(struct hostapd_data *hapd,
struct sockaddr_storage *from,
socklen_t fromlen, char *level) {
return ctrl_iface_level(&hapd->ctrl_dst, from, fromlen, level);
} | hostapd_ctrl_iface_level | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_log_level(hostapd_data *hapd, char *cmd, char *buf,
size_t buflen) {
int v4;
const char *v5;
char *v7;
char *cmda;
int ret;
int level;
char *stamp;
cmda = cmd;
if (*cmd) {
while (*cmda == 32)
++cmda;
stamp = strchr(cmda, 32);
i... | static int hostapd_ctrl_iface_log_level(struct hostapd_data *hapd, char *cmd,
char *buf, size_t buflen) {
char *pos, *end, *stamp;
int ret;
if (*cmd == '\0') {
pos = buf;
end = buf + buflen;
ret = os_snprintf(pos, end - pos,
"Current level... | hostapd_ctrl_iface_log_level | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_mib(hostapd_data *hapd, char *reply, int reply_size,
const char *param) {
if (!strcmp(param, "radius_server"))
return radius_server_get_mib(hapd->radius_srv, reply, reply_size);
else
return -1;
} | static int hostapd_ctrl_iface_mib(struct hostapd_data *hapd, char *reply,
int reply_size, const char *param) {
#ifdef RADIUS_SERVER
if (os_strcmp(param, "radius_server") == 0) {
return radius_server_get_mib(hapd->radius_srv, reply, reply_size);
}
#endif
return -1;
} | hostapd_ctrl_iface_mib | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_ctrl_iface_msg_cb(void *ctx, int level, wpa_msg_type type,
const char *txt, size_t len) {
if (ctx)
hostapd_ctrl_iface_send((hostapd_data *)ctx, level, type, txt, len);
} | static void hostapd_ctrl_iface_msg_cb(void *ctx, int level,
enum wpa_msg_type type, const char *txt,
size_t len) {
struct hostapd_data *hapd = ctx;
if (hapd == NULL)
return;
hostapd_ctrl_iface_send(hapd, level, type, txt, len);
} | hostapd_ctrl_iface_msg_cb | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_new_sta(hostapd_data *hapd, const char *txtaddr) {
sta_info *sta;
u8 addr[6];
unsigned long v5;
v5 = __readfsqword(0x28u);
wpa_printf(2, "CTRL_IFACE NEW_STA %s", txtaddr);
if (hwaddr_aton(txtaddr, addr))
return -1;
if (ap_get_sta(hapd, addr))
return 0;
wpa_printf(2,
... | static int hostapd_ctrl_iface_new_sta(struct hostapd_data *hapd,
const char *txtaddr) {
u8 addr[ETH_ALEN];
struct sta_info *sta;
wpa_printf(MSG_DEBUG, "CTRL_IFACE NEW_STA %s", txtaddr);
if (hwaddr_aton(txtaddr, addr))
return -1;
sta = ap_get_sta(hapd, addr);
if (... | hostapd_ctrl_iface_new_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_nfc_get_handover_sel(hostapd_data *hapd, char *cmd,
char *reply, size_t max_len) {
char *v5;
size_t v6;
const u8 *v7;
int v8;
int ndef;
int res;
wpabuf *buf;
char *pos;
char *posa;
pos = strchr(cmd, 32);
if (!pos)
return -1;
... | static int hostapd_ctrl_iface_nfc_get_handover_sel(struct hostapd_data *hapd,
char *cmd, char *reply,
size_t max_len) {
struct wpabuf *buf;
int res;
char *pos;
int ndef;
pos = os_strchr(cmd, ' ');
if (pos ... | hostapd_ctrl_iface_nfc_get_handover_sel | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_nfc_report_handover(hostapd_data *hapd, char *cmd) {
char *v3;
char *v4;
u8 *v5;
u8 *v6;
int ret;
char *pos;
char *posa;
char *posb;
char *type;
char *pos2;
char *pos2a;
size_t len;
size_t lena;
size_t lenb;
size_t lenc;
wpabuf *req;
wpabuf *sel;
pos = strchr(... | static int hostapd_ctrl_iface_nfc_report_handover(struct hostapd_data *hapd,
char *cmd) {
size_t len;
struct wpabuf *req, *sel;
int ret;
char *pos, *role, *type, *pos2;
role = cmd;
pos = os_strchr(role, ' ');
if (pos == NULL)
return -1;
*pos++ = '\0... | hostapd_ctrl_iface_nfc_report_handover | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
char *hostapd_ctrl_iface_path(hostapd_data *hapd) {
size_t v2;
size_t len;
char *buf;
if (!hapd->conf->ctrl_interface)
return 0;
v2 = strlen(hapd->conf->ctrl_interface);
len = v2 + strlen(hapd->conf->iface) + 2;
buf = (char *)malloc(len);
if (!buf)
return 0;
snprintf(buf, len, "%s/%s", hapd->... | static char *hostapd_ctrl_iface_path(struct hostapd_data *hapd) {
char *buf;
size_t len;
if (hapd->conf->ctrl_interface == NULL)
return NULL;
len =
os_strlen(hapd->conf->ctrl_interface) + os_strlen(hapd->conf->iface) + 2;
buf = os_malloc(len);
if (buf == NULL)
return NULL;
os_snprintf(buf... | hostapd_ctrl_iface_path | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_pmksa_add(hostapd_data *hapd, char *cmd) {
int akmp;
int expiration;
char *pos;
char *pos2;
size_t pmk_len;
u8 spa[6];
u8 pmkid[16];
u8 pmk[72];
unsigned long v11;
v11 = __readfsqword(0x28u);
akmp = 0;
expiration = 0;
if (hwaddr_aton(cmd, spa))
return -1;
pos = st... | int hostapd_ctrl_iface_pmksa_add(struct hostapd_data *hapd, char *cmd) {
u8 spa[ETH_ALEN];
u8 pmkid[PMKID_LEN];
u8 pmk[PMK_LEN_MAX];
size_t pmk_len;
char *pos, *pos2;
int akmp = 0, expiration = 0;
if (hwaddr_aton(cmd, spa))
return -1;
pos = os_strchr(cmd, ' ');
if (!pos)
return -1;
pos++;
... | hostapd_ctrl_iface_pmksa_add | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_ctrl_iface_pmksa_flush(hostapd_data *hapd) {
wpa_auth_pmksa_flush(hapd->wpa_auth);
} | void hostapd_ctrl_iface_pmksa_flush(struct hostapd_data *hapd) {
wpa_auth_pmksa_flush(hapd->wpa_auth);
} | hostapd_ctrl_iface_pmksa_flush | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_pmksa_list(hostapd_data *hapd, char *buf, size_t len) {
return wpa_auth_pmksa_list(hapd->wpa_auth, buf, len);
} | int hostapd_ctrl_iface_pmksa_list(struct hostapd_data *hapd, char *buf,
size_t len) {
return wpa_auth_pmksa_list(hapd->wpa_auth, buf, len);
} | hostapd_ctrl_iface_pmksa_list | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_poll_sta(hostapd_data *hapd, const char *txtaddr) {
sta_info *sta;
u8 addr[6];
unsigned long v5;
v5 = __readfsqword(0x28u);
wpa_msg(hapd->msg_ctx, 2, "CTRL_IFACE POLL_STA %s", txtaddr);
if (hwaddr_aton(txtaddr, addr))
return -1;
sta = ap_get_sta(hapd, addr);
if (!sta)
ret... | int hostapd_ctrl_iface_poll_sta(struct hostapd_data *hapd,
const char *txtaddr) {
u8 addr[ETH_ALEN];
struct sta_info *sta;
wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "CTRL_IFACE POLL_STA %s", txtaddr);
if (hwaddr_aton(txtaddr, addr))
return -1;
sta = ap_get_sta(hapd, addr);
if ... | hostapd_ctrl_iface_poll_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_ctrl_iface_receive(int sock, void *eloop_ctx, void *sock_ctx) {
int *v3;
char *v4;
int *v5;
char *v6;
int *v7;
char *v8;
socklen_t fromlen;
int level;
int reply_size;
int res;
int reply_len;
hostapd_data *hapd;
char *pos;
char *reply;
sockaddr_storage from;
char buf[4104];
... | static void hostapd_ctrl_iface_receive(int sock, void *eloop_ctx,
void *sock_ctx) {
struct hostapd_data *hapd = eloop_ctx;
char buf[4096];
int res;
struct sockaddr_storage from;
socklen_t fromlen = sizeof(from);
char *reply, *pos = buf;
const int reply_size = 4096;
... | hostapd_ctrl_iface_receive | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_receive_process(hostapd_data *hapd, char *buf,
char *reply, int reply_size,
sockaddr_storage *from,
socklen_t fromlen) {
unsigned int v6;
int v7;
char *v8;
int v9;
unsign... | static int hostapd_ctrl_iface_receive_process(struct hostapd_data *hapd,
char *buf, char *reply,
int reply_size,
struct sockaddr_storage *from,
... | hostapd_ctrl_iface_receive_process | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_reload(hostapd_iface *iface) {
if (hostapd_reload_iface(iface) >= 0)
return 0;
wpa_printf(5, "Reloading of interface failed");
return -1;
} | static int hostapd_ctrl_iface_reload(struct hostapd_iface *iface) {
if (hostapd_reload_iface(iface) < 0) {
wpa_printf(MSG_ERROR, "Reloading of interface failed");
return -1;
}
return 0;
} | hostapd_ctrl_iface_reload | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_reload_wpa_psk(hostapd_data *hapd) {
int err;
hostapd_bss_config *conf;
conf = hapd->conf;
hostapd_config_clear_wpa_psk(&conf->ssid.wpa_psk);
err = hostapd_setup_wpa_psk(conf);
if (err >= 0) {
ap_for_each_sta(hapd,
(int (*)(hostapd_data *, sta_info *, void *))... | static int hostapd_ctrl_iface_reload_wpa_psk(struct hostapd_data *hapd) {
struct hostapd_bss_config *conf = hapd->conf;
int err;
hostapd_config_clear_wpa_psk(&conf->ssid.wpa_psk);
err = hostapd_setup_wpa_psk(conf);
if (err < 0) {
wpa_printf(MSG_ERROR, "Reloading WPA-PSK passwords failed: %d", err);
... | hostapd_ctrl_iface_reload_wpa_psk | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_remove(hapd_interfaces *interfaces, char *buf) {
if (hostapd_remove_iface(interfaces, buf) >= 0)
return 0;
wpa_printf(5, "Removing interface %s failed", buf);
return -1;
} | static int hostapd_ctrl_iface_remove(struct hapd_interfaces *interfaces,
char *buf) {
if (hostapd_remove_iface(interfaces, buf) < 0) {
wpa_printf(MSG_ERROR, "Removing interface %s failed", buf);
return -1;
}
return 0;
} | hostapd_ctrl_iface_remove | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_remove_neighbor(hostapd_data *hapd, char *buf) {
const wpa_ssid_value *ssidp;
char *tmp;
wpa_ssid_value ssid;
u8 bssid[6];
unsigned long v7;
v7 = __readfsqword(0x28u);
ssidp = 0;
if (hwaddr_aton(buf, bssid)) {
wpa_printf(5, "CTRL: REMOVE_NEIGHBOR: Bad BSSID");
return -1;
... | static int hostapd_ctrl_iface_remove_neighbor(struct hostapd_data *hapd,
char *buf) {
struct wpa_ssid_value ssid;
struct wpa_ssid_value *ssidp = NULL;
u8 bssid[ETH_ALEN];
char *tmp;
if (hwaddr_aton(buf, bssid)) {
wpa_printf(MSG_ERROR, "CTRL: REMOVE_NEIGHBOR: ... | hostapd_ctrl_iface_remove_neighbor | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_req_beacon(hostapd_data *hapd, const char *cmd,
char *reply, size_t reply_size) {
u8 req_mode;
int ret;
int val;
char *pos;
const char *posa;
char *posb;
wpabuf *req;
u8 addr[6];
unsigned long v15;
v15 = __readfsqword(0x28u);
req_mode = 0;
... | static int hostapd_ctrl_iface_req_beacon(struct hostapd_data *hapd,
const char *cmd, char *reply,
size_t reply_size) {
u8 addr[ETH_ALEN];
const char *pos;
struct wpabuf *req;
int ret;
u8 req_mode = 0;
if (hwaddr_aton(cmd, add... | hostapd_ctrl_iface_req_beacon | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_req_lci(hostapd_data *hapd, const char *cmd) {
u8 addr[6];
unsigned long v4;
v4 = __readfsqword(0x28u);
if (!hwaddr_aton(cmd, addr))
return hostapd_send_lci_req(hapd, addr);
wpa_printf(3, "CTRL: REQ_LCI: Invalid MAC address");
return -1;
} | static int hostapd_ctrl_iface_req_lci(struct hostapd_data *hapd,
const char *cmd) {
u8 addr[ETH_ALEN];
if (hwaddr_aton(cmd, addr)) {
wpa_printf(MSG_INFO, "CTRL: REQ_LCI: Invalid MAC address");
return -1;
}
return hostapd_send_lci_req(hapd, addr);
} | hostapd_ctrl_iface_req_lci | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_req_range(hostapd_data *hapd, char *cmd) {
unsigned int n_responders;
unsigned int random_interval;
int min_ap;
char *context;
char *token;
u8 addr[6];
u8 responders[104];
unsigned long v10;
v10 = __readfsqword(0x28u);
context = 0;
token = str_token(cmd, " ", &context);
i... | static int hostapd_ctrl_iface_req_range(struct hostapd_data *hapd, char *cmd) {
u8 addr[ETH_ALEN];
char *token, *context = NULL;
int random_interval, min_ap;
u8 responders[ETH_ALEN * RRM_RANGE_REQ_MAX_RESPONDERS];
unsigned int n_responders;
token = str_token(cmd, " ", &context);
if (!token || hwaddr_aton... | hostapd_ctrl_iface_req_range | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_sa_query(hostapd_data *hapd, const char *txtaddr) {
u8 trans_id[2];
u8 addr[6];
unsigned long v5;
v5 = __readfsqword(0x28u);
wpa_printf(2, "CTRL_IFACE SA_QUERY %s", txtaddr);
if (hwaddr_aton(txtaddr, addr) || os_get_random(trans_id, 2u) < 0)
return -1;
ieee802_11_send_sa_query_... | static int hostapd_ctrl_iface_sa_query(struct hostapd_data *hapd,
const char *txtaddr) {
u8 addr[ETH_ALEN];
u8 trans_id[WLAN_SA_QUERY_TR_ID_LEN];
wpa_printf(MSG_DEBUG, "CTRL_IFACE SA_QUERY %s", txtaddr);
if (hwaddr_aton(txtaddr, addr) ||
os_get_random(trans_id, WLA... | hostapd_ctrl_iface_sa_query | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_ctrl_iface_send(hostapd_data *hapd, int level, wpa_msg_type type,
const char *buf, size_t len) {
hostapd_bss_config *conf;
if (type != wpa_msg_type_WPA_MSG_NO_GLOBAL) {
if (type)
conf = 0;
else
conf = hapd->conf;
hostapd_ctrl_iface_send_internal(hap... | static void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level,
enum wpa_msg_type type, const char *buf,
size_t len) {
if (type != WPA_MSG_NO_GLOBAL) {
hostapd_ctrl_iface_send_internal(
hapd->iface->interfaces->global_ctrl_s... | hostapd_ctrl_iface_send | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_ctrl_iface_send_internal(int sock, dl_list *ctrl_dst,
const char *ifname, int level,
const char *buf, size_t len) {
int *v6;
char *v7;
int *v8;
int idx;
int idxb;
int idxa;
int res;
int _errno;
wpa_ctrl_dst *dst;
... | static void hostapd_ctrl_iface_send_internal(int sock, struct dl_list *ctrl_dst,
const char *ifname, int level,
const char *buf, size_t len) {
struct wpa_ctrl_dst *dst, *next;
struct msghdr msg;
int idx, res;
struct iovec ... | hostapd_ctrl_iface_send_internal | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_send_qos_map_conf(hostapd_data *hapd, const char *cmd) {
size_t v3;
const u8 *v4;
u8 qos_map_set_len;
int ret;
u8 *qos_map_set;
sta_info *sta;
wpabuf *buf;
u8 addr[6];
unsigned long v11;
v11 = __readfsqword(0x28u);
qos_map_set = hapd->conf->qos_map_set;
qos_map_set_len = ... | static int hostapd_ctrl_iface_send_qos_map_conf(struct hostapd_data *hapd,
const char *cmd) {
u8 addr[ETH_ALEN];
struct sta_info *sta;
struct wpabuf *buf;
u8 *qos_map_set = hapd->conf->qos_map_set;
u8 qos_map_set_len = hapd->conf->qos_map_set_len;
int ret;
... | hostapd_ctrl_iface_send_qos_map_conf | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_set(hostapd_data *hapd, char *cmd) {
char *v3;
int ret;
char *value;
char *valuea;
ret = 0;
value = strchr(cmd, 32);
if (!value)
return -1;
v3 = value;
valuea = value + 1;
*v3 = 0;
wpa_printf(2, "CTRL_IFACE SET '%s'='%s'", cmd, valuea);
if (!strcasecmp(cmd, "dpp_confi... | static int hostapd_ctrl_iface_set(struct hostapd_data *hapd, char *cmd) {
char *value;
int ret = 0;
value = os_strchr(cmd, ' ');
if (value == NULL)
return -1;
*value++ = '\0';
wpa_printf(MSG_DEBUG, "CTRL_IFACE SET '%s'='%s'", cmd, value);
if (0) {
#ifdef CONFIG_WPS_TESTING
} else if (os_strcasecmp... | hostapd_ctrl_iface_set | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_set_band(hostapd_data *hapd, const char *bands) {
u32 setband_mask;
wpa_event_data event;
unsigned long v5;
v5 = __readfsqword(0x28u);
setband_mask = 0;
if (!strstr(bands, "AUTO")) {
setband_mask = strstr(bands, "5G") != 0;
if (strstr(bands, "6G"))
setband_mask |= 4u;
... | static int hostapd_ctrl_iface_set_band(struct hostapd_data *hapd,
const char *bands) {
union wpa_event_data event;
u32 setband_mask = WPA_SETBAND_AUTO;
if (!os_strstr(bands, "AUTO")) {
if (os_strstr(bands, "5G"))
setband_mask |= WPA_SETBAND_5G;
if (os_strstr(b... | hostapd_ctrl_iface_set_band | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_set_neighbor(hostapd_data *hapd, char *buf) {
int v3;
const char *v4;
const char *v5;
const char *v6;
const char *bufa;
const char *bufb;
int stationary;
unsigned int bss_parameters;
int ret;
wpabuf *lci;
wpabuf *civic;
char *tmp;
char *tmpa;
char *tmpb;
char *tmpc;
... | static int hostapd_ctrl_iface_set_neighbor(struct hostapd_data *hapd,
char *buf) {
struct wpa_ssid_value ssid;
u8 bssid[ETH_ALEN];
struct wpabuf *nr, *lci = NULL, *civic = NULL;
int stationary = 0;
int bss_parameters = 0;
char *tmp;
int ret = -1;
if (!(hapd->c... | hostapd_ctrl_iface_set_neighbor | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_set_qos_map_set(hostapd_data *hapd, const char *cmd) {
u8 v3;
u8 count;
unsigned int val;
char *posa;
u8 qos_map_set[72];
unsigned long v9;
v9 = __readfsqword(0x28u);
count = 0;
while (1) {
if (count == 58) {
wpa_printf(5, "Too many qos_map_set parameters");
ret... | static int hostapd_ctrl_iface_set_qos_map_set(struct hostapd_data *hapd,
const char *cmd) {
u8 qos_map_set[16 + 2 * 21], count = 0;
const char *pos = cmd;
int val, ret;
for (;;) {
if (count == sizeof(qos_map_set)) {
wpa_printf(MSG_ERROR, "Too many qos_map... | hostapd_ctrl_iface_set_qos_map_set | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_show_neighbor(hostapd_data *hapd, char *buf,
size_t buflen) {
if ((hapd->conf->radio_measurements[0] & 2) != 0)
return hostapd_neighbor_show(hapd, buf, buflen);
wpa_printf(5, "CTRL: SHOW_NEIGHBOR: Neighbor report is not enabled");
return -1;
} | static int hostapd_ctrl_iface_show_neighbor(struct hostapd_data *hapd,
char *buf, size_t buflen) {
if (!(hapd->conf->radio_measurements[0] & WLAN_RRM_CAPS_NEIGHBOR_REPORT)) {
wpa_printf(MSG_ERROR,
"CTRL: SHOW_NEIGHBOR: Neighbor report is not enabled");
... | hostapd_ctrl_iface_show_neighbor | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_sta(hostapd_data *hapd, const char *txtaddr, char *buf,
size_t buflen) {
int ret;
int reta;
sta_info *sta;
char *pos;
u8 addr[6];
unsigned long v12;
v12 = __readfsqword(0x28u);
if (hwaddr_aton(txtaddr, addr)) {
ret = snprintf(buf, buflen, "FAIL\n");... | int hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr,
char *buf, size_t buflen) {
u8 addr[ETH_ALEN];
int ret;
const char *pos;
struct sta_info *sta;
if (hwaddr_aton(txtaddr, addr)) {
ret = os_snprintf(buf, buflen, "FAIL\n");
if (os_snprintf_error(buflen... | hostapd_ctrl_iface_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_sta_first(hostapd_data *hapd, char *buf, size_t buflen) {
return hostapd_ctrl_iface_sta_mib(hapd, hapd->sta_list, buf, buflen);
} | int hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd, char *buf,
size_t buflen) {
return hostapd_ctrl_iface_sta_mib(hapd, hapd->sta_list, buf, buflen);
} | hostapd_ctrl_iface_sta_first | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_sta_mib(hostapd_data *hapd, sta_info *sta, char *buf,
size_t buflen) {
const char *v5;
const char *str;
int v7;
const char *v8;
int len;
int lena;
int lenb;
int lenc;
int lend;
int lene;
int lenf;
int leng;
int lenh;
int i;
unsigned int... | static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd,
struct sta_info *sta, char *buf,
size_t buflen) {
int len, res, ret, i;
const char *keyid;
if (!sta)
return 0;
len = 0;
ret = os_snprintf(buf + len, buflen - len,
... | hostapd_ctrl_iface_sta_mib | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_sta_next(hostapd_data *hapd, const char *txtaddr,
char *buf, size_t buflen) {
int ret;
sta_info *sta;
u8 addr[6];
unsigned long v10;
v10 = __readfsqword(0x28u);
if (!hwaddr_aton(txtaddr, addr) && (sta = ap_get_sta(hapd, addr)) != 0) {
if (sta->next... | int hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr,
char *buf, size_t buflen) {
u8 addr[ETH_ALEN];
struct sta_info *sta;
int ret;
if (hwaddr_aton(txtaddr, addr) || (sta = ap_get_sta(hapd, addr)) == NULL) {
ret = os_snprintf(buf, buflen, "FAIL\n");... | hostapd_ctrl_iface_sta_next | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_status(hostapd_data *hapd, char *buf, size_t buflen) {
int num_sta_ht_no_gf;
int olbc;
int num_sta_no_short_preamble;
int num_sta_no_short_slot_time;
int num_sta_non_erp;
const char *v8;
int v10;
_BOOL4 v11;
_BOOL4 v12;
_BOOL4 v13;
int secondary_channel;
const char *v15;
... | int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
size_t buflen) {
struct hostapd_iface *iface = hapd->iface;
struct hostapd_hw_modes *mode = iface->current_mode;
int len = 0, ret, j;
size_t i;
ret = os_snprintf(buf + len, buflen - len,
"sta... | hostapd_ctrl_iface_status | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_stop_ap(hostapd_data *hapd) {
return hostapd_drv_stop_ap(hapd);
} | int hostapd_ctrl_iface_stop_ap(struct hostapd_data *hapd) {
return hostapd_drv_stop_ap(hapd);
} | hostapd_ctrl_iface_stop_ap | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_track_sta_list(hostapd_data *hapd, char *buf,
size_t buflen) {
int ret;
char *pos;
hostapd_sta_info *info;
hostapd_iface *iface;
char *end;
os_reltime now;
os_reltime age;
unsigned long v12;
v12 = __readfsqword(0x28u);
iface = hapd->iface... | static int hostapd_ctrl_iface_track_sta_list(struct hostapd_data *hapd,
char *buf, size_t buflen) {
struct hostapd_iface *iface = hapd->iface;
char *pos, *end;
struct hostapd_sta_info *info;
struct os_reltime now;
if (!iface->num_sta_seen)
return 0;
sta_tra... | hostapd_ctrl_iface_track_sta_list | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_vendor(hostapd_data *hapd, char *cmd, char *buf,
size_t buflen) {
const unsigned short *v5;
char *v6;
signed long v7;
long v8;
long v9;
long v10;
long v11;
size_t v12;
const u8 *v13;
int ret;
nested_attr nested_attr_flag;
unsigned int vendor_i... | static int hostapd_ctrl_iface_vendor(struct hostapd_data *hapd, char *cmd,
char *buf, size_t buflen) {
int ret;
char *pos, *temp = NULL;
u8 *data = NULL;
unsigned int vendor_id, subcmd;
enum nested_attr nested_attr_flag = NESTED_ATTR_UNSPECIFIED;
struct wpabuf *reply;
... | hostapd_ctrl_iface_vendor | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_wps_ap_pin(hostapd_data *hapd, char *txt, char *buf,
size_t buflen) {
const char *v4;
int timeout;
const char *pos;
char *posa;
char *pin;
const char *pin_txt;
timeout = 300;
pos = strchr(txt, 32);
if (pos) {
v4 = pos++;
*v4 = 0;
}
... | static int hostapd_ctrl_iface_wps_ap_pin(struct hostapd_data *hapd, char *txt,
char *buf, size_t buflen) {
int timeout = 300;
char *pos;
const char *pin_txt;
pos = os_strchr(txt, ' ');
if (pos)
*pos++ = '\0';
if (os_strcmp(txt, "disable") == 0) {
hostapd_wp... | hostapd_ctrl_iface_wps_ap_pin | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_wps_check_pin(hostapd_data *hapd, char *cmd, char *buf,
size_t buflen) {
size_t v4;
size_t v5;
int pin_val;
int ret;
int reta;
size_t len;
char *pos;
char pin[9];
unsigned long v15;
v15 = __readfsqword(0x28u);
v4 = strlen(cmd);
wpa_hex... | static int hostapd_ctrl_iface_wps_check_pin(struct hostapd_data *hapd,
char *cmd, char *buf,
size_t buflen) {
char pin[9];
size_t len;
char *pos;
int ret;
wpa_hexdump_ascii_key(MSG_DEBUG, "WPS_CHECK_PIN", (u8 *)cmd, os_st... | hostapd_ctrl_iface_wps_check_pin | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_wps_config(hostapd_data *hapd, char *txt) {
char *encr;
char *key;
char *pos;
char *posa;
char *posb;
char *auth;
encr = 0;
key = 0;
pos = strchr(txt, 32);
if (!pos)
return -1;
*pos = 0;
auth = pos + 1;
posa = strchr(pos + 1, 32);
if (posa) {
*posa = 0;
en... | static int hostapd_ctrl_iface_wps_config(struct hostapd_data *hapd, char *txt) {
char *pos;
char *ssid, *auth, *encr = NULL, *key = NULL;
ssid = txt;
pos = os_strchr(txt, ' ');
if (!pos)
return -1;
*pos++ = '\0';
auth = pos;
pos = os_strchr(pos, ' ');
if (pos) {
*pos++ = '\0';
encr = pos... | hostapd_ctrl_iface_wps_config | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_wps_get_status(hostapd_data *hapd, char *buf,
size_t buflen) {
const char *v3;
const char *v5;
const char *v6;
int ret;
int reta;
int retb;
int retc;
char *pos;
char *posa;
char *end;
end = &buf[buflen];
v3 = pbc_status_str(hapd->wps_... | static int hostapd_ctrl_iface_wps_get_status(struct hostapd_data *hapd,
char *buf, size_t buflen) {
int ret;
char *pos, *end;
pos = buf;
end = buf + buflen;
ret = os_snprintf(pos, end - pos, "PBC Status: %s\n",
pbc_status_str(hapd->wps_stats.p... | hostapd_ctrl_iface_wps_get_status | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_wps_nfc_config_token(hostapd_data *hapd, char *cmd,
char *reply, size_t max_len) {
size_t v5;
const u8 *v6;
int v7;
int ndef;
int res;
wpabuf *buf;
if (!strcmp(cmd, "WPS")) {
ndef = 0;
} else {
if (strcmp(cmd, "NDEF"))
ret... | static int hostapd_ctrl_iface_wps_nfc_config_token(struct hostapd_data *hapd,
char *cmd, char *reply,
size_t max_len) {
int ndef;
struct wpabuf *buf;
int res;
if (os_strcmp(cmd, "WPS") == 0)
ndef = 0;
el... | hostapd_ctrl_iface_wps_nfc_config_token | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_wps_nfc_tag_read(hostapd_data *hapd, char *pos) {
u8 *v3;
int ret;
size_t len;
size_t lena;
wpabuf *buf;
len = strlen(pos);
if ((len & 1) != 0)
return -1;
lena = len >> 1;
buf = wpabuf_alloc(lena);
if (!buf)
return -1;
v3 = (u8 *)wpabuf_put(buf, lena);
if (hexstr2... | static int hostapd_ctrl_iface_wps_nfc_tag_read(struct hostapd_data *hapd,
char *pos) {
size_t len;
struct wpabuf *buf;
int ret;
len = os_strlen(pos);
if (len & 0x01)
return -1;
len /= 2;
buf = wpabuf_alloc(len);
if (buf == NULL)
return -1;
if (h... | hostapd_ctrl_iface_wps_nfc_tag_read | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_wps_nfc_token(hostapd_data *hapd, char *cmd, char *reply,
size_t max_len) {
if (!strcmp(cmd, "WPS"))
return hostapd_ctrl_iface_wps_nfc_token_gen(hapd, reply, max_len, 0);
if (!strcmp(cmd, "NDEF"))
return hostapd_ctrl_iface_wps_nfc_token_gen(hapd, r... | static int hostapd_ctrl_iface_wps_nfc_token(struct hostapd_data *hapd,
char *cmd, char *reply,
size_t max_len) {
if (os_strcmp(cmd, "WPS") == 0)
return hostapd_ctrl_iface_wps_nfc_token_gen(hapd, reply, max_len, 0);
if (os_s... | hostapd_ctrl_iface_wps_nfc_token | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_wps_nfc_token_gen(hostapd_data *hapd, char *reply,
size_t max_len, int ndef) {
size_t v5;
const u8 *v6;
int v7;
int res;
wpabuf *buf;
buf = hostapd_wps_nfc_token_gen(hapd, ndef);
if (!buf)
return -1;
v5 = wpabuf_len_15(buf);
v6 = (co... | static int hostapd_ctrl_iface_wps_nfc_token_gen(struct hostapd_data *hapd,
char *reply, size_t max_len,
int ndef) {
struct wpabuf *buf;
int res;
buf = hostapd_wps_nfc_token_gen(hapd, ndef);
if (buf == NULL)
retu... | hostapd_ctrl_iface_wps_nfc_token_gen | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ctrl_iface_wps_pin(hostapd_data *hapd, char *txt) {
char *v3;
char *v4;
int timeout;
char *pin;
char *pina;
char *timeout_txt;
char *timeout_txta;
char *pos;
u8 addr_buf[6];
unsigned long v12;
v12 = __readfsqword(0x28u);
pin = strchr(txt, 32);
if (!pin)
return -1;
v3 = pin;
... | static int hostapd_ctrl_iface_wps_pin(struct hostapd_data *hapd, char *txt) {
char *pin = os_strchr(txt, ' ');
char *timeout_txt;
int timeout;
u8 addr_buf[ETH_ALEN], *addr = NULL;
char *pos;
if (pin == NULL)
return -1;
*pin++ = '\0';
timeout_txt = os_strchr(pin, ' ');
if (timeout_txt) {
*tim... | hostapd_ctrl_iface_wps_pin | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
radius_das_res hostapd_das_coa(void *ctx, radius_das_attrs *attr) {
int multi;
hostapd_data *hapd;
sta_info *sta;
unsigned long v6;
v6 = __readfsqword(0x28u);
hapd = (hostapd_data *)ctx;
if (hostapd_das_nas_mismatch((hostapd_data *)ctx, attr))
return radius_das_res_RADIUS_DAS_NAS_MISMATCH;
sta = ho... | static enum radius_das_res hostapd_das_coa(void *ctx,
struct radius_das_attrs *attr) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
int multi;
if (hostapd_das_nas_mismatch(hapd, attr))
return RADIUS_DAS_NAS_MISMATCH;
sta = hostapd_das_find_sta(hapd, a... | hostapd_das_coa | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
radius_das_res hostapd_das_disconnect(void *ctx, radius_das_attrs *attr) {
int multi;
hostapd_data *hapd;
sta_info *sta;
unsigned long v6;
v6 = __readfsqword(0x28u);
hapd = (hostapd_data *)ctx;
if (hostapd_das_nas_mismatch((hostapd_data *)ctx, attr))
return radius_das_res_RADIUS_DAS_NAS_MISMATCH;
s... | static enum radius_das_res
hostapd_das_disconnect(void *ctx, struct radius_das_attrs *attr) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
int multi;
if (hostapd_das_nas_mismatch(hapd, attr))
return RADIUS_DAS_NAS_MISMATCH;
sta = hostapd_das_find_sta(hapd, attr, &multi);
if (sta == NULL) {
... | hostapd_das_disconnect | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_das_disconnect_pmksa(hostapd_data *hapd, radius_das_attrs *attr) {
if (hapd->wpa_auth)
return wpa_auth_radius_das_disconnect_pmksa(hapd->wpa_auth, attr);
else
return -1;
} | static int hostapd_das_disconnect_pmksa(struct hostapd_data *hapd,
struct radius_das_attrs *attr) {
if (!hapd->wpa_auth)
return -1;
return wpa_auth_radius_das_disconnect_pmksa(hapd->wpa_auth, attr);
} | hostapd_das_disconnect_pmksa | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
sta_info *hostapd_das_find_sta(hostapd_data *hapd, radius_das_attrs *attr,
int *multi) {
size_t cui_len;
const u8 *v5;
const void *v6;
int num_attr;
int count;
int counta;
int countb;
int countc;
size_t identity_len;
sta_info *selected;
sta_info *sta;
wpabuf *cui;
... | static struct sta_info *hostapd_das_find_sta(struct hostapd_data *hapd,
struct radius_das_attrs *attr,
int *multi) {
struct sta_info *selected, *sta;
char buf[128];
int num_attr = 0;
int count;
*multi = 0;
for (sta =... | hostapd_das_find_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_das_nas_mismatch(hostapd_data *hapd, radius_das_attrs *attr) {
if (!attr->nas_identifier ||
hapd->conf->nas_identifier &&
strlen(hapd->conf->nas_identifier) == attr->nas_identifier_len &&
!memcmp(hapd->conf->nas_identifier, attr->nas_identifier,
attr->nas_identi... | static int hostapd_das_nas_mismatch(struct hostapd_data *hapd,
struct radius_das_attrs *attr) {
if (attr->nas_identifier &&
(!hapd->conf->nas_identifier ||
os_strlen(hapd->conf->nas_identifier) != attr->nas_identifier_len ||
os_memcmp(hapd->conf->nas_identifier,... | hostapd_das_nas_mismatch | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_data_alloc(hostapd_iface *hapd_iface, hostapd_config *conf) {
hostapd_data **v3;
size_t i;
hapd_iface->bss = (hostapd_data **)os_calloc_1(conf->num_bss, 8u);
if (!hapd_iface->bss)
return -1;
for (i = 0;; ++i) {
if (i >= conf->num_bss) {
hapd_iface->conf = conf;
hapd_iface->num... | static int hostapd_data_alloc(struct hostapd_iface *hapd_iface,
struct hostapd_config *conf) {
size_t i;
struct hostapd_data *hapd;
hapd_iface->bss = os_calloc(conf->num_bss, sizeof(struct hostapd_data *));
if (hapd_iface->bss == NULL)
return -1;
for (i = 0; i < conf->num_b... | hostapd_data_alloc | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_deinit_driver(const wpa_driver_ops *driver, void *drv_priv,
hostapd_iface *hapd_iface) {
size_t j;
wpa_printf(2, "%s: driver=%p drv_priv=%p -> hapd_deinit",
"hostapd_deinit_driver", driver, drv_priv);
if (driver && driver->hapd_deinit && drv_priv) {
driver... | static void hostapd_deinit_driver(const struct wpa_driver_ops *driver,
void *drv_priv,
struct hostapd_iface *hapd_iface) {
size_t j;
wpa_printf(MSG_DEBUG, "%s: driver=%p drv_priv=%p -> hapd_deinit", __func__,
driver, drv_priv);
if (... | hostapd_deinit_driver | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_deinit_wpa(hostapd_data *hapd) {
ieee80211_tkip_countermeasures_deinit(hapd);
ptksa_cache_deinit(hapd->ptksa);
hapd->ptksa = 0;
rsn_preauth_iface_deinit(hapd);
if (hapd->wpa_auth) {
wpa_deinit(hapd->wpa_auth);
hapd->wpa_auth = 0;
if (hapd->drv_priv && hostapd_set_privacy(hapd, 0))
... | void hostapd_deinit_wpa(struct hostapd_data *hapd) {
ieee80211_tkip_countermeasures_deinit(hapd);
ptksa_cache_deinit(hapd->ptksa);
hapd->ptksa = NULL;
rsn_preauth_iface_deinit(hapd);
if (hapd->wpa_auth) {
wpa_deinit(hapd->wpa_auth);
hapd->wpa_auth = NULL;
if (hapd->drv_priv && hostapd_set_privac... | hostapd_deinit_wpa | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_deinit_wps(hostapd_data *hapd) {
eloop_cancel_timeout((eloop_timeout_handler)hostapd_wps_reenable_ap_pin, hapd,
0);
eloop_cancel_timeout((eloop_timeout_handler)hostapd_wps_ap_pin_timeout, hapd,
0);
eloop_cancel_timeout((eloop_timeout_handler)wps_reload_co... | void hostapd_deinit_wps(struct hostapd_data *hapd) {
eloop_cancel_timeout(hostapd_wps_reenable_ap_pin, hapd, NULL);
eloop_cancel_timeout(hostapd_wps_ap_pin_timeout, hapd, NULL);
eloop_cancel_timeout(wps_reload_config, hapd->iface, NULL);
if (hapd->wps == NULL) {
hostapd_wps_clear_ies(hapd, 1);
return;
... | hostapd_deinit_wps | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_derive_psk(hostapd_ssid *ssid) {
size_t v2;
ssid->wpa_psk = (hostapd_wpa_psk *)os_zalloc(0x60u);
if (ssid->wpa_psk) {
wpa_hexdump_ascii(2, "SSID", ssid, ssid->ssid_len);
v2 = strlen(ssid->wpa_passphrase);
wpa_hexdump_ascii_key(2, "PSK (ASCII passphrase)", ssid->wpa_passphrase,
... | static int hostapd_derive_psk(struct hostapd_ssid *ssid) {
ssid->wpa_psk = os_zalloc(sizeof(struct hostapd_wpa_psk));
if (ssid->wpa_psk == NULL) {
wpa_printf(MSG_ERROR, "Unable to alloc space for PSK");
return -1;
}
wpa_hexdump_ascii(MSG_DEBUG, "SSID", (u8 *)ssid->ssid, ssid->ssid_len);
wpa_hexdump_as... | hostapd_derive_psk | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_determine_mode(hostapd_iface *iface) {
int i;
hostapd_hw_mode target_mode;
hostapd_hw_modes *mode;
if (!iface->current_mode &&
iface->conf->hw_mode == hostapd_hw_mode_HOSTAPD_MODE_IEEE80211ANY) {
if (iface->freq > 3999) {
if (iface->freq <= 50000)
target_mode = hostapd_hw_m... | static void hostapd_determine_mode(struct hostapd_iface *iface) {
int i;
enum hostapd_hw_mode target_mode;
if (iface->current_mode || iface->conf->hw_mode != HOSTAPD_MODE_IEEE80211ANY)
return;
if (iface->freq < 4000)
target_mode = HOSTAPD_MODE_IEEE80211G;
else if (iface->freq > 50000)
target_mod... | hostapd_determine_mode | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dfs_complete_cac(hostapd_iface *iface, int success, int freq,
int ht_enabled, int chan_offset, int chan_width,
int cf1, int cf2) {
wpa_msg((*iface->bss)->msg_ctx, 3,
"DFS-CAC-COMPLETED success=%d freq=%d ht_enabled=%d chan_offset=%d "
... | int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
int ht_enabled, int chan_offset, int chan_width,
int cf1, int cf2) {
wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO,
DFS_EVENT_CAC_COMPLETED "success=%d freq=%d ht_enabled=%d ... | hostapd_dfs_complete_cac | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dfs_nop_finished(hostapd_iface *iface, int freq, int ht_enabled,
int chan_offset, int chan_width, int cf1,
int cf2) {
wpa_msg((*iface->bss)->msg_ctx, 3,
"DFS-NOP-FINISHED freq=%d ht_enabled=%d chan_offset=%d chan_width=%d "
"cf1... | int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
int ht_enabled, int chan_offset, int chan_width,
int cf1, int cf2) {
wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO,
DFS_EVENT_NOP_FINISHED
"freq=%d ht_enabled=%d chan_offset=%d ... | hostapd_dfs_nop_finished | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dfs_pre_cac_expired(hostapd_iface *iface, int freq, int ht_enabled,
int chan_offset, int chan_width, int cf1,
int cf2) {
wpa_msg((*iface->bss)->msg_ctx, 3,
"DFS-PRE-CAC-EXPIRED freq=%d ht_enabled=%d chan_offset=%d "
"chan_... | int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq,
int ht_enabled, int chan_offset, int chan_width,
int cf1, int cf2) {
wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO,
DFS_EVENT_PRE_CAC_EXPIRED
"freq=%d ht_enabled=%d cha... | hostapd_dfs_pre_cac_expired | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dfs_radar_detected(hostapd_iface *iface, int freq, int ht_enabled,
int chan_offset, int chan_width, int cf1,
int cf2) {
wpa_msg((*iface->bss)->msg_ctx, 3,
"DFS-RADAR-DETECTED freq=%d ht_enabled=%d chan_offset=%d "
"chan_widt... | int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
int ht_enabled, int chan_offset, int chan_width,
int cf1, int cf2) {
int res;
wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO,
DFS_EVENT_RADAR_DETECTED
"freq=%d ht_enable... | hostapd_dfs_radar_detected | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dfs_start_cac(hostapd_iface *iface, int freq, int ht_enabled,
int chan_offset, int chan_width, int cf1, int cf2) {
hostapd_set_state(iface, hostapd_iface_state_HAPD_IFACE_DFS);
iface->dfs_cac_ms = 60000;
wpa_msg((*iface->bss)->msg_ctx, 3,
"DFS-CAC-START freq=%d chan... | int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq, int ht_enabled,
int chan_offset, int chan_width, int cf1, int cf2) {
hostapd_set_state(iface, HAPD_IFACE_DFS);
iface->dfs_cac_ms = 60000;
wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO,
DFS_EVENT_CAC_START "freq=%d ch... | hostapd_dfs_start_cac | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dfs_start_channel_switch(hostapd_iface *iface) {
const char *v1;
const char *v2;
u8 oper_centr_freq_seg0_idx;
u8 oper_centr_freq_seg1_idx;
u8 current_vht_oper_chwidth;
u8 new_vht_oper_chwidth;
int secondary_channel;
int skip_radar;
unsigned int i;
int err;
int ieee80211_mode;
hostapd... | static int hostapd_dfs_start_channel_switch(struct hostapd_iface *iface) {
struct hostapd_channel_data *channel;
int secondary_channel;
u8 oper_centr_freq_seg0_idx;
u8 oper_centr_freq_seg1_idx;
u8 new_vht_oper_chwidth;
int skip_radar = 1;
struct csa_settings csa_settings;
unsigned int i;
int err = 1;
... | hostapd_dfs_start_channel_switch | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dfs_start_channel_switch_cac(hostapd_iface *iface) {
u8 oper_centr_freq_seg0_idx;
u8 oper_centr_freq_seg1_idx;
int secondary_channel;
int skip_radar;
int err;
hostapd_channel_data *channel;
unsigned long v8;
v8 = __readfsqword(0x28u);
oper_centr_freq_seg0_idx = 0;
oper_centr_freq_seg1_i... | static int hostapd_dfs_start_channel_switch_cac(struct hostapd_iface *iface) {
struct hostapd_channel_data *channel;
int secondary_channel;
u8 oper_centr_freq_seg0_idx = 0;
u8 oper_centr_freq_seg1_idx = 0;
int skip_radar = 0;
int err = 1;
iface->cac_started = 0;
channel = dfs_get_valid_channel(iface, &... | hostapd_dfs_start_channel_switch_cac | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_disable_iface(hostapd_iface *hapd_iface) {
size_t j;
size_t ja;
const wpa_driver_ops *driver;
void *drv_priv;
hostapd_data *hapd;
if (!hapd_iface)
return -1;
if (hapd_iface->disable_iface_cb)
return hapd_iface->disable_iface_cb(hapd_iface);
if ((*hapd_iface->bss)->drv_priv) {
wp... | int hostapd_disable_iface(struct hostapd_iface *hapd_iface) {
size_t j;
const struct wpa_driver_ops *driver;
void *drv_priv;
if (hapd_iface == NULL)
return -1;
if (hapd_iface->disable_iface_cb)
return hapd_iface->disable_iface_cb(hapd_iface);
if (hapd_iface->bss[0]->drv_priv == NULL) {
wpa_pr... | hostapd_disable_iface | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_disassoc_accept_mac(hostapd_data *hapd) {
sta_info *sta;
vlan_description vlan_id;
unsigned long v3;
v3 = __readfsqword(0x28u);
if (hapd->conf->macaddr_acl == macaddr_acl_DENY_UNLESS_ACCEPTED) {
for (sta = hapd->sta_list; sta; sta = sta->next) {
if (!hostapd_maclist_found(hapd->conf->a... | static void hostapd_disassoc_accept_mac(struct hostapd_data *hapd) {
struct sta_info *sta;
struct vlan_description vlan_id;
if (hapd->conf->macaddr_acl != DENY_UNLESS_ACCEPTED)
return;
for (sta = hapd->sta_list; sta; sta = sta->next) {
if (!hostapd_maclist_found(hapd->conf->accept_mac,
... | hostapd_disassoc_accept_mac | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_disassoc_deny_mac(hostapd_data *hapd) {
sta_info *sta;
vlan_description vlan_id;
unsigned long v3;
v3 = __readfsqword(0x28u);
for (sta = hapd->sta_list; sta; sta = sta->next) {
if (hostapd_maclist_found(hapd->conf->deny_mac, hapd->conf->num_deny_mac,
sta->addr, ... | static void hostapd_disassoc_deny_mac(struct hostapd_data *hapd) {
struct sta_info *sta;
struct vlan_description vlan_id;
for (sta = hapd->sta_list; sta; sta = sta->next) {
if (hostapd_maclist_found(hapd->conf->deny_mac, hapd->conf->num_deny_mac,
sta->addr, &vlan_id) &&
... | hostapd_disassoc_deny_mac | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dpp_add_controllers(hostapd_data *hapd) { return 0; } | static int hostapd_dpp_add_controllers(struct hostapd_data *hapd) {
#ifdef CONFIG_DPP2
struct dpp_controller_conf *ctrl;
struct dpp_relay_config config;
os_memset(&config, 0, sizeof(config));
config.cb_ctx = hapd;
config.tx = hostapd_dpp_relay_tx;
config.gas_resp_tx = hostapd_dpp_relay_gas_resp_tx;
for (... | hostapd_dpp_add_controllers | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_dpp_auth_conf_wait_timeout(void *eloop_ctx, void *timeout_ctx) {
dpp_authentication *auth;
auth = (dpp_authentication *)*((_QWORD *)eloop_ctx + 446);
if (auth) {
if (auth->waiting_auth_conf) {
wpa_printf(
2,
"DPP: Terminate authentication exchange due to Auth Confirm ti... | static void hostapd_dpp_auth_conf_wait_timeout(void *eloop_ctx,
void *timeout_ctx) {
struct hostapd_data *hapd = eloop_ctx;
struct dpp_authentication *auth = hapd->dpp_auth;
if (!auth || !auth->waiting_auth_conf)
return;
wpa_printf(
MSG_DEBUG,
"DP... | hostapd_dpp_auth_conf_wait_timeout | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dpp_auth_init(hostapd_data *hapd, const char *cmd) {
unsigned int v3;
unsigned int v4;
u8 allowed_roles;
int neg_freq;
dpp_bootstrap_info *own_bi;
char *pos;
char *posa;
char *posb;
const char *posc;
char *posd;
dpp_bootstrap_info *peer_bi;
dpp_authentication *auth;
own_bi = 0;
... | int hostapd_dpp_auth_init(struct hostapd_data *hapd, const char *cmd) {
const char *pos;
struct dpp_bootstrap_info *peer_bi, *own_bi = NULL;
struct dpp_authentication *auth;
u8 allowed_roles = DPP_CAPAB_CONFIGURATOR;
unsigned int neg_freq = 0;
int tcp = 0;
#ifdef CONFIG_DPP2
int tcp_port = DPP_TCP_PORT;
... | hostapd_dpp_auth_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dpp_auth_init_next(hostapd_data *hapd) {
unsigned int freq_idx;
unsigned int dpp_resp_wait_time;
size_t v4;
const u8 *v5;
unsigned int wait_time;
unsigned int wait_timea;
unsigned int wait_timeb;
unsigned int wait_timed;
unsigned int wait_timec;
unsigned int max_tries;
unsigned int fre... | static int hostapd_dpp_auth_init_next(struct hostapd_data *hapd) {
struct dpp_authentication *auth = hapd->dpp_auth;
const u8 *dst;
unsigned int wait_time, max_wait_time, freq, max_tries, used;
struct os_reltime now, diff;
if (!auth)
return -1;
if (auth->freq_idx == 0)
os_get_reltime(&hapd->dpp_in... | hostapd_dpp_auth_init_next | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_dpp_auth_resp_retry(hostapd_data *hapd) {
unsigned int wait_time;
unsigned int max_tries;
dpp_authentication *auth;
auth = hapd->dpp_auth;
if (auth && auth->resp_msg) {
if (hapd->dpp_resp_max_tries)
max_tries = hapd->dpp_resp_max_tries;
else
max_tries = 5;
if (max_tries >... | static void hostapd_dpp_auth_resp_retry(struct hostapd_data *hapd) {
struct dpp_authentication *auth = hapd->dpp_auth;
unsigned int wait_time, max_tries;
if (!auth || !auth->resp_msg)
return;
if (hapd->dpp_resp_max_tries)
max_tries = hapd->dpp_resp_max_tries;
else
max_tries = 5;
auth->auth_res... | hostapd_dpp_auth_resp_retry | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_dpp_auth_resp_retry_timeout(void *eloop_ctx, void *timeout_ctx) {
size_t v2;
const u8 *v3;
dpp_authentication *auth;
auth = (dpp_authentication *)*((_QWORD *)eloop_ctx + 446);
if (auth) {
if (auth->resp_msg) {
wpa_printf(2, "DPP: Retry Authentication Response after timeout");
wpa... | static void hostapd_dpp_auth_resp_retry_timeout(void *eloop_ctx,
void *timeout_ctx) {
struct hostapd_data *hapd = eloop_ctx;
struct dpp_authentication *auth = hapd->dpp_auth;
if (!auth || !auth->resp_msg)
return;
wpa_printf(MSG_DEBUG, "DPP: Retry Authenticat... | hostapd_dpp_auth_resp_retry_timeout | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_dpp_auth_success(hostapd_data *hapd, int initiator) {
wpa_printf(2, "DPP: Authentication succeeded");
wpa_msg(hapd->msg_ctx, 3, "DPP-AUTH-SUCCESS init=%d", initiator);
if (!hapd->dpp_auth->configurator)
hostapd_dpp_start_gas_client(hapd);
} | static void hostapd_dpp_auth_success(struct hostapd_data *hapd, int initiator) {
wpa_printf(MSG_DEBUG, "DPP: Authentication succeeded");
wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVENT_AUTH_SUCCESS "init=%d", initiator);
#ifdef CONFIG_TESTING_OPTIONS
if (dpp_test == DPP_TEST_STOP_AT_AUTH_CONF) {
wpa_printf(MSG_INF... | hostapd_dpp_auth_success | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_dpp_configurator_sign(hostapd_data *hapd, const char *cmd) {
int ret;
char *curve;
dpp_authentication *auth;
ret = -1;
auth = dpp_alloc_auth(hapd->iface->interfaces->dpp, hapd->msg_ctx);
if (!auth)
return -1;
curve = get_param(cmd, " curve=");
hostapd_dpp_set_testing_options(hapd, auth)... | int hostapd_dpp_configurator_sign(struct hostapd_data *hapd, const char *cmd) {
struct dpp_authentication *auth;
int ret = -1;
char *curve = NULL;
auth = dpp_alloc_auth(hapd->iface->interfaces->dpp, hapd->msg_ctx);
if (!auth)
return -1;
curve = get_param(cmd, " curve=");
hostapd_dpp_set_testing_opti... | hostapd_dpp_configurator_sign | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.