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_setup_interface(hostapd_iface *iface) {
if (!iface->conf)
return -1;
if (!setup_interface(iface))
return 0;
wpa_printf(5, "%s: Unable to setup interface.", *iface->conf->bss);
return -1;
} | int hostapd_setup_interface(struct hostapd_iface *iface) {
int ret;
if (!iface->conf)
return -1;
ret = setup_interface(iface);
if (ret) {
wpa_printf(MSG_ERROR, "%s: Unable to setup interface.",
iface->conf->bss[0]->iface);
return -1;
}
return 0;
} | hostapd_setup_interface | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_setup_interface_complete(hostapd_iface *iface, int err) {
hostapd_iface *v3;
unsigned int i;
unsigned int ia;
int not_ready_in_sync_ifaces;
hapd_interfaces *interfaces;
hostapd_data *hapd;
interfaces = iface->interfaces;
hapd = *iface->bss;
not_ready_in_sync_ifaces = 0;
if ((*((_BYTE *)... | int hostapd_setup_interface_complete(struct hostapd_iface *iface, int err) {
struct hapd_interfaces *interfaces = iface->interfaces;
struct hostapd_data *hapd = iface->bss[0];
unsigned int i;
int not_ready_in_sync_ifaces = 0;
if (!iface->need_to_start_in_sync)
return hostapd_setup_interface_complete_sync... | hostapd_setup_interface_complete | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_setup_interface_complete_sync(hostapd_iface *iface, int err) {
int freq;
int channel;
const char *v4;
int oper_centr_freq_seg1_idx;
int oper_centr_freq_seg0_idx;
u8 oper_chwidth;
int res_dfs_offload;
int res;
hostapd_data *hapd;
hostapd_data *hapda;
size_t j;
size_t ja;
size_t jb;
... | static int hostapd_setup_interface_complete_sync(struct hostapd_iface *iface,
int err) {
struct hostapd_data *hapd = iface->bss[0];
size_t j;
u8 *prev_addr;
int delay_apply_cfg = 0;
int res_dfs_offload = 0;
if (err)
goto fail;
wpa_printf(MSG_DEBUG, "C... | hostapd_setup_interface_complete_sync | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_setup_radius_srv(hostapd_data *hapd) {
hostapd_bss_config *conf;
radius_server_conf srv;
unsigned long v4;
v4 = __readfsqword(0x28u);
conf = hapd->conf;
memset(&srv, 0, sizeof(srv));
srv.client_file = conf->radius_server_clients;
srv.auth_port = conf->radius_server_auth_port;
srv.acct_por... | static int hostapd_setup_radius_srv(struct hostapd_data *hapd) {
struct radius_server_conf srv;
struct hostapd_bss_config *conf = hapd->conf;
os_memset(&srv, 0, sizeof(srv));
srv.client_file = conf->radius_server_clients;
srv.auth_port = conf->radius_server_auth_port;
srv.acct_port = conf->radius_server_acc... | hostapd_setup_radius_srv | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_setup_sae_pt(hostapd_bss_config *conf) {
size_t v2;
const char *identifier;
size_t v4;
sae_password_entry *pw;
if (!conf->sae_pwe && !hostapd_sae_pw_id_in_use(conf) &&
!hostapd_sae_pk_in_use(conf) ||
conf->sae_pwe == 3 || !wpa_key_mgmt_sae(conf->wpa_key_mgmt)) {
return 0;
}
... | int hostapd_setup_sae_pt(struct hostapd_bss_config *conf) {
#ifdef CONFIG_SAE
struct hostapd_ssid *ssid = &conf->ssid;
struct sae_password_entry *pw;
if ((conf->sae_pwe == 0 && !hostapd_sae_pw_id_in_use(conf) &&
!hostapd_sae_pk_in_use(conf)) ||
conf->sae_pwe == 3 || !wpa_key_mgmt_sae(conf->wpa_key_m... | hostapd_setup_sae_pt | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_setup_wpa(hostapd_data *hapd) {
hostapd_bss_config *bridge;
size_t wpa_ie_len;
const u8 *wpa_ie;
const char *ft_iface;
wpa_auth_config _conf;
unsigned long v7;
v7 = __readfsqword(0x28u);
hostapd_wpa_auth_conf(hapd->conf, hapd->iconf, &_conf);
_conf.msg_ctx = hapd->msg_ctx;
if ((hapd->if... | int hostapd_setup_wpa(struct hostapd_data *hapd) {
struct wpa_auth_config _conf;
static const struct wpa_auth_callbacks cb = {
.logger = hostapd_wpa_auth_logger,
.disconnect = hostapd_wpa_auth_disconnect,
.mic_failure_report = hostapd_wpa_auth_mic_failure_report,
.psk_failure_report = hostap... | hostapd_setup_wpa | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_setup_wpa_psk(hostapd_bss_config *conf) {
if (hostapd_setup_sae_pt(conf) < 0)
return -1;
if (conf->ssid.wpa_passphrase) {
if (conf->ssid.wpa_psk) {
wpa_printf(2, "Using pre-configured WPA PSK instead of passphrase");
} else {
wpa_printf(2, "Deriving WPA PSK based on passphrase");... | int hostapd_setup_wpa_psk(struct hostapd_bss_config *conf) {
struct hostapd_ssid *ssid = &conf->ssid;
if (hostapd_setup_sae_pt(conf) < 0)
return -1;
if (ssid->wpa_passphrase != NULL) {
if (ssid->wpa_psk != NULL) {
wpa_printf(MSG_DEBUG, "Using pre-configured WPA PSK "
"i... | hostapd_setup_wpa_psk | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_sim_db_cb(void *ctx, void *session_ctx) {
if (!ap_for_each_sta(
(hostapd_data *)ctx,
(int (*)(hostapd_data *, sta_info *, void *))hostapd_sim_db_cb_sta,
session_ctx))
radius_server_eap_pending_cb(*((radius_server_data **)ctx + 316),
sessi... | static void hostapd_sim_db_cb(void *ctx, void *session_ctx) {
struct hostapd_data *hapd = ctx;
if (ap_for_each_sta(hapd, hostapd_sim_db_cb_sta, session_ctx) == 0) {
#ifdef RADIUS_SERVER
radius_server_eap_pending_cb(hapd->radius_srv, session_ctx);
#endif
}
} | hostapd_sim_db_cb | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_sim_db_cb_sta(hostapd_data *hapd, sta_info *sta, void *ctx) {
return eapol_auth_eap_pending_cb(sta->eapol_sm, ctx) == 0;
} | static int hostapd_sim_db_cb_sta(struct hostapd_data *hapd,
struct sta_info *sta, void *ctx) {
if (eapol_auth_eap_pending_cb(sta->eapol_sm, ctx) == 0)
return 1;
return 0;
} | hostapd_sim_db_cb_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_single_channel_get_survey(hostapd_iface *iface,
survey_results *survey_res) {
freq_survey *p_prev;
freq_survey *survey;
hostapd_channel_data *chan;
if (dl_list_empty_0(&survey_res->survey_list))
p_prev = 0;
else
p_prev = (freq_survey *)&survey_res->... | static void
hostapd_single_channel_get_survey(struct hostapd_iface *iface,
struct survey_results *survey_res) {
struct hostapd_channel_data *chan;
struct freq_survey *survey;
u64 divisor, dividend;
survey = dl_list_first(&survey_res->survey_list, struct freq_survey, list);
i... | hostapd_single_channel_get_survey | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_sta_add(hostapd_data *hapd, const u8 *addr, u16 aid, u16 capability,
const u8 *supp_rates, size_t supp_rates_len,
u16 listen_interval,
const ieee80211_ht_capabilities *ht_capab,
const ieee80211_vht_capabilities *vht_capab,
... | int hostapd_sta_add(struct hostapd_data *hapd, const u8 *addr, u16 aid,
u16 capability, const u8 *supp_rates, size_t supp_rates_len,
u16 listen_interval,
const struct ieee80211_ht_capabilities *ht_capab,
const struct ieee80211_vht_capabilit... | hostapd_sta_add | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_sta_assoc(hostapd_data *hapd, const u8 *addr, int reassoc,
u16 status, const u8 *ie, size_t len) {
if (hapd->driver && hapd->driver->sta_assoc)
return hapd->driver->sta_assoc(hapd->drv_priv, hapd->own_addr, addr,
reassoc, status, ie, len);
els... | int hostapd_sta_assoc(struct hostapd_data *hapd, const u8 *addr, int reassoc,
u16 status, const u8 *ie, size_t len) {
if (hapd->driver == NULL || hapd->driver->sta_assoc == NULL)
return 0;
return hapd->driver->sta_assoc(hapd->drv_priv, hapd->own_addr, addr, reassoc,
... | hostapd_sta_assoc | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_sta_auth(hostapd_data *hapd, const u8 *addr, u16 seq, u16 status,
const u8 *ie, size_t len) {
wpa_driver_sta_auth_params params;
unsigned long v12;
v12 = __readfsqword(0x28u);
if (!hapd->driver || !hapd->driver->sta_auth)
return 0;
memset(¶ms, 0, sizeof(params));
pa... | int hostapd_sta_auth(struct hostapd_data *hapd, const u8 *addr, u16 seq,
u16 status, const u8 *ie, size_t len) {
struct wpa_driver_sta_auth_params params;
#ifdef CONFIG_FILS
struct sta_info *sta;
#endif
if (hapd->driver == NULL || hapd->driver->sta_auth == NULL)
return 0;
os_memset(&p... | hostapd_sta_auth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u32 hostapd_sta_flags_to_drv(u32 flags) {
u32 res;
res = (flags & 0x20) != 0;
if ((flags & 0x200) != 0)
res |= 2u;
if ((flags & 0x80) != 0)
res |= 4u;
if ((flags & 0x400) != 0)
res |= 8u;
if ((flags & 1) != 0)
res |= 0x20u;
if ((flags & 2) != 0)
res |= 0x40u;
return res;
} | u32 hostapd_sta_flags_to_drv(u32 flags) {
int res = 0;
if (flags & WLAN_STA_AUTHORIZED)
res |= WPA_STA_AUTHORIZED;
if (flags & WLAN_STA_WMM)
res |= WPA_STA_WMM;
if (flags & WLAN_STA_SHORT_PREAMBLE)
res |= WPA_STA_SHORT_PREAMBLE;
if (flags & WLAN_STA_MFP)
res |= WPA_STA_MFP;
if (flags & WLAN_... | hostapd_sta_flags_to_drv | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_sta_set_airtime_weight(hostapd_data *hapd, const u8 *addr,
unsigned int weight) {
if (hapd->driver && hapd->driver->sta_set_airtime_weight)
return hapd->driver->sta_set_airtime_weight(hapd->drv_priv, addr, weight);
else
return 0;
} | int hostapd_sta_set_airtime_weight(struct hostapd_data *hapd, const u8 *addr,
unsigned int weight) {
if (!hapd->driver || !hapd->driver->sta_set_airtime_weight)
return 0;
return hapd->driver->sta_set_airtime_weight(hapd->drv_priv, addr, weight);
} | hostapd_sta_set_airtime_weight | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_sta_set_flags(hostapd_data *hapd, u8 *addr, int total_flags,
int flags_or, int flags_and) {
if (hapd->driver && hapd->drv_priv && hapd->driver->sta_set_flags)
return hapd->driver->sta_set_flags(hapd->drv_priv, addr, total_flags,
flags_or... | int hostapd_sta_set_flags(struct hostapd_data *hapd, u8 *addr, int total_flags,
int flags_or, int flags_and) {
if (!hapd->driver || !hapd->drv_priv || !hapd->driver->sta_set_flags)
return 0;
return hapd->driver->sta_set_flags(hapd->drv_priv, addr, total_flags,
... | hostapd_sta_set_flags | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_start_dfs_cac(hostapd_iface *iface, hostapd_hw_mode mode, int freq,
int channel, int ht_enabled, int vht_enabled,
int he_enabled, int sec_channel_offset,
int oper_chwidth, int center_segment0,
int center_... | int hostapd_start_dfs_cac(struct hostapd_iface *iface,
enum hostapd_hw_mode mode, int freq, int channel,
int ht_enabled, int vht_enabled, int he_enabled,
int sec_channel_offset, int oper_chwidth,
int center_segment0,... | hostapd_start_dfs_cac | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const char *hostapd_state_text(hostapd_iface_state s) {
const char *result;
switch (s) {
case hostapd_iface_state_HAPD_IFACE_UNINITIALIZED:
result = "UNINITIALIZED";
break;
case hostapd_iface_state_HAPD_IFACE_DISABLED:
result = "DISABLED";
break;
case hostapd_iface_state_HAPD_IFACE_COUNTRY_UP... | const char *hostapd_state_text(enum hostapd_iface_state s) {
switch (s) {
case HAPD_IFACE_UNINITIALIZED:
return "UNINITIALIZED";
case HAPD_IFACE_DISABLED:
return "DISABLED";
case HAPD_IFACE_COUNTRY_UPDATE:
return "COUNTRY_UPDATE";
case HAPD_IFACE_ACS:
return "ACS";
case HAPD_IFACE_HT_SCAN:
... | hostapd_state_text | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_stop_setup_timers(hostapd_iface *iface) {
eloop_cancel_timeout((eloop_timeout_handler)ap_ht40_scan_retry, iface, 0);
} | void hostapd_stop_setup_timers(struct hostapd_iface *iface) {
eloop_cancel_timeout(ap_ht40_scan_retry, iface, NULL);
} | hostapd_stop_setup_timers | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_switch_channel(hostapd_data *hapd, csa_settings *settings) {
int ret;
int reta;
if ((hapd->iface->drv_flags & 0x80000000) != 0) {
ret = hostapd_fill_csa_settings(hapd, settings);
if (ret) {
return ret;
} else {
reta = hostapd_drv_switch_channel(hapd, settings);
free_beac... | int hostapd_switch_channel(struct hostapd_data *hapd,
struct csa_settings *settings) {
int ret;
if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA)) {
wpa_printf(MSG_INFO, "CSA is not supported");
return -1;
}
ret = hostapd_fill_csa_settings(hapd, settings);
if (ret)
... | hostapd_switch_channel | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_switch_channel_fallback(hostapd_iface *iface,
const hostapd_freq_params *freq_params) {
int bandwidth;
int seg0_idx;
int seg1_idx;
u8 bw;
LOBYTE(seg0_idx) = 0;
LOBYTE(seg1_idx) = 0;
bw = 0;
wpa_printf(2, "Restarting all CSA-related BSSes");
if (freq_p... | void hostapd_switch_channel_fallback(
struct hostapd_iface *iface,
const struct hostapd_freq_params *freq_params) {
int seg0_idx = 0, seg1_idx = 0, bw = CHANWIDTH_USE_HT;
wpa_printf(MSG_DEBUG, "Restarting all CSA-related BSSes");
if (freq_params->center_freq1)
seg0_idx = 36 + (freq_params->center_fr... | hostapd_switch_channel_fallback | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_tx_status(hostapd_data *hapd, const u8 *addr, const u8 *buf,
size_t len, int ack) {
const char *v5;
hostapd_data *hapda;
sta_info *sta;
size_t j;
hostapd_iface *iface;
hapda = hapd;
iface = hapd->iface;
sta = ap_get_sta(hapd, addr);
if (!sta && iface->num_bss > 1) ... | void hostapd_tx_status(struct hostapd_data *hapd, const u8 *addr, const u8 *buf,
size_t len, int ack) {
struct sta_info *sta;
struct hostapd_iface *iface = hapd->iface;
sta = ap_get_sta(hapd, addr);
if (sta == NULL && iface->num_bss > 1) {
size_t j;
for (j = 0; j < iface->num_bss... | hostapd_tx_status | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_update_nf(hostapd_iface *iface, hostapd_channel_data *chan,
freq_survey *survey) {
if (iface->chans_surveyed) {
if (dl_list_empty_0(&chan->survey_list)) {
chan->min_nf = survey->nf;
} else if (survey->nf < chan->min_nf) {
chan->min_nf = survey->nf;
}
if ... | static void hostapd_update_nf(struct hostapd_iface *iface,
struct hostapd_channel_data *chan,
struct freq_survey *survey) {
if (!iface->chans_surveyed) {
chan->min_nf = survey->nf;
iface->lowest_nf = survey->nf;
} else {
if (dl_list_empty(&chan... | hostapd_update_nf | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_update_time_adv(hostapd_data *hapd) {
_BYTE *v2;
_BYTE *v3;
u8 time_update_counter;
u8 *pos;
u8 *posa;
os_time t;
os_tm tm;
unsigned long v9;
v9 = __readfsqword(0x28u);
if (hapd->conf->time_advertisement != 2)
return 0;
if (os_get_time(&t) < 0 || os_gmtime(t.sec, &tm) < 0)
ret... | int hostapd_update_time_adv(struct hostapd_data *hapd) {
const int elen = 2 + 1 + 10 + 5 + 1;
struct os_time t;
struct os_tm tm;
u8 *pos;
if (hapd->conf->time_advertisement != 2)
return 0;
if (os_get_time(&t) < 0 || os_gmtime(t.sec, &tm) < 0)
return -1;
if (!hapd->time_adv) {
hapd->time_adv... | hostapd_update_time_adv | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_update_wps(hostapd_data *hapd) {
wps_context *wps;
hostapd_bss_config *conf;
wps = hapd->wps;
conf = hapd->conf;
if (wps) {
wps->friendly_name = conf->friendly_name;
wps->manufacturer_url = conf->manufacturer_url;
wps->model_description = conf->model_description;
wps->model_url =... | void hostapd_update_wps(struct hostapd_data *hapd) {
struct wps_context *wps = hapd->wps;
struct hostapd_bss_config *conf = hapd->conf;
if (!wps)
return;
#ifdef CONFIG_WPS_UPNP
wps->friendly_name = conf->friendly_name;
wps->manufacturer_url = conf->manufacturer_url;
wps->model_description = conf->mode... | hostapd_update_wps | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_validate_bssid_configuration(hostapd_iface *iface) {
unsigned int i;
unsigned int ia;
unsigned int ib;
unsigned int ic;
unsigned int id;
unsigned int ie;
unsigned int bits;
unsigned int j;
unsigned int ja;
unsigned int jb;
int auto_addr;
hostapd_data *hapd;
u8 mask[6];
unsigned l... | static int hostapd_validate_bssid_configuration(struct hostapd_iface *iface) {
u8 mask[ETH_ALEN] = {0};
struct hostapd_data *hapd = iface->bss[0];
unsigned int i = iface->conf->num_bss, bits = 0, j;
int auto_addr = 0;
if (hostapd_drv_none(hapd))
return 0;
if (iface->conf->use_driver_iface_addr)
re... | hostapd_validate_bssid_configuration | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const u8 *hostapd_vendor_wpa_ie(hostapd_data *hapd, u32 vendor_type) {
size_t ies_len;
const u8 *ies;
unsigned long v5;
v5 = __readfsqword(0x28u);
ies = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ies_len);
if (ies)
return get_vendor_ie(ies, ies_len, vendor_type);
else
return 0;
} | static const u8 *hostapd_vendor_wpa_ie(struct hostapd_data *hapd,
u32 vendor_type) {
const u8 *ies;
size_t ies_len;
ies = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ies_len);
if (!ies)
return NULL;
return get_vendor_ie(ies, ies_len, vendor_type);
} | hostapd_vendor_wpa_ie | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_vlan_if_add(hostapd_data *hapd, const char *ifname) {
u8 if_addr[6];
char force_ifname[24];
unsigned long v5;
v5 = __readfsqword(0x28u);
return hostapd_if_add(hapd, wpa_driver_if_type_WPA_IF_AP_VLAN, ifname,
hapd->own_addr, 0, 0, force_ifname, if_addr, 0, 0);
} | int hostapd_vlan_if_add(struct hostapd_data *hapd, const char *ifname) {
char force_ifname[IFNAMSIZ];
u8 if_addr[ETH_ALEN];
return hostapd_if_add(hapd, WPA_IF_AP_VLAN, ifname, hapd->own_addr, NULL,
NULL, force_ifname, if_addr, NULL, 0);
} | hostapd_vlan_if_add | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_vlan_if_remove(hostapd_data *hapd, const char *ifname) {
return hostapd_if_remove(hapd, wpa_driver_if_type_WPA_IF_AP_VLAN, ifname);
} | int hostapd_vlan_if_remove(struct hostapd_data *hapd, const char *ifname) {
return hostapd_if_remove(hapd, WPA_IF_AP_VLAN, ifname);
} | hostapd_vlan_if_remove | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_vlan_valid(hostapd_vlan *vlan, vlan_description *vlan_desc) {
int i;
if (!vlan_desc->notempty || vlan_desc->untagged > 0xFFEu)
return 0;
for (i = 0; i <= 31; ++i) {
if (vlan_desc->tagged[i] > 0xFFEu)
return 0;
}
if (!vlan_desc->untagged && !vlan_desc->tagged[0])
return 0;
whil... | int hostapd_vlan_valid(struct hostapd_vlan *vlan,
struct vlan_description *vlan_desc) {
struct hostapd_vlan *v = vlan;
int i;
if (!vlan_desc->notempty || vlan_desc->untagged < 0 ||
vlan_desc->untagged > MAX_VLAN_ID)
return 0;
for (i = 0; i < MAX_NUM_TAGGED_VLAN; i++) {
if (... | hostapd_vlan_valid | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wireless_event_rtm_newlink(void *ctx, ifinfomsg *ifi, u8 *buf,
size_t len) {
int attrlen;
attrlen = len;
while (attrlen > 0 && *(_WORD *)buf > 3u &&
attrlen >= *(unsigned short *)buf) {
if (*((_WORD *)buf + 1) == 11)
hostapd_wireless_event_w... | static void hostapd_wireless_event_rtm_newlink(void *ctx, struct ifinfomsg *ifi,
u8 *buf, size_t len) {
struct hostap_driver_data *drv = ctx;
int attrlen, rta_len;
struct rtattr *attr;
attrlen = len;
attr = (struct rtattr *)buf;
rta_len = RTA_ALIGN(sizeof(str... | hostapd_wireless_event_rtm_newlink | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wireless_event_wireless(hostap_driver_data *drv, char *data,
unsigned int len) {
char *pos;
char *custom;
char *end;
char *buf;
iw_event iwe_buf;
unsigned long v8;
long savedregs;
v8 = __readfsqword(0x28u);
pos = data;
end = &data[len];
while ((un... | static void hostapd_wireless_event_wireless(struct hostap_driver_data *drv,
char *data, unsigned int len) {
struct iw_event iwe_buf, *iwe = &iwe_buf;
char *pos, *end, *custom, *buf;
pos = data;
end = data + len;
while ((size_t)(end - pos) >= IW_EV_LCP_LEN) {
... | hostapd_wireless_event_wireless | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wireless_event_wireless_custom(hostap_driver_data *drv,
char *custom) {
char *pos;
wpa_event_data data;
u8 addr[6];
unsigned long v5;
v5 = __readfsqword(0x28u);
wpa_printf(2, "Custom wireless event: '%s'", custom);
if (!strncmp(custom, "MLME-MICHAE... | static void
hostapd_wireless_event_wireless_custom(struct hostap_driver_data *drv,
char *custom) {
wpa_printf(MSG_DEBUG, "Custom wireless event: '%s'", custom);
if (strncmp(custom, "MLME-MICHAELMICFAILURE.indication", 33) == 0) {
char *pos;
u8 addr[ETH_ALEN];
pos ... | hostapd_wireless_event_wireless_custom | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wmm_action(hostapd_data *hapd, const ieee80211_mgmt *mgmt,
size_t len) {
int left;
sta_info *sta;
ieee802_11_elems elems;
unsigned long v7;
v7 = __readfsqword(0x28u);
left = len - 28;
sta = ap_get_sta(hapd, mgmt->sa);
if (sta && (sta->flags & 0x202) == 0x202) {
... | void hostapd_wmm_action(struct hostapd_data *hapd,
const struct ieee80211_mgmt *mgmt, size_t len) {
int action_code;
int left = len - IEEE80211_HDRLEN - 4;
const u8 *pos = ((const u8 *)mgmt) + IEEE80211_HDRLEN + 4;
struct ieee802_11_elems elems;
struct sta_info *sta = ap_get_sta(hapd, ... | hostapd_wmm_action | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
wpa_state_machine *hostapd_wpa_auth_add_sta(void *ctx, const u8 *sta_addr) {
int ret;
sta_info *sta;
wpa_printf(2,
"Add station entry for %02x:%02x:%02x:%02x:%02x:%02x based on WPA "
"authenticator callback",
*sta_addr, sta_addr[1], sta_addr[2], sta_addr[3], sta_addr[4],
... | static struct wpa_state_machine *hostapd_wpa_auth_add_sta(void *ctx,
const u8 *sta_addr) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
int ret;
wpa_printf(MSG_DEBUG,
"Add station entry for " MACSTR
" based on WPA aut... | hostapd_wpa_auth_add_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_add_sta_ft(void *ctx, const u8 *sta_addr) {
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, sta_addr);
if (!sta)
return -1;
if ((*(_QWORD *)(*(_QWORD *)ctx + 2160LL) & 0x10000000000LL) == 0 ||
(sta->flags & 0x400) == 0 || !ap_sta_is_authorized(sta) ||
(*(_DWORD *)(*((_... | static int hostapd_wpa_auth_add_sta_ft(void *ctx, const u8 *sta_addr) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
sta = ap_get_sta(hapd, sta_addr);
if (!sta)
return -1;
if (FULL_AP_CLIENT_STATE_SUPP(hapd->iface->drv_flags) &&
(sta->flags & WLAN_STA_MFP) && ap_sta_is_authorized(sta) &&... | hostapd_wpa_auth_add_sta_ft | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_add_tspec(void *ctx, const u8 *sta_addr, u8 *tspec_ie,
size_t tspec_ielen) {
return hostapd_add_tspec((hostapd_data *)ctx, sta_addr, tspec_ie,
tspec_ielen);
} | static int hostapd_wpa_auth_add_tspec(void *ctx, const u8 *sta_addr,
u8 *tspec_ie, size_t tspec_ielen) {
struct hostapd_data *hapd = ctx;
return hostapd_add_tspec(hapd, sta_addr, tspec_ie, tspec_ielen);
} | hostapd_wpa_auth_add_tspec | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wpa_auth_conf(hostapd_bss_config *conf, hostapd_config *iconf,
wpa_auth_config *wconf) {
int sae_pw_id;
memset(wconf, 0, sizeof(wpa_auth_config));
wconf->wpa = conf->wpa;
wconf->extended_key_id = conf->extended_key_id;
wconf->wpa_key_mgmt = conf->wpa_key_mgmt;
wconf-... | static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf,
struct hostapd_config *iconf,
struct wpa_auth_config *wconf) {
int sae_pw_id;
os_memset(wconf, 0, sizeof(*wconf));
wconf->wpa = conf->wpa;
wconf->extended_key_id = conf->extend... | hostapd_wpa_auth_conf | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wpa_auth_disconnect(void *ctx, const u8 *addr, u16 reason) {
wpa_printf(2,
"%s: WPA authenticator requests disconnect: STA "
"%02x:%02x:%02x:%02x:%02x:%02x reason %d",
"hostapd_wpa_auth_disconnect", *addr, addr[1], addr[2], addr[3],
addr[4], addr[5], re... | static void hostapd_wpa_auth_disconnect(void *ctx, const u8 *addr, u16 reason) {
struct hostapd_data *hapd = ctx;
wpa_printf(MSG_DEBUG,
"%s: WPA authenticator requests disconnect: "
"STA " MACSTR " reason %d",
__func__, MAC2STR(addr), reason);
ap_sta_disconnect(hapd, NULL, a... | hostapd_wpa_auth_disconnect | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_for_each_auth(void *ctx,
int (*cb)(wpa_authenticator *, void *),
void *cb_ctx) {
wpa_auth_iface_iter_data data;
unsigned long v5;
v5 = __readfsqword(0x28u);
if (!**(_QWORD **)ctx || !*(_QWORD *)(**(_QWORD **)ctx + 32LL))... | static int hostapd_wpa_auth_for_each_auth(
void *ctx, int (*cb)(struct wpa_authenticator *sm, void *ctx),
void *cb_ctx) {
struct hostapd_data *hapd = ctx;
struct wpa_auth_iface_iter_data data;
if (hapd->iface->interfaces == NULL ||
hapd->iface->interfaces->for_each_interface == NULL)
return -1;
... | hostapd_wpa_auth_for_each_auth | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_for_each_sta(void *ctx,
int (*cb)(wpa_state_machine *, void *),
void *cb_ctx) {
sta_info *sta;
for (sta = (sta_info *)*((_QWORD *)ctx + 5); sta; sta = sta->next) {
if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx))
return 1... | static int hostapd_wpa_auth_for_each_sta(void *ctx,
int (*cb)(struct wpa_state_machine *sm,
void *ctx),
void *cb_ctx) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
for (... | hostapd_wpa_auth_for_each_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_ft_iter(hostapd_iface *iface, void *ctx) {
size_t j;
hostapd_data *hapd;
wpa_ft_rrb_rx_later_data *data;
for (j = 0;; ++j) {
if (j >= iface->num_bss)
return 0;
hapd = iface->bss[j];
if (hapd != *(hostapd_data **)ctx && hapd->wpa_auth &&
!memcmp(hapd->own_addr, *((... | static int hostapd_wpa_auth_ft_iter(struct hostapd_iface *iface, void *ctx) {
struct wpa_auth_ft_iface_iter_data *idata = ctx;
struct wpa_ft_rrb_rx_later_data *data;
struct hostapd_data *hapd;
size_t j;
for (j = 0; j < iface->num_bss; j++) {
hapd = iface->bss[j];
if (hapd == idata->src_hapd || !hapd-... | hostapd_wpa_auth_ft_iter | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_get_eapol(void *ctx, const u8 *addr,
wpa_eapol_variable var) {
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, addr);
if (!sta || !sta->eapol_sm)
return -1;
if (var == WPA_EAPOL_keyRun)
return sta->eapol_sm->keyRun;
if (var == WPA_EAPOL_keyAvai... | static int hostapd_wpa_auth_get_eapol(void *ctx, const u8 *addr,
wpa_eapol_variable var) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta = ap_get_sta(hapd, addr);
if (sta == NULL || sta->eapol_sm == NULL)
return -1;
switch (var) {
case WPA_EAPOL_keyRun:
re... | hostapd_wpa_auth_get_eapol | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
size_t hostapd_wpa_auth_get_identity(void *ctx, const u8 *sta_addr,
const u8 **buf) {
size_t len;
hostapd_data *hapd;
sta_info *sta;
char *identity;
unsigned long v9;
v9 = __readfsqword(0x28u);
hapd = (hostapd_data *)ctx;
sta = ap_get_sta((hostapd_data *)ctx, sta_ad... | static size_t hostapd_wpa_auth_get_identity(void *ctx, const u8 *sta_addr,
const u8 **buf) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
size_t len;
char *identity;
sta = ap_get_sta(hapd, sta_addr);
if (!sta)
return 0;
*buf = ieee802_1x_get_iden... | hostapd_wpa_auth_get_identity | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_get_msk(void *ctx, const u8 *addr, u8 *msk, size_t *len) {
size_t keylen;
hostapd_data *hapd;
sta_info *sta;
const u8 *key;
unsigned long v11;
v11 = __readfsqword(0x28u);
hapd = (hostapd_data *)ctx;
sta = ap_get_sta((hostapd_data *)ctx, addr);
if (sta) {
key = ieee802_1x_get_... | static int hostapd_wpa_auth_get_msk(void *ctx, const u8 *addr, u8 *msk,
size_t *len) {
struct hostapd_data *hapd = ctx;
const u8 *key;
size_t keylen;
struct sta_info *sta;
sta = ap_get_sta(hapd, addr);
if (sta == NULL) {
wpa_printf(MSG_DEBUG, "AUTH_GET_MSK: Cannot fi... | hostapd_wpa_auth_get_msk | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const u8 *hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr,
const u8 *p2p_dev_addr, const u8 *prev_psk,
size_t *psk_len, int *vlan_id) {
const u8 *psk;
hostapd_sta_wpa_psk_short *pos;
sta_info *sta;
rsn_pmksa_cache_entry *sa;
sta = ap_ge... | static const u8 *hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr,
const u8 *p2p_dev_addr,
const u8 *prev_psk, size_t *psk_len,
int *vlan_id) {
struct hostapd_data *hapd = ctx;
struct sta_... | hostapd_wpa_auth_get_psk | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
size_t hostapd_wpa_auth_get_radius_cui(void *ctx, const u8 *sta_addr,
const u8 **buf) {
size_t result;
sta_info *sta;
const wpabuf *b;
char *radius_cui;
size_t len;
sta = ap_get_sta((hostapd_data *)ctx, sta_addr);
if (!sta)
return 0;
b = ieee802_1x_get_radius_... | static size_t hostapd_wpa_auth_get_radius_cui(void *ctx, const u8 *sta_addr,
const u8 **buf) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
struct wpabuf *b;
size_t len;
char *radius_cui;
sta = ap_get_sta(hapd, sta_addr);
if (!sta)
return 0;
... | hostapd_wpa_auth_get_radius_cui | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_get_seqnum(void *ctx, const u8 *addr, int idx, u8 *seq) {
return hostapd_get_seqnum(*((const char **)ctx + 2), (hostapd_data *)ctx,
addr, idx, seq);
} | static int hostapd_wpa_auth_get_seqnum(void *ctx, const u8 *addr, int idx,
u8 *seq) {
struct hostapd_data *hapd = ctx;
return hostapd_get_seqnum(hapd->conf->iface, hapd, addr, idx, seq);
} | hostapd_wpa_auth_get_seqnum | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_get_session_timeout(void *ctx, const u8 *sta_addr) {
int result;
sta_info *sta;
os_reltime now;
os_reltime remaining;
unsigned long v6;
v6 = __readfsqword(0x28u);
sta = ap_get_sta((hostapd_data *)ctx, sta_addr);
if (!sta || (*((_BYTE *)sta + 98) & 8) == 0)
return 0;
os_get_re... | static int hostapd_wpa_auth_get_session_timeout(void *ctx, const u8 *sta_addr) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
struct os_reltime now, remaining;
sta = ap_get_sta(hapd, sta_addr);
if (!sta || !sta->session_timeout_set)
return 0;
os_get_reltime(&now);
if (os_reltime_before(&st... | hostapd_wpa_auth_get_session_timeout | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_get_vlan(void *ctx, const u8 *sta_addr,
vlan_description *vlan) {
vlan_description *vlan_desc;
long v5;
long v6;
long v7;
long v8;
long v9;
long v10;
long v11;
long v12;
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, sta_addr);
if (!sta)
... | static int hostapd_wpa_auth_get_vlan(void *ctx, const u8 *sta_addr,
struct vlan_description *vlan) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
sta = ap_get_sta(hapd, sta_addr);
if (!sta)
return -1;
if (sta->vlan_desc)
*vlan = *sta->vlan_desc;
else
... | hostapd_wpa_auth_get_vlan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wpa_auth_logger(void *ctx, const u8 *addr, logger_level level,
const char *txt) {
if (level == LOGGER_INFO) {
hostapd_logger(ctx, addr, 8u, 2, "%s", txt);
} else if (level == LOGGER_WARNING) {
hostapd_logger(ctx, addr, 8u, 4, "%s", txt);
} else {
hostapd_logge... | static void hostapd_wpa_auth_logger(void *ctx, const u8 *addr,
logger_level level, const char *txt) {
#ifndef CONFIG_NO_HOSTAPD_LOGGER
struct hostapd_data *hapd = ctx;
int hlevel;
switch (level) {
case LOGGER_WARNING:
hlevel = HOSTAPD_LEVEL_WARNING;
break;
case LOG... | hostapd_wpa_auth_logger | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_mic_failure_report(void *ctx, const u8 *addr) {
return michael_mic_failure_0((hostapd_data *)ctx, addr, 0);
} | static int hostapd_wpa_auth_mic_failure_report(void *ctx, const u8 *addr) {
struct hostapd_data *hapd = ctx;
return michael_mic_failure(hapd, addr, 0);
} | hostapd_wpa_auth_mic_failure_report | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_oui_iter(hostapd_iface *iface, void *ctx) {
size_t j;
hostapd_data *src_hapd;
hostapd_data *hapd;
oui_deliver_later_data *data;
src_hapd = *(hostapd_data **)ctx;
for (j = 0; j < iface->num_bss; ++j) {
hapd = iface->bss[j];
if (hapd != src_hapd && wpa_key_mgmt_ft(hapd->conf->wpa... | static int hostapd_wpa_auth_oui_iter(struct hostapd_iface *iface, void *ctx) {
struct wpa_auth_oui_iface_iter_data *idata = ctx;
struct oui_deliver_later_data *data;
struct hostapd_data *hapd, *src_hapd = idata->src_hapd;
size_t j;
for (j = 0; j < iface->num_bss; j++) {
hapd = iface->bss[j];
if (hapd... | hostapd_wpa_auth_oui_iter | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wpa_auth_psk_failure_report(void *ctx, const u8 *addr) {
wpa_msg(*((void **)ctx + 297), 3,
"AP-STA-POSSIBLE-PSK-MISMATCH %02x:%02x:%02x:%02x:%02x:%02x", *addr,
addr[1], addr[2], addr[3], addr[4], addr[5]);
} | static void hostapd_wpa_auth_psk_failure_report(void *ctx, const u8 *addr) {
struct hostapd_data *hapd = ctx;
wpa_msg(hapd->msg_ctx, MSG_INFO, AP_STA_POSSIBLE_PSK_MISMATCH MACSTR,
MAC2STR(addr));
} | hostapd_wpa_auth_psk_failure_report | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_send_eapol(void *ctx, const u8 *addr, const u8 *data,
size_t data_len, int encrypt) {
u32 flags;
sta_info *sta;
flags = 0;
sta = ap_get_sta((hostapd_data *)ctx, addr);
if (sta)
flags = hostapd_sta_flags_to_drv(sta->flags);
return hostapd_drv_hapd_sen... | int hostapd_wpa_auth_send_eapol(void *ctx, const u8 *addr, const u8 *data,
size_t data_len, int encrypt) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
u32 flags = 0;
#ifdef CONFIG_TESTING_OPTIONS
if (hapd->ext_eapol_frame_io) {
size_t hex_len = 2 * data_len + 1;
... | hostapd_wpa_auth_send_eapol | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_send_ether(void *ctx, const u8 *dst, u16 proto,
const u8 *data, size_t data_len) {
int ret;
l2_ethhdr *buf;
wpa_auth_ft_iface_iter_data idata;
unsigned long v12;
v12 = __readfsqword(0x28u);
if (proto == 0x890D) {
if (**(_QWORD **)ctx) {
if (*(_... | static int hostapd_wpa_auth_send_ether(void *ctx, const u8 *dst, u16 proto,
const u8 *data, size_t data_len) {
struct hostapd_data *hapd = ctx;
struct l2_ethhdr *buf;
int ret;
#ifdef CONFIG_TESTING_OPTIONS
if (hapd->ext_eapol_frame_io && proto == ETH_P_EAPOL) {
size_t... | hostapd_wpa_auth_send_ether | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_send_ft_action(void *ctx, const u8 *dst, const u8 *data,
size_t data_len) {
int res;
sta_info *sta;
ieee80211_mgmt *m;
sta = ap_get_sta((hostapd_data *)ctx, dst);
if (!sta || !sta->wpa_sm)
return -1;
m = (ieee80211_mgmt *)os_zalloc(data_len + 40)... | static int hostapd_wpa_auth_send_ft_action(void *ctx, const u8 *dst,
const u8 *data, size_t data_len) {
struct hostapd_data *hapd = ctx;
int res;
struct ieee80211_mgmt *m;
size_t mlen;
struct sta_info *sta;
sta = ap_get_sta(hapd, dst);
if (sta == NULL || sta->wp... | hostapd_wpa_auth_send_ft_action | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_send_oui(void *ctx, const u8 *dst, u8 oui_suffix,
const u8 *data, size_t data_len) {
eth_p_oui_ctx *oui_ctx;
wpa_auth_oui_iface_iter_data idata;
unsigned long v11;
v11 = __readfsqword(0x28u);
wpa_printf(2,
"RRB(%s): send to dst=%02x:%02x:%02x:%0... | static int hostapd_wpa_auth_send_oui(void *ctx, const u8 *dst, u8 oui_suffix,
const u8 *data, size_t data_len) {
#ifdef CONFIG_ETH_P_OUI
struct hostapd_data *hapd = ctx;
struct eth_p_oui_ctx *oui_ctx;
wpa_printf(
MSG_DEBUG, "RRB(%s): send to dst=" MACSTR " oui_suffix=%u... | hostapd_wpa_auth_send_oui | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wpa_auth_set_eapol(void *ctx, const u8 *addr,
wpa_eapol_variable var, int value) {
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, addr);
if (sta) {
switch (var) {
case WPA_EAPOL_portEnabled:
ieee802_1x_notify_port_enabled(sta->eapol_sm, value != 0)... | static void hostapd_wpa_auth_set_eapol(void *ctx, const u8 *addr,
wpa_eapol_variable var, int value) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta = ap_get_sta(hapd, addr);
if (sta == NULL)
return;
switch (var) {
case WPA_EAPOL_portEnabled:
ieee802_1x_n... | hostapd_wpa_auth_set_eapol | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_set_identity(void *ctx, const u8 *sta_addr,
const u8 *identity, size_t identity_len) {
eapol_state_machine *eapol_sm;
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, sta_addr);
if (!sta)
return -1;
free(sta->identity);
sta->identity = 0;
if ... | static int hostapd_wpa_auth_set_identity(void *ctx, const u8 *sta_addr,
const u8 *identity,
size_t identity_len) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
sta = ap_get_sta(hapd, sta_addr);
if (!sta)
return -1;
... | hostapd_wpa_auth_set_identity | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, wpa_alg alg,
const u8 *addr, int idx, u8 *key, size_t key_len,
key_flag key_flag) {
const char *ifname;
ifname = (const char *)*((_QWORD *)ctx + 2);
if (vlan_id > 0) {
ifname = hostapd_get_vlan_id_i... | static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg,
const u8 *addr, int idx, u8 *key,
size_t key_len, enum key_flag key_flag) {
struct hostapd_data *hapd = ctx;
const char *ifname = hapd->conf->iface;
if (vlan_id > ... | hostapd_wpa_auth_set_key | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_set_radius_cui(void *ctx, const u8 *sta_addr,
const u8 *radius_cui,
size_t radius_cui_len) {
eapol_state_machine *eapol_sm;
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, sta_addr);
if (!sta)
return -1;
fre... | static int hostapd_wpa_auth_set_radius_cui(void *ctx, const u8 *sta_addr,
const u8 *radius_cui,
size_t radius_cui_len) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
sta = ap_get_sta(hapd, sta_addr);
if (!sta)
r... | hostapd_wpa_auth_set_radius_cui | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wpa_auth_set_session_timeout(void *ctx, const u8 *sta_addr,
int session_timeout) {
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, sta_addr);
if (sta) {
if (session_timeout) {
os_get_reltime(&sta->session_timeout);
sta->session_timeout.s... | static void hostapd_wpa_auth_set_session_timeout(void *ctx, const u8 *sta_addr,
int session_timeout) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
sta = ap_get_sta(hapd, sta_addr);
if (!sta)
return;
if (session_timeout) {
os_get_reltime(&st... | hostapd_wpa_auth_set_session_timeout | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_set_vlan(void *ctx, const u8 *sta_addr,
vlan_description *vlan) {
const char *v4;
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, sta_addr);
if (!sta || !sta->wpa_sm)
return -1;
if (!vlan->notempty ||
hostapd_vlan_valid(*(hostapd_vlan **)(*((_... | static int hostapd_wpa_auth_set_vlan(void *ctx, const u8 *sta_addr,
struct vlan_description *vlan) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
sta = ap_get_sta(hapd, sta_addr);
if (!sta || !sta->wpa_sm)
return -1;
if (vlan->notempty && !hostapd_vlan_vali... | hostapd_wpa_auth_set_vlan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_auth_update_vlan(void *ctx, const u8 *addr, int vlan_id) {
sta_info *sta;
vlan_description vlan_desc;
unsigned long v7;
v7 = __readfsqword(0x28u);
sta = ap_get_sta((hostapd_data *)ctx, addr);
if (!sta)
return -1;
if ((*(_QWORD *)(*(_QWORD *)ctx + 2160LL) & 0x800000000000000LL) != 0) {... | static int hostapd_wpa_auth_update_vlan(void *ctx, const u8 *addr,
int vlan_id) {
#ifndef CONFIG_NO_VLAN
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
sta = ap_get_sta(hapd, addr);
if (!sta)
return -1;
if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_VLAN_... | hostapd_wpa_auth_update_vlan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wpa_ft_rrb_rx_later(void *eloop_ctx, void *timeout_ctx) {
wpa_ft_rrb_rx_later_data *data;
wpa_ft_rrb_rx_later_data *n;
data = (wpa_ft_rrb_rx_later_data *)*((_QWORD *)eloop_ctx + 323);
n = (wpa_ft_rrb_rx_later_data *)data->list.next;
while (data != (wpa_ft_rrb_rx_later_data *)((char *)eloop_ctx +... | static void hostapd_wpa_ft_rrb_rx_later(void *eloop_ctx, void *timeout_ctx) {
struct hostapd_data *hapd = eloop_ctx;
struct wpa_ft_rrb_rx_later_data *data, *n;
dl_list_for_each_safe(data, n, &hapd->l2_queue,
struct wpa_ft_rrb_rx_later_data, list) {
if (hapd->wpa_auth) {
wpa_ft_r... | hostapd_wpa_ft_rrb_rx_later | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
eth_p_oui_ctx *hostapd_wpa_get_oui(hostapd_data *hapd, u8 oui_suffix) {
eth_p_oui_ctx *result;
switch (oui_suffix) {
case 1u:
result = hapd->oui_pull;
break;
case 2u:
result = hapd->oui_resp;
break;
case 3u:
result = hapd->oui_push;
break;
case 4u:
result = hapd->oui_sreq;
b... | static struct eth_p_oui_ctx *hostapd_wpa_get_oui(struct hostapd_data *hapd,
u8 oui_suffix) {
switch (oui_suffix) {
#ifdef CONFIG_IEEE80211R_AP
case FT_PACKET_R0KH_R1KH_PULL:
return hapd->oui_pull;
case FT_PACKET_R0KH_R1KH_RESP:
return hapd->oui_resp;
case... | hostapd_wpa_get_oui | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const u8 *hostapd_wpa_ie(hostapd_data *hapd, u8 eid) {
size_t ies_len;
const u8 *ies;
unsigned long v5;
v5 = __readfsqword(0x28u);
ies = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ies_len);
if (ies)
return get_ie(ies, ies_len, eid);
else
return 0;
} | const u8 *hostapd_wpa_ie(struct hostapd_data *hapd, u8 eid) {
const u8 *ies;
size_t ies_len;
ies = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ies_len);
if (!ies)
return NULL;
return get_ie(ies, ies_len, eid);
} | hostapd_wpa_ie | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wpa_register_ft_oui(hostapd_data *hapd, const char *ft_iface) {
hapd->oui_pull =
eth_p_oui_register(hapd, ft_iface, 1u,
(void (*)(void *, const u8 *, const u8 *, u8,
const u8 *, size_t))hostapd_rrb_oui_receive,
hapd... | static int hostapd_wpa_register_ft_oui(struct hostapd_data *hapd,
const char *ft_iface) {
hapd->oui_pull = eth_p_oui_register(hapd, ft_iface, FT_PACKET_R0KH_R1KH_PULL,
hostapd_rrb_oui_receive, hapd);
if (!hapd->oui_pull)
return -1;
... | hostapd_wpa_register_ft_oui | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wpa_unregister_ft_oui(hostapd_data *hapd) {
eth_p_oui_unregister(hapd->oui_pull);
hapd->oui_pull = 0;
eth_p_oui_unregister(hapd->oui_resp);
hapd->oui_resp = 0;
eth_p_oui_unregister(hapd->oui_push);
hapd->oui_push = 0;
eth_p_oui_unregister(hapd->oui_sreq);
hapd->oui_sreq = 0;
eth_p_oui_unr... | static void hostapd_wpa_unregister_ft_oui(struct hostapd_data *hapd) {
eth_p_oui_unregister(hapd->oui_pull);
hapd->oui_pull = NULL;
eth_p_oui_unregister(hapd->oui_resp);
hapd->oui_resp = NULL;
eth_p_oui_unregister(hapd->oui_push);
hapd->oui_push = NULL;
eth_p_oui_unregister(hapd->oui_sreq);
hapd->oui_sr... | hostapd_wpa_unregister_ft_oui | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_add_nfc_password_token(hostapd_data *hapd,
wps_parse_attr *attr) {
wps_nfc_password_token_data data;
unsigned long v4;
v4 = __readfsqword(0x28u);
data.oob_dev_pw = attr->oob_dev_password;
data.oob_dev_pw_len = attr->oob_dev_password_len;
data.added = 0... | static int hostapd_wps_add_nfc_password_token(struct hostapd_data *hapd,
struct wps_parse_attr *attr) {
struct wps_nfc_password_token_data data;
data.oob_dev_pw = attr->oob_dev_password;
data.oob_dev_pw_len = attr->oob_dev_password_len;
data.added = 0;
if (hostap... | hostapd_wps_add_nfc_password_token | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_add_pin(hostapd_data *hapd, const u8 *addr, const char *uuid,
const char *pin, int timeout) {
wps_add_pin_data data;
u8 u[24];
unsigned long v10;
v10 = __readfsqword(0x28u);
data.addr = addr;
data.uuid = u;
data.pin = (const u8 *)pin;
data.pin_len = strlen(pin);
... | int hostapd_wps_add_pin(struct hostapd_data *hapd, const u8 *addr,
const char *uuid, const char *pin, int timeout) {
u8 u[UUID_LEN];
struct wps_add_pin_data data;
data.addr = addr;
data.uuid = u;
data.pin = (const u8 *)pin;
data.pin_len = os_strlen(pin);
data.timeout = timeout;
... | hostapd_wps_add_pin | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_ap_pin_disable(hostapd_data *hapd) {
wpa_printf(2, "WPS: Disabling AP PIN");
hostapd_wps_for_each(hapd,
(int (*)(hostapd_data *, void *))wps_ap_pin_disable, 0);
} | void hostapd_wps_ap_pin_disable(struct hostapd_data *hapd) {
wpa_printf(MSG_DEBUG, "WPS: Disabling AP PIN");
hostapd_wps_for_each(hapd, wps_ap_pin_disable, NULL);
} | hostapd_wps_ap_pin_disable | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_ap_pin_enable(hostapd_data *hapd, int timeout) {
wpa_printf(2, "WPS: Enabling AP PIN (timeout=%d)", timeout);
hapd->ap_pin_failures = 0;
hapd->ap_pin_failures_consecutive = 0;
hapd->conf->ap_setup_locked = 0;
if (hapd->wps->ap_setup_locked) {
wpa_msg(hapd->msg_ctx, 3, "WPS-AP-SETUP-UNLOCK... | static void hostapd_wps_ap_pin_enable(struct hostapd_data *hapd, int timeout) {
wpa_printf(MSG_DEBUG, "WPS: Enabling AP PIN (timeout=%d)", timeout);
hapd->ap_pin_failures = 0;
hapd->ap_pin_failures_consecutive = 0;
hapd->conf->ap_setup_locked = 0;
if (hapd->wps->ap_setup_locked) {
wpa_msg(hapd->msg_ctx, M... | hostapd_wps_ap_pin_enable | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const char *hostapd_wps_ap_pin_get(hostapd_data *hapd) {
return hapd->conf->ap_pin;
} | const char *hostapd_wps_ap_pin_get(struct hostapd_data *hapd) {
return hapd->conf->ap_pin;
} | hostapd_wps_ap_pin_get | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const char *hostapd_wps_ap_pin_random(hostapd_data *hapd, int timeout) {
unsigned int pin;
wps_ap_pin_data data;
unsigned long v5;
v5 = __readfsqword(0x28u);
if (wps_generate_pin(&pin) < 0)
return 0;
snprintf(data.pin_txt, 9u, "%08u", pin);
data.timeout = timeout;
hostapd_wps_for_each(hapd, (int (*... | const char *hostapd_wps_ap_pin_random(struct hostapd_data *hapd, int timeout) {
unsigned int pin;
struct wps_ap_pin_data data;
if (wps_generate_pin(&pin) < 0)
return NULL;
os_snprintf(data.pin_txt, sizeof(data.pin_txt), "%08u", pin);
data.timeout = timeout;
hostapd_wps_for_each(hapd, wps_ap_pin_set, &d... | hostapd_wps_ap_pin_random | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_ap_pin_set(hostapd_data *hapd, const char *pin, int timeout) {
int ret;
wps_ap_pin_data data;
unsigned long v7;
v7 = __readfsqword(0x28u);
ret = snprintf(data.pin_txt, 9u, "%s", pin);
if (os_snprintf_error_17(9u, ret))
return -1;
data.timeout = timeout;
return hostapd_wps_for_each(
... | int hostapd_wps_ap_pin_set(struct hostapd_data *hapd, const char *pin,
int timeout) {
struct wps_ap_pin_data data;
int ret;
ret = os_snprintf(data.pin_txt, sizeof(data.pin_txt), "%s", pin);
if (os_snprintf_error(sizeof(data.pin_txt), ret))
return -1;
data.timeout = timeout;
r... | hostapd_wps_ap_pin_set | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_ap_pin_success(hostapd_data *hapd) {
hostapd_wps_for_each(hapd,
(int (*)(hostapd_data *, void *))wps_ap_pin_success, 0);
} | static void hostapd_wps_ap_pin_success(struct hostapd_data *hapd) {
hostapd_wps_for_each(hapd, wps_ap_pin_success, NULL);
} | hostapd_wps_ap_pin_success | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_ap_pin_timeout(void *eloop_data, void *user_ctx) {
wpa_printf(2, "WPS: AP PIN timed out");
hostapd_wps_ap_pin_disable((hostapd_data *)eloop_data);
wpa_msg(*((void **)eloop_data + 297), 3, "WPS-AP-PIN-DISABLED ");
} | static void hostapd_wps_ap_pin_timeout(void *eloop_data, void *user_ctx) {
struct hostapd_data *hapd = eloop_data;
wpa_printf(MSG_DEBUG, "WPS: AP PIN timed out");
hostapd_wps_ap_pin_disable(hapd);
wpa_msg(hapd->msg_ctx, MSG_INFO, WPS_EVENT_AP_PIN_DISABLED);
} | hostapd_wps_ap_pin_timeout | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_button_pushed(hostapd_data *hapd, const u8 *p2p_dev_addr) {
int ret;
wps_button_pushed_ctx ctx;
unsigned long v5;
v5 = __readfsqword(0x28u);
memset(&ctx, 0, sizeof(ctx));
ctx.p2p_dev_addr = p2p_dev_addr;
ret = hostapd_wps_for_each(
hapd, (int (*)(hostapd_data *, void *))wps_button_p... | int hostapd_wps_button_pushed(struct hostapd_data *hapd,
const u8 *p2p_dev_addr) {
struct wps_button_pushed_ctx ctx;
int ret;
os_memset(&ctx, 0, sizeof(ctx));
ctx.p2p_dev_addr = p2p_dev_addr;
ret = hostapd_wps_for_each(hapd, wps_button_pushed, &ctx);
if (ret == 0 && !ctx.count... | hostapd_wps_button_pushed | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_cancel(hostapd_data *hapd) {
long ctx;
unsigned long v3;
v3 = __readfsqword(0x28u);
memset(&ctx, 0, 4u);
HIDWORD(ctx) = hostapd_wps_for_each(
hapd, (int (*)(hostapd_data *, void *))wps_cancel, &ctx);
if (!ctx)
HIDWORD(ctx) = -1;
return HIDWORD(ctx);
} | int hostapd_wps_cancel(struct hostapd_data *hapd) {
struct wps_cancel_ctx ctx;
int ret;
os_memset(&ctx, 0, sizeof(ctx));
ret = hostapd_wps_for_each(hapd, wps_cancel, &ctx);
if (ret == 0 && !ctx.count)
ret = -1;
return ret;
} | hostapd_wps_cancel | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_clear_ies(hostapd_data *hapd, int deinit_only) {
wpabuf_free(hapd->wps_beacon_ie);
hapd->wps_beacon_ie = 0;
wpabuf_free(hapd->wps_probe_resp_ie);
hapd->wps_probe_resp_ie = 0;
if (deinit_only) {
if (hapd->drv_priv)
hostapd_reset_ap_wps_ie(hapd);
} else {
hostapd_set_ap_wps_ie(h... | static void hostapd_wps_clear_ies(struct hostapd_data *hapd, int deinit_only) {
wpabuf_free(hapd->wps_beacon_ie);
hapd->wps_beacon_ie = NULL;
wpabuf_free(hapd->wps_probe_resp_ie);
hapd->wps_probe_resp_ie = NULL;
if (deinit_only) {
if (hapd->drv_priv)
hostapd_reset_ap_wps_ie(hapd);
return;
}
... | hostapd_wps_clear_ies | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_config_ap(hostapd_data *hapd, const char *ssid,
const char *auth, const char *encr, const char *key) {
size_t len;
size_t lena;
wps_credential cred;
unsigned long v12;
v12 = __readfsqword(0x28u);
memset(&cred, 0, sizeof(cred));
len = strlen(ssid);
if ((len & 1)... | int hostapd_wps_config_ap(struct hostapd_data *hapd, const char *ssid,
const char *auth, const char *encr, const char *key) {
struct wps_credential cred;
size_t len;
os_memset(&cred, 0, sizeof(cred));
len = os_strlen(ssid);
if ((len & 1) || len > 2 * sizeof(cred.ssid) ||
hexs... | hostapd_wps_config_ap | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_cred_cb(void *ctx, const wps_credential *cred) {
return hostapd_wps_for_each((hostapd_data *)ctx,
(int (*)(hostapd_data *, void *))hapd_wps_cred_cb,
(void *)cred);
} | static int hostapd_wps_cred_cb(void *ctx, const struct wps_credential *cred) {
struct hostapd_data *hapd = ctx;
return hostapd_wps_for_each(hapd, hapd_wps_cred_cb, (void *)cred);
} | hostapd_wps_cred_cb | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_eap_completed(hostapd_data *hapd) {
if (eloop_deplete_timeout(0, 0, (eloop_timeout_handler)wps_reload_config,
hapd->iface, 0) == 1)
wpa_printf(2, "WPS: Reschedule immediate configuration reload");
} | void hostapd_wps_eap_completed(struct hostapd_data *hapd) {
if (eloop_deplete_timeout(0, 0, wps_reload_config, hapd->iface, NULL) == 1)
wpa_printf(MSG_DEBUG, "WPS: Reschedule immediate configuration reload");
} | hostapd_wps_eap_completed | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_enrollee_seen_cb(void *ctx, const u8 *addr, const u8 *uuid_e,
const u8 *pri_dev_type, u16 config_methods,
u16 dev_password_id, u8 request_type,
const char *dev_name) {
char *v8;
const char *dev_nam... | static void hostapd_wps_enrollee_seen_cb(void *ctx, const u8 *addr,
const u8 *uuid_e,
const u8 *pri_dev_type,
u16 config_methods,
u16 dev_password_id, u8 re... | hostapd_wps_enrollee_seen_cb | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_event_cb(void *ctx, wps_event event, wps_event_data *data) {
switch (event) {
case wps_event_WPS_EV_M2D:
wpa_msg(*((void **)ctx + 297), 3, "WPS-M2D ");
break;
case wps_event_WPS_EV_FAIL:
hostapd_wps_event_fail((hostapd_data *)ctx, (wps_event_fail *)data);
break;
case wps_event_W... | static void hostapd_wps_event_cb(void *ctx, enum wps_event event,
union wps_event_data *data) {
struct hostapd_data *hapd = ctx;
switch (event) {
case WPS_EV_M2D:
wpa_msg(hapd->msg_ctx, MSG_INFO, WPS_EVENT_M2D);
break;
case WPS_EV_FAIL:
hostapd_wps_event_fail(hapd, ... | hostapd_wps_event_cb | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_event_fail(hostapd_data *hapd, wps_event_fail *fail) {
const char *v2;
hapd->wps_stats.status = wps_status_WPS_STATUS_FAILURE;
memcpy(hapd->wps_stats.peer_addr, fail->peer_macaddr,
sizeof(hapd->wps_stats.peer_addr));
hapd->wps_stats.failure_reason = fail->error_indication;
if (fail-... | static void hostapd_wps_event_fail(struct hostapd_data *hapd,
struct wps_event_fail *fail) {
hapd->wps_stats.status = WPS_STATUS_FAILURE;
os_memcpy(hapd->wps_stats.peer_addr, fail->peer_macaddr, ETH_ALEN);
hapd->wps_stats.failure_reason = fail->error_indication;
if (fail->e... | hostapd_wps_event_fail | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_event_pbc_active(hostapd_data *hapd) {
hapd->wps_stats.pbc_status = pbc_status_WPS_PBC_STATUS_ACTIVE;
} | static void hostapd_wps_event_pbc_active(struct hostapd_data *hapd) {
hapd->wps_stats.pbc_status = WPS_PBC_STATUS_ACTIVE;
} | hostapd_wps_event_pbc_active | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_event_pbc_disable(hostapd_data *hapd) {
hapd->wps_stats.pbc_status = pbc_status_WPS_PBC_STATUS_DISABLE;
} | static void hostapd_wps_event_pbc_disable(struct hostapd_data *hapd) {
hapd->wps_stats.pbc_status = WPS_PBC_STATUS_DISABLE;
} | hostapd_wps_event_pbc_disable | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_event_pbc_overlap(hostapd_data *hapd) {
hapd->wps_stats.pbc_status = pbc_status_WPS_PBC_STATUS_OVERLAP;
} | static void hostapd_wps_event_pbc_overlap(struct hostapd_data *hapd) {
hapd->wps_stats.pbc_status = WPS_PBC_STATUS_OVERLAP;
} | hostapd_wps_event_pbc_overlap | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_event_pbc_timeout(hostapd_data *hapd) {
hapd->wps_stats.pbc_status = pbc_status_WPS_PBC_STATUS_TIMEOUT;
} | static void hostapd_wps_event_pbc_timeout(struct hostapd_data *hapd) {
hapd->wps_stats.pbc_status = WPS_PBC_STATUS_TIMEOUT;
} | hostapd_wps_event_pbc_timeout | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_event_success(hostapd_data *hapd, wps_event_success *success) {
hapd->wps_stats.pbc_status = pbc_status_WPS_PBC_STATUS_DISABLE;
hapd->wps_stats.status = wps_status_WPS_STATUS_SUCCESS;
memcpy(hapd->wps_stats.peer_addr, success, sizeof(hapd->wps_stats.peer_addr));
} | static void hostapd_wps_event_success(struct hostapd_data *hapd,
struct wps_event_success *success) {
hapd->wps_stats.pbc_status = WPS_PBC_STATUS_DISABLE;
hapd->wps_stats.status = WPS_STATUS_SUCCESS;
os_memcpy(hapd->wps_stats.peer_addr, success->peer_macaddr, ETH_ALEN);
} | hostapd_wps_event_success | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_for_each(hostapd_data *hapd,
int (*func)(hostapd_data *, void *), void *ctx) {
hostapd_iface *iface;
wps_for_each_data data;
unsigned long v6;
v6 = __readfsqword(0x28u);
iface = hapd->iface;
data.func = func;
data.ctx = ctx;
data.calling_hapd = hapd;
if (iface... | static int hostapd_wps_for_each(struct hostapd_data *hapd,
int (*func)(struct hostapd_data *h, void *ctx),
void *ctx) {
struct hostapd_iface *iface = hapd->iface;
struct wps_for_each_data data;
data.func = func;
data.ctx = ctx;
data.calling_hapd ... | hostapd_wps_for_each | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_get_mib_sta(hostapd_data *hapd, const u8 *addr, char *buf,
size_t buflen) {
if (hapd->wps)
return wps_registrar_get_info(hapd->wps->registrar, addr, buf, buflen);
else
return 0;
} | int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
char *buf, size_t buflen) {
if (hapd->wps == NULL)
return 0;
return wps_registrar_get_info(hapd->wps->registrar, addr, buf, buflen);
} | hostapd_wps_get_mib_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_lookup_pskfile_cb(void *ctx, const u8 *mac_addr,
const u8 **psk) {
const hostapd_wpa_psk *wpa_psk;
const u8 *any_psk;
const u8 *dev_psk;
any_psk = 0;
dev_psk = 0;
for (wpa_psk = *(const hostapd_wpa_psk **)(*((_QWORD *)ctx + 2) + 344LL);
wpa_psk; wpa_... | static int hostapd_wps_lookup_pskfile_cb(void *ctx, const u8 *mac_addr,
const u8 **psk) {
const struct hostapd_data *hapd = ctx;
const struct hostapd_wpa_psk *wpa_psk;
const u8 *any_psk = NULL;
const u8 *dev_psk = NULL;
for (wpa_psk = hapd->conf->ssid.wpa_psk; wpa_psk... | hostapd_wps_lookup_pskfile_cb | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_wps_new_psk_cb(void *ctx, const u8 *mac_addr,
const u8 *p2p_dev_addr, const u8 *psk,
size_t psk_len) {
hostapd_ssid *ssid;
hostapd_wpa_psk *p;
FILE *f;
char hex[72];
unsigned long v13;
v13 = __readfsqword(0x28u);
ssid = (hostapd_ssid *)(*(... | static int hostapd_wps_new_psk_cb(void *ctx, const u8 *mac_addr,
const u8 *p2p_dev_addr, const u8 *psk,
size_t psk_len) {
struct hostapd_data *hapd = ctx;
struct hostapd_wpa_psk *p;
struct hostapd_ssid *ssid = &hapd->conf->ssid;
if (is_zero_et... | hostapd_wps_new_psk_cb | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_wps_nfc_clear(wps_context *wps) {
wpa_printf(2, "WPS: Clear NFC Tag context %p", wps);
wps->ap_nfc_dev_pw_id = 0;
wpabuf_free(wps->ap_nfc_dh_pubkey);
wps->ap_nfc_dh_pubkey = 0;
wpabuf_free(wps->ap_nfc_dh_privkey);
wps->ap_nfc_dh_privkey = 0;
wpabuf_free(wps->ap_nfc_dev_pw);
wps->ap_nfc_dev_... | static void hostapd_wps_nfc_clear(struct wps_context *wps) {
#ifdef CONFIG_WPS_NFC
wpa_printf(MSG_DEBUG, "WPS: Clear NFC Tag context %p", wps);
wps->ap_nfc_dev_pw_id = 0;
wpabuf_free(wps->ap_nfc_dh_pubkey);
wps->ap_nfc_dh_pubkey = NULL;
wpabuf_free(wps->ap_nfc_dh_privkey);
wps->ap_nfc_dh_privkey = NULL;
w... | hostapd_wps_nfc_clear | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
wpabuf *hostapd_wps_nfc_config_token(hostapd_data *hapd, int ndef) {
int channel;
int v4;
wpabuf *ret;
wpabuf *tmp;
if (!hapd->wps)
return 0;
channel = hapd->iconf->channel;
v4 = hostapd_wps_rf_band_cb(hapd);
ret = wps_get_oob_cred(hapd->wps, v4, channel);
if (ndef && ret) {
tmp = ndef_build_... | struct wpabuf *hostapd_wps_nfc_config_token(struct hostapd_data *hapd,
int ndef) {
struct wpabuf *ret;
if (hapd->wps == NULL)
return NULL;
ret = wps_get_oob_cred(hapd->wps, hostapd_wps_rf_band_cb(hapd),
hapd->iconf->channel);
if (ndef &&... | hostapd_wps_nfc_config_token | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
wpabuf *hostapd_wps_nfc_hs_cr(hostapd_data *hapd, int ndef) {
wpabuf *ret;
wps_context *wps;
wpabuf *tmp;
if (!hapd->wps)
return 0;
if (!hapd->conf->wps_nfc_dh_pubkey) {
wps = hapd->wps;
if (wps_nfc_gen_dh(&hapd->conf->wps_nfc_dh_pubkey,
&hapd->conf->wps_nfc_dh_privkey) < 0... | struct wpabuf *hostapd_wps_nfc_hs_cr(struct hostapd_data *hapd, int ndef) {
struct wpabuf *ret;
if (hapd->wps == NULL)
return NULL;
if (hapd->conf->wps_nfc_dh_pubkey == NULL) {
struct wps_context *wps = hapd->wps;
if (wps_nfc_gen_dh(&hapd->conf->wps_nfc_dh_pubkey,
&hapd->conf-... | hostapd_wps_nfc_hs_cr | 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.