input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
void hostapd_event_ch_switch(hostapd_data *hapd, int freq, int ht, int offset,
int width, int cf1, int cf2, int finished) {
const char *v8;
const char *v9;
const char *v10;
const char *v11;
u8 seg0_idx;
u8 seg1_idx;
bool check_sa_query;
int chwidth;
int channel;
int is_d... | void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
int offset, int width, int cf1, int cf2,
int finished) {
#ifdef NEED_AP_MLME
int channel, chwidth, is_dfs;
u8 seg0_idx = 0, seg1_idx = 0;
size_t i;
hostapd_logger(hapd, NULL, HOST... | hostapd_event_ch_switch | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_connect_failed_reason(hostapd_data *hapd, const u8 *addr,
int reason_code) {
if (reason_code) {
if (reason_code == 1)
wpa_msg(hapd->msg_ctx, 3,
"AP-REJECTED-BLOCKED-STA %02x:%02x:%02x:%02x:%02x:%02x", *addr,
addr[1], add... | void hostapd_event_connect_failed_reason(struct hostapd_data *hapd,
const u8 *addr, int reason_code) {
switch (reason_code) {
case MAX_CLIENT_REACHED:
wpa_msg(hapd->msg_ctx, MSG_INFO, AP_REJECTED_MAX_STA MACSTR, MAC2STR(addr));
break;
case BLOCKED_CLIENT:
wpa_m... | hostapd_event_connect_failed_reason | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_dfs_cac_aborted(hostapd_data *hapd, dfs_event *radar) {
wpa_printf(2, "DFS CAC aborted on %d MHz", radar->freq);
hostapd_dfs_complete_cac(hapd->iface, 0, radar->freq, radar->ht_enabled,
radar->chan_offset, radar->chan_width, radar->cf1,
radar-... | static void hostapd_event_dfs_cac_aborted(struct hostapd_data *hapd,
struct dfs_event *radar) {
wpa_printf(MSG_DEBUG, "DFS CAC aborted on %d MHz", radar->freq);
hostapd_dfs_complete_cac(hapd->iface, 0, radar->freq, radar->ht_enabled,
radar->chan_o... | hostapd_event_dfs_cac_aborted | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_dfs_cac_finished(hostapd_data *hapd, dfs_event *radar) {
wpa_printf(2, "DFS CAC finished on %d MHz", radar->freq);
hostapd_dfs_complete_cac(hapd->iface, 1, radar->freq, radar->ht_enabled,
radar->chan_offset, radar->chan_width, radar->cf1,
rada... | static void hostapd_event_dfs_cac_finished(struct hostapd_data *hapd,
struct dfs_event *radar) {
wpa_printf(MSG_DEBUG, "DFS CAC finished on %d MHz", radar->freq);
hostapd_dfs_complete_cac(hapd->iface, 1, radar->freq, radar->ht_enabled,
radar->cha... | hostapd_event_dfs_cac_finished | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_dfs_cac_started(hostapd_data *hapd, dfs_event *radar) {
wpa_printf(2, "DFS offload CAC started on %d MHz", radar->freq);
hostapd_dfs_start_cac(hapd->iface, radar->freq, radar->ht_enabled,
radar->chan_offset, radar->chan_width, radar->cf1,
radar->cf2... | static void hostapd_event_dfs_cac_started(struct hostapd_data *hapd,
struct dfs_event *radar) {
wpa_printf(MSG_DEBUG, "DFS offload CAC started on %d MHz", radar->freq);
hostapd_dfs_start_cac(hapd->iface, radar->freq, radar->ht_enabled,
radar->chan_of... | hostapd_event_dfs_cac_started | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_dfs_nop_finished(hostapd_data *hapd, dfs_event *radar) {
wpa_printf(2, "DFS NOP finished on %d MHz", radar->freq);
hostapd_dfs_nop_finished(hapd->iface, radar->freq, radar->ht_enabled,
radar->chan_offset, radar->chan_width, radar->cf1,
radar->... | static void hostapd_event_dfs_nop_finished(struct hostapd_data *hapd,
struct dfs_event *radar) {
wpa_printf(MSG_DEBUG, "DFS NOP finished on %d MHz", radar->freq);
hostapd_dfs_nop_finished(hapd->iface, radar->freq, radar->ht_enabled,
radar->chan_o... | hostapd_event_dfs_nop_finished | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_dfs_pre_cac_expired(hostapd_data *hapd, dfs_event *radar) {
wpa_printf(2, "DFS Pre-CAC expired on %d MHz", radar->freq);
hostapd_dfs_pre_cac_expired(hapd->iface, radar->freq, radar->ht_enabled,
radar->chan_offset, radar->chan_width, radar->cf1,
... | static void hostapd_event_dfs_pre_cac_expired(struct hostapd_data *hapd,
struct dfs_event *radar) {
wpa_printf(MSG_DEBUG, "DFS Pre-CAC expired on %d MHz", radar->freq);
hostapd_dfs_pre_cac_expired(hapd->iface, radar->freq, radar->ht_enabled,
... | hostapd_event_dfs_pre_cac_expired | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_dfs_radar_detected(hostapd_data *hapd, dfs_event *radar) {
wpa_printf(2, "DFS radar detected on %d MHz", radar->freq);
hostapd_dfs_radar_detected(hapd->iface, radar->freq, radar->ht_enabled,
radar->chan_offset, radar->chan_width, radar->cf1,
... | static void hostapd_event_dfs_radar_detected(struct hostapd_data *hapd,
struct dfs_event *radar) {
wpa_printf(MSG_DEBUG, "DFS radar detected on %d MHz", radar->freq);
hostapd_dfs_radar_detected(hapd->iface, radar->freq, radar->ht_enabled,
rad... | hostapd_event_dfs_radar_detected | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_eapol_rx(hostapd_data *hapd, const u8 *src, const u8 *data,
size_t data_len) {
hostapd_data *hapda;
size_t j;
hostapd_iface *iface;
sta_info *sta;
hapda = hapd;
iface = hapd->iface;
for (j = 0; j < iface->num_bss; ++j) {
sta = ap_get_sta(iface->bss[j], s... | static void hostapd_event_eapol_rx(struct hostapd_data *hapd, const u8 *src,
const u8 *data, size_t data_len) {
struct hostapd_iface *iface = hapd->iface;
struct sta_info *sta;
size_t j;
for (j = 0; j < iface->num_bss; j++) {
sta = ap_get_sta(iface->bss[j], src);
if (... | hostapd_event_eapol_rx | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_get_survey(hostapd_iface *iface,
survey_results *survey_results) {
freq_survey *survey;
freq_survey *tmp;
hostapd_channel_data *chan;
if (dl_list_empty_0(&survey_results->survey_list)) {
wpa_printf(2, "No survey data received");
} else if (survey_results->... | void hostapd_event_get_survey(struct hostapd_iface *iface,
struct survey_results *survey_results) {
struct freq_survey *survey, *tmp;
struct hostapd_channel_data *chan;
if (dl_list_empty(&survey_results->survey_list)) {
wpa_printf(MSG_DEBUG, "No survey data received");
retur... | hostapd_event_get_survey | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_iface_unavailable(hostapd_data *hapd) {
wpa_printf(2, "Interface %s is unavailable -- stopped", hapd->conf->iface);
if (hapd->csa_in_progress) {
wpa_printf(3, "CSA failed (%s was stopped)", hapd->conf->iface);
hostapd_switch_channel_fallback(hapd->iface, &hapd->cs_freq_params);
}
} | static void hostapd_event_iface_unavailable(struct hostapd_data *hapd) {
wpa_printf(MSG_DEBUG, "Interface %s is unavailable -- stopped",
hapd->conf->iface);
if (hapd->csa_in_progress) {
wpa_printf(MSG_INFO, "CSA failed (%s was stopped)", hapd->conf->iface);
hostapd_switch_channel_fallback(hapd... | hostapd_event_iface_unavailable | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_event_new_sta(hostapd_data *hapd, const u8 *addr) {
sta_info *sta;
if (ap_get_sta(hapd, addr))
return 0;
wpa_printf(2,
"Data frame from unknown STA %02x:%02x:%02x:%02x:%02x:%02x - "
"adding a new STA",
*addr, addr[1], addr[2], addr[3], addr[4], addr[5]);
s... | static int hostapd_event_new_sta(struct hostapd_data *hapd, const u8 *addr) {
struct sta_info *sta = ap_get_sta(hapd, addr);
if (sta)
return 0;
wpa_printf(MSG_DEBUG,
"Data frame from unknown STA " MACSTR " - adding a new STA",
MAC2STR(addr));
sta = ap_sta_add(hapd, addr);
if (s... | hostapd_event_new_sta | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_sta_low_ack(hostapd_data *hapd, const u8 *addr) {
sta_info *sta;
sta = ap_get_sta(hapd, addr);
if (sta && hapd->conf->disassoc_low_ack && (*((_BYTE *)sta + 99) & 2) == 0) {
hostapd_logger(hapd, addr, 1u, 2,
"disconnected due to excessive missing ACKs");
hostapd_drv_s... | void hostapd_event_sta_low_ack(struct hostapd_data *hapd, const u8 *addr) {
struct sta_info *sta = ap_get_sta(hapd, addr);
if (!sta || !hapd->conf->disassoc_low_ack || sta->agreed_to_steer)
return;
hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, HOSTAPD_LEVEL_INFO,
"disconnected due to... | hostapd_event_sta_low_ack | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_sta_opmode_changed(hostapd_data *hapd, const u8 *addr,
smps_mode smps_mode,
chan_width chan_width, u8 rx_nss) {
const char *txt;
const char *txta;
if (ap_get_sta(hapd, addr)) {
if (smps_mode == smps_mode_SMPS_STATI... | void hostapd_event_sta_opmode_changed(struct hostapd_data *hapd, const u8 *addr,
enum smps_mode smps_mode,
enum chan_width chan_width, u8 rx_nss) {
struct sta_info *sta = ap_get_sta(hapd, addr);
const char *txt;
if (!sta)
return;
... | hostapd_event_sta_opmode_changed | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_event_wds_sta_interface_status(hostapd_data *hapd, int istatus,
const char *ifname,
const u8 *addr) {
const char *v4;
sta_info *sta;
sta = ap_get_sta(hapd, addr);
if (sta) {
free(sta->ifname_wds);
if (i... | static void hostapd_event_wds_sta_interface_status(struct hostapd_data *hapd,
int istatus,
const char *ifname,
const u8 *addr) {
struct sta_info *sta = ap_get_sta(ha... | hostapd_event_wds_sta_interface_status | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_ext_capab_byte(hostapd_data *hapd, u8 *pos, int idx) {
int in_use;
*pos = 0;
switch (idx) {
case 0:
if (hapd->iconf->obss_interval)
*pos |= 1u;
if ((hapd->iface->drv_flags & 0x80000000) != 0)
*pos |= 4u;
break;
case 1:
if (hapd->conf->proxy_arp)
*pos |= 0x10u;
... | static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos,
int idx) {
*pos = 0x00;
switch (idx) {
case 0:
if (hapd->iconf->obss_interval)
*pos |= 0x01;
if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA)
*pos |= 0x04;
break;
case 1:
i... | hostapd_ext_capab_byte | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_fill_csa_settings(hostapd_data *hapd, csa_settings *settings) {
int v3;
long v4;
long v5;
ieee80211_edmg_config edmg;
u8 chan;
u8 bandwidth;
int ret;
hostapd_iface *iface;
hostapd_freq_params old_freq;
unsigned long v12;
v12 = __readfsqword(0x28u);
iface = hapd->iface;
memset(&old... | static int hostapd_fill_csa_settings(struct hostapd_data *hapd,
struct csa_settings *settings) {
struct hostapd_iface *iface = hapd->iface;
struct hostapd_freq_params old_freq;
int ret;
u8 chan, bandwidth;
os_memset(&old_freq, 0, sizeof(old_freq));
if (!iface || !iface-... | hostapd_fill_csa_settings | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_flush(hostapd_data *hapd) {
if (hapd->driver && hapd->driver->flush)
return hapd->driver->flush(hapd->drv_priv);
else
return 0;
} | int hostapd_flush(struct hostapd_data *hapd) {
if (hapd->driver == NULL || hapd->driver->flush == NULL)
return 0;
return hapd->driver->flush(hapd->drv_priv);
} | hostapd_flush | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_flush_old_stations(hostapd_data *hapd, u16 reason) {
int ret;
u8 addr[6];
unsigned long v5;
v5 = __readfsqword(0x28u);
ret = 0;
if (hostapd_drv_none(hapd) || !hapd->drv_priv)
return 0;
if ((*((_BYTE *)hapd->iface + 96) & 1) == 0) {
wpa_msg(hapd->msg_ctx, 2, "Flushing old station entri... | static int hostapd_flush_old_stations(struct hostapd_data *hapd, u16 reason) {
int ret = 0;
u8 addr[ETH_ALEN];
if (hostapd_drv_none(hapd) || hapd->drv_priv == NULL)
return 0;
if (!hapd->iface->driver_ap_teardown) {
wpa_dbg(hapd->msg_ctx, MSG_DEBUG, "Flushing old station entries");
if (hostapd_flu... | hostapd_flush_old_stations | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_for_each_interface(hapd_interfaces *interfaces,
int (*cb)(hostapd_iface *, void *), void *ctx) {
int ret;
size_t i;
for (i = 0; i < interfaces->count; ++i) {
if (interfaces->iface[i]) {
ret = cb(interfaces->iface[i], ctx);
if (ret)
return ret;
... | int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
int (*cb)(struct hostapd_iface *iface,
void *ctx),
void *ctx) {
size_t i;
int ret;
for (i = 0; i < interfaces->count; i++) {
if (!interface... | hostapd_for_each_interface | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_free_ap_extra_ies(hostapd_data *hapd, wpabuf *beacon,
wpabuf *proberesp, wpabuf *assocresp) {
wpabuf_free(beacon);
wpabuf_free(proberesp);
wpabuf_free(assocresp);
} | void hostapd_free_ap_extra_ies(struct hostapd_data *hapd, struct wpabuf *beacon,
struct wpabuf *proberesp,
struct wpabuf *assocresp) {
wpabuf_free(beacon);
wpabuf_free(proberesp);
wpabuf_free(assocresp);
} | hostapd_free_ap_extra_ies | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_free_aps(hostapd_iface *iface) {
ap_info *ap;
ap_info *prev;
ap = iface->ap_list;
while (ap) {
prev = ap;
ap = ap->next;
ap_free_ap(iface, prev);
}
iface->ap_list = 0;
} | static void hostapd_free_aps(struct hostapd_iface *iface) {
struct ap_info *ap, *prev;
ap = iface->ap_list;
while (ap) {
prev = ap;
ap = ap->next;
ap_free_ap(iface, prev);
}
iface->ap_list = NULL;
} | hostapd_free_aps | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_free_hapd_data(hostapd_data *hapd) {
hostapd_bss_config *conf;
dl_list *v2;
hostapd_sae_commit_queue *q;
free(hapd->probereq_cb);
hapd->probereq_cb = 0;
hapd->num_probereq_cb = 0;
if ((*((_BYTE *)hapd + 28) & 1) != 0) {
*((_BYTE *)hapd + 28) &= ~1u;
hapd->beacon_set_done = 0;
wpa... | void hostapd_free_hapd_data(struct hostapd_data *hapd) {
os_free(hapd->probereq_cb);
hapd->probereq_cb = NULL;
hapd->num_probereq_cb = 0;
#ifdef CONFIG_P2P
wpabuf_free(hapd->p2p_beacon_ie);
hapd->p2p_beacon_ie = NULL;
wpabuf_free(hapd->p2p_probe_resp_ie);
hapd->p2p_probe_resp_ie = NULL;
#endif
if (!ha... | hostapd_free_hapd_data | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_free_hw_features(hostapd_hw_modes *hw_features,
size_t num_hw_features) {
size_t i;
if (hw_features) {
for (i = 0; i < num_hw_features; ++i) {
free(hw_features[i].channels);
free(hw_features[i].rates);
}
free(hw_features);
}
} | void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
size_t num_hw_features) {
size_t i;
if (hw_features == NULL)
return;
for (i = 0; i < num_hw_features; i++) {
os_free(hw_features[i].channels);
os_free(hw_features[i].rates);
}
os_free(hw_features);... | hostapd_free_hw_features | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_free_neighbor_db(hostapd_data *hapd) {
hostapd_neighbor_entry *nr;
hostapd_neighbor_entry *prev;
nr = (hostapd_neighbor_entry *)hapd->nr_db.next;
prev = (hostapd_neighbor_entry *)nr->list.next;
while (nr != (hostapd_neighbor_entry *)&hapd->nr_db) {
hostapd_neighbor_clear_entry(nr);
dl_li... | void hostapd_free_neighbor_db(struct hostapd_data *hapd) {
struct hostapd_neighbor_entry *nr, *prev;
dl_list_for_each_safe(nr, prev, &hapd->nr_db, struct hostapd_neighbor_entry,
list) {
hostapd_neighbor_clear_entry(nr);
dl_list_del(&nr->list);
os_free(nr);
}
} | hostapd_free_neighbor_db | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_free_psk_list(hostapd_sta_wpa_psk_short *psk) {
hostapd_sta_wpa_psk_short *pska;
hostapd_sta_wpa_psk_short *prev;
pska = psk;
if (psk && psk->ref) {
--psk->ref;
} else {
while (pska) {
prev = pska;
pska = pska->next;
free(prev);
}
}
} | void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk) {
if (psk && psk->ref) {
psk->ref--;
return;
}
while (psk) {
struct hostapd_sta_wpa_psk_short *prev = psk;
psk = psk->next;
os_free(prev);
}
} | hostapd_free_psk_list | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_free_stas(hostapd_data *hapd) {
sta_info *sta;
sta_info *prev;
sta = hapd->sta_list;
while (sta) {
prev = sta;
if ((sta->flags & 1) != 0)
mlme_deauthenticate_indication(hapd, sta, 1u);
sta = sta->next;
wpa_printf(2, "Removing station %02x:%02x:%02x:%02x:%02x:%02x",
... | void hostapd_free_stas(struct hostapd_data *hapd) {
struct sta_info *sta, *prev;
sta = hapd->sta_list;
while (sta) {
prev = sta;
if (sta->flags & WLAN_STA_AUTH) {
mlme_deauthenticate_indication(hapd, sta, WLAN_REASON_UNSPECIFIED);
}
sta = sta->next;
wpa_printf(MSG_DEBUG, "Removing stat... | hostapd_free_stas | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_free_wps(wps_context *wps) {
int i;
for (i = 0; i <= 9; ++i)
wpabuf_free(wps->dev.vendor_ext[i]);
wps_device_data_free(&wps->dev);
free(wps->network_key);
hostapd_wps_nfc_clear(wps);
wpabuf_free(wps->dh_pubkey);
wpabuf_free(wps->dh_privkey);
free(wps);
} | static void hostapd_free_wps(struct wps_context *wps) {
int i;
for (i = 0; i < MAX_WPS_VENDOR_EXTENSIONS; i++)
wpabuf_free(wps->dev.vendor_ext[i]);
wps_device_data_free(&wps->dev);
os_free(wps->network_key);
hostapd_wps_nfc_clear(wps);
wpabuf_free(wps->dh_pubkey);
wpabuf_free(wps->dh_privkey);
os_f... | hostapd_free_wps | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *hostapd_gen_probe_resp(hostapd_data *hapd, const ieee80211_mgmt *req,
int is_p2p, size_t *resp_len) {
u8 *v5;
u8 *v6;
u8 *v7;
u8 *v8;
u8 *v9;
u8 *rsne;
u8 *v11;
u8 *v12;
u8 *v13;
u8 *v14;
u8 *v15;
u8 *v16;
u8 *v17;
u8 *v18;
u8 *v19;
u8 *v20;
size_t v21;
... | static u8 *hostapd_gen_probe_resp(struct hostapd_data *hapd,
const struct ieee80211_mgmt *req, int is_p2p,
size_t *resp_len) {
struct ieee80211_mgmt *resp;
u8 *pos, *epos, *csa_pos;
size_t buflen;
#define MAX_PROBERESP_LEN 768
buflen = MAX_PRO... | hostapd_gen_probe_resp | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_aid(hostapd_data *hapd, sta_info *sta) {
int i;
int j;
int aid;
j = 32;
if (sta->aid) {
wpa_printf(2, " old AID %d", sta->aid);
return 0;
} else {
for (i = 0; i <= 62; ++i) {
if (hapd->sta_aid[i] != -1) {
for (j = 0; j <= 31 && (hapd->sta_aid[i] & (1 << j)) != 0; ... | int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta) {
int i, j = 32, aid;
if (sta->aid > 0) {
wpa_printf(MSG_DEBUG, " old AID %d", sta->aid);
return 0;
}
if (TEST_FAIL())
return -1;
for (i = 0; i < AID_WORDS; i++) {
if (hapd->sta_aid[i] == (u32)-1)
continue;
for ... | hostapd_get_aid | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_ctrl_iface_group(hapd_interfaces *interfaces,
const char *group) {
struct group *grp;
grp = getgrnam(group);
if (grp) {
interfaces->ctrl_iface_group = grp->gr_gid;
return 0;
} else {
wpa_printf(5, "Unknown group '%s'", group);
return -1;
}
} | static int hostapd_get_ctrl_iface_group(struct hapd_interfaces *interfaces,
const char *group) {
#ifndef CONFIG_NATIVE_WINDOWS
struct group *grp;
grp = getgrnam(group);
if (grp == NULL) {
wpa_printf(MSG_ERROR, "Unknown group '%s'", group);
return -1;
}
interface... | hostapd_get_ctrl_iface_group | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const hostapd_eap_user *hostapd_get_eap_user(hostapd_data *hapd,
const u8 *identity,
size_t identity_len, int phase2) {
size_t v5;
hostapd_eap_user *user;
hostapd_bss_config *conf;
conf = hapd->conf;
user = conf->eap_us... | const struct hostapd_eap_user *hostapd_get_eap_user(struct hostapd_data *hapd,
const u8 *identity,
size_t identity_len,
int phase2) {
const struct hostapd_bss_con... | hostapd_get_eap_user | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_get_ext_capa(hostapd_iface *iface) {
hostapd_data *hapd;
hapd = *iface->bss;
if (hapd->driver) {
if (hapd->driver->get_ext_capab)
hapd->driver->get_ext_capab(
hapd->drv_priv, wpa_driver_if_type_WPA_IF_AP_BSS,
&iface->extended_capa, &iface->extended_capa_mask,
... | void hostapd_get_ext_capa(struct hostapd_iface *iface) {
struct hostapd_data *hapd = iface->bss[0];
if (!hapd->driver || !hapd->driver->get_ext_capab)
return;
hapd->driver->get_ext_capab(hapd->drv_priv, WPA_IF_AP_BSS,
&iface->extended_capa, &iface->extended_capa_mask,
... | hostapd_get_ext_capa | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_global_ctrl_iface(hapd_interfaces *interfaces,
const char *path) {
char *pos;
free(interfaces->global_iface_path);
interfaces->global_iface_path = strdup(path);
if (!interfaces->global_iface_path)
return -1;
pos = strrchr(interfaces->global_iface_path, 47... | static int hostapd_get_global_ctrl_iface(struct hapd_interfaces *interfaces,
const char *path) {
#ifndef CONFIG_CTRL_IFACE_UDP
char *pos;
#endif
os_free(interfaces->global_iface_path);
interfaces->global_iface_path = os_strdup(path);
if (interfaces->global_iface_path ==... | hostapd_get_global_ctrl_iface | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_get_ht_capab(hostapd_data *hapd, ieee80211_ht_capabilities *ht_cap,
ieee80211_ht_capabilities *neg_ht_cap) {
u16 cap;
if (ht_cap) {
memcpy(neg_ht_cap, ht_cap, sizeof(ieee80211_ht_capabilities));
cap = (hapd->iconf->ht_capab | 0x38C) & neg_ht_cap->ht_capabilities_info;... | void hostapd_get_ht_capab(struct hostapd_data *hapd,
struct ieee80211_ht_capabilities *ht_cap,
struct ieee80211_ht_capabilities *neg_ht_cap) {
u16 cap;
if (ht_cap == NULL)
return;
os_memcpy(neg_ht_cap, ht_cap, sizeof(*neg_ht_cap));
cap = le_to_host16(neg_... | hostapd_get_ht_capab | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
hostapd_hw_modes *hostapd_get_hw_feature_data(hostapd_data *hapd,
u16 *num_modes, u16 *flags,
u8 *dfs_domain) {
if (hapd->driver && hapd->driver->get_hw_feature_data)
return hapd->driver->get_hw_feature_data(hapd->drv_priv... | struct hostapd_hw_modes *hostapd_get_hw_feature_data(struct hostapd_data *hapd,
u16 *num_modes, u16 *flags,
u8 *dfs_domain) {
if (hapd->driver == NULL || hapd->driver->get_hw_feature_data == NULL)
return NULL... | hostapd_get_hw_feature_data | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_hw_features(hostapd_iface *iface) {
_BOOL4 v2;
char *v3;
u8 dfs_domain;
u16 num_modes;
u16 flags;
int i;
int j;
int dfs;
int dfs_enabled;
hostapd_data *hapd;
hostapd_hw_modes *modes;
hostapd_hw_modes *feature;
unsigned long v14;
v14 = __readfsqword(0x28u);
hapd = *iface->b... | int hostapd_get_hw_features(struct hostapd_iface *iface) {
struct hostapd_data *hapd = iface->bss[0];
int i, j;
u16 num_modes, flags;
struct hostapd_hw_modes *modes;
u8 dfs_domain;
if (hostapd_drv_none(hapd))
return -1;
modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags, &dfs_domain);
if ... | hostapd_get_hw_features | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_get_hw_mode_any_channels(hostapd_data *hapd,
hostapd_hw_modes *mode,
int acs_ch_list_all, int **freq_list) {
int i;
hostapd_channel_data *chan;
for (i = 0; i < mode->num_channels; ++i) {
chan = &mode->channels[i];
if... | static void hostapd_get_hw_mode_any_channels(struct hostapd_data *hapd,
struct hostapd_hw_modes *mode,
int acs_ch_list_all,
int **freq_list) {
int i;
for (i = 0; i < mode->num_chan... | hostapd_get_hw_mode_any_channels | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
hostapd_data *hostapd_get_iface(hapd_interfaces *interfaces,
const char *ifname) {
size_t i;
size_t j;
hostapd_iface *iface;
hostapd_data *hapd;
for (i = 0; i < interfaces->count; ++i) {
iface = interfaces->iface[i];
for (j = 0; j < iface->num_bss; ++j) {
hapd = ... | struct hostapd_data *hostapd_get_iface(struct hapd_interfaces *interfaces,
const char *ifname) {
size_t i, j;
for (i = 0; i < interfaces->count; i++) {
struct hostapd_iface *iface = interfaces->iface[i];
for (j = 0; j < iface->num_bss; j++) {
struct hostapd_dat... | hostapd_get_iface | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_interface_names(char ***if_names, size_t *if_names_size,
char *arg) {
char **v4;
char *tmp;
char *if_name;
size_t i;
char **nnames;
unsigned long v9;
v9 = __readfsqword(0x28u);
if (!arg)
return -1;
for (if_name = strtok_r(arg, ",", &tmp);; if_name =... | static int hostapd_get_interface_names(char ***if_names, size_t *if_names_size,
char *arg) {
char *if_name, *tmp, **nnames;
size_t i;
if (!arg)
return -1;
if_name = strtok_r(arg, ",", &tmp);
while (if_name) {
nnames = os_realloc_array(*if_names, 1 + *if_names_s... | hostapd_get_interface_names | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *hostapd_get_mde(hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
ie = hostapd_wpa_ie(hapd, 0x36u);
if (!ie || len < (unsigned int)ie[1] + 2)
return pos;
memcpy(pos, ie, ie[1] + 2);
return &pos[ie[1] + 2];
} | static u8 *hostapd_get_mde(struct hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
ie = hostapd_wpa_ie(hapd, WLAN_EID_MOBILITY_DOMAIN);
if (!ie || 2U + ie[1] > len)
return pos;
os_memcpy(pos, ie, 2 + ie[1]);
return pos + 2 + ie[1];
} | hostapd_get_mde | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
hostapd_channel_data *hostapd_get_mode_chan(hostapd_hw_modes *mode,
unsigned int freq) {
int i;
for (i = 0; i < mode->num_channels; ++i) {
if (freq == mode->channels[i].freq)
return &mode->channels[i];
}
return 0;
} | static struct hostapd_channel_data *
hostapd_get_mode_chan(struct hostapd_hw_modes *mode, unsigned int freq) {
int i;
struct hostapd_channel_data *chan;
for (i = 0; i < mode->num_channels; i++) {
chan = &mode->channels[i];
if ((unsigned int)chan->freq == freq)
return chan;
}
return NULL;
} | hostapd_get_mode_chan | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
hostapd_channel_data *hostapd_get_mode_channel(hostapd_iface *iface,
unsigned int freq) {
int i;
hostapd_channel_data *chan;
for (i = 0; i < iface->num_hw_features; ++i) {
if (!hostapd_hw_skip_mode(iface, &iface->hw_features[i])) {
chan = hostapd_get_mode_... | static struct hostapd_channel_data *
hostapd_get_mode_channel(struct hostapd_iface *iface, unsigned int freq) {
int i;
struct hostapd_channel_data *chan;
for (i = 0; i < iface->num_hw_features; i++) {
if (hostapd_hw_skip_mode(iface, &iface->hw_features[i]))
continue;
chan = hostapd_get_mode_chan(&i... | hostapd_get_mode_channel | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
nr_chan_width hostapd_get_nr_chan_width(hostapd_data *hapd, int ht, int vht,
int he) {
u8 oper_chwidth;
oper_chwidth = hostapd_get_oper_chwidth_2(hapd->iconf);
if (!ht && !vht && !he)
return nr_chan_width_NR_CHAN_WIDTH_20;
if (!hapd->iconf->secondary_channel)
ret... | static enum nr_chan_width hostapd_get_nr_chan_width(struct hostapd_data *hapd,
int ht, int vht, int he) {
u8 oper_chwidth = hostapd_get_oper_chwidth(hapd->iconf);
if (!ht && !vht && !he)
return NR_CHAN_WIDTH_20;
if (!hapd->iconf->secondary_channel)
retu... | hostapd_get_nr_chan_width | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *hostapd_get_osen_ie(hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
ie = hostapd_vendor_wpa_ie(hapd, 0x506F9A12u);
if (!ie || len < (unsigned int)ie[1] + 2)
return pos;
memcpy(pos, ie, ie[1] + 2);
return &pos[ie[1] + 2];
} | static u8 *hostapd_get_osen_ie(struct hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
ie = hostapd_vendor_wpa_ie(hapd, OSEN_IE_VENDOR_TYPE);
if (!ie || 2U + ie[1] > len)
return pos;
os_memcpy(pos, ie, 2 + ie[1]);
return pos + 2 + ie[1];
} | hostapd_get_osen_ie | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const u8 *hostapd_get_psk(const hostapd_bss_config *conf, const u8 *addr,
const u8 *p2p_dev_addr, const u8 *prev_psk,
int *vlan_id) {
const u8 *addra;
_BOOL4 next_ok;
hostapd_wpa_psk *psk;
addra = addr;
next_ok = prev_psk == 0;
if (vlan_id)
*vlan_id =... | const u8 *hostapd_get_psk(const struct hostapd_bss_config *conf, const u8 *addr,
const u8 *p2p_dev_addr, const u8 *prev_psk,
int *vlan_id) {
struct hostapd_wpa_psk *psk;
int next_ok = prev_psk == NULL;
if (vlan_id)
*vlan_id = 0;
if (p2p_dev_addr && !is_z... | hostapd_get_psk | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *hostapd_get_rsne(hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
ie = hostapd_wpa_ie(hapd, 0x30u);
if (!ie || len < (unsigned int)ie[1] + 2)
return pos;
memcpy(pos, ie, ie[1] + 2);
return &pos[ie[1] + 2];
} | static u8 *hostapd_get_rsne(struct hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
ie = hostapd_wpa_ie(hapd, WLAN_EID_RSN);
if (!ie || 2U + ie[1] > len)
return pos;
os_memcpy(pos, ie, 2 + ie[1]);
return pos + 2 + ie[1];
} | hostapd_get_rsne | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *hostapd_get_rsnxe(hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
ie = hostapd_wpa_ie(hapd, 0xF4u);
if (!ie || len < (unsigned int)ie[1] + 2)
return pos;
memcpy(pos, ie, ie[1] + 2);
return &pos[ie[1] + 2];
} | static u8 *hostapd_get_rsnxe(struct hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
#ifdef CONFIG_TESTING_OPTIONS
if (hapd->conf->no_beacon_rsnxe) {
wpa_printf(MSG_INFO, "TESTING: Do not add RSNXE into Beacon");
return pos;
}
#endif
ie = hostapd_wpa_ie(hapd, WLAN_EID_RSNX);
if (!ie || 2U + i... | hostapd_get_rsnxe | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_seqnum(const char *ifname, hostapd_data *hapd, const u8 *addr,
int idx, u8 *seq) {
if (hapd->driver && hapd->driver->get_seqnum)
return hapd->driver->get_seqnum(ifname, hapd->drv_priv, addr, idx, seq);
else
return 0;
} | int hostapd_get_seqnum(const char *ifname, struct hostapd_data *hapd,
const u8 *addr, int idx, u8 *seq) {
if (hapd->driver == NULL || hapd->driver->get_seqnum == NULL)
return 0;
return hapd->driver->get_seqnum(ifname, hapd->drv_priv, addr, idx, seq);
} | hostapd_get_seqnum | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_ssid(hostapd_data *hapd, u8 *buf, size_t len) {
if (hapd->driver && hapd->driver->hapd_get_ssid)
return hapd->driver->hapd_get_ssid(hapd->drv_priv, buf, len);
else
return 0;
} | int hostapd_get_ssid(struct hostapd_data *hapd, u8 *buf, size_t len) {
if (hapd->driver == NULL || hapd->driver->hapd_get_ssid == NULL)
return 0;
return hapd->driver->hapd_get_ssid(hapd->drv_priv, buf, len);
} | hostapd_get_ssid | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_sta_conn_time(sta_info *sta, hostap_sta_driver_data *data,
char *buf, size_t buflen) {
int v4;
int ret;
os_reltime age;
unsigned long v10;
v10 = __readfsqword(0x28u);
if (sta->connected_time.sec) {
os_reltime_age_0(&sta->connected_time, &age);
v4 = snpr... | static int hostapd_get_sta_conn_time(struct sta_info *sta,
struct hostap_sta_driver_data *data,
char *buf, size_t buflen) {
struct os_reltime age;
unsigned long secs;
int ret;
if (sta->connected_time.sec) {
os_reltime_age(&sta->conn... | hostapd_get_sta_conn_time | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_sta_info(hostapd_data *hapd, sta_info *sta, char *buf,
size_t buflen) {
int len;
int lena;
int lenb;
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;
int retm;
int... | static int hostapd_get_sta_info(struct hostapd_data *hapd, struct sta_info *sta,
char *buf, size_t buflen) {
struct hostap_sta_driver_data data;
int ret;
int len = 0;
if (hostapd_drv_read_sta_data(hapd, &data, sta->addr) < 0)
return 0;
ret = os_snprintf(buf, buflen,
... | hostapd_get_sta_info | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_get_sta_tx_params(void *ctx, const u8 *addr, int ap_max_chanwidth,
int ap_seg1_idx, int *bandwidth, int *seg1_idx) {
sta_info *sta;
sta = ap_get_sta((hostapd_data *)ctx, addr);
if (sta)
return get_tx_parameters(sta, ap_max_chanwidth, ap_seg1_idx, bandwidth,
... | static int hostapd_get_sta_tx_params(void *ctx, const u8 *addr,
int ap_max_chanwidth, int ap_seg1_idx,
int *bandwidth, int *seg1_idx) {
struct hostapd_data *hapd = ctx;
struct sta_info *sta;
sta = ap_get_sta(hapd, addr);
if (!sta) {
... | hostapd_get_sta_tx_params | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_get_vht_capab(hostapd_data *hapd,
ieee80211_vht_capabilities *vht_cap,
ieee80211_vht_capabilities *neg_vht_cap) {
u32 v3;
le32 cap;
u32 own_cap;
if (vht_cap) {
memcpy(neg_vht_cap, vht_cap, sizeof(ieee80211_vht_capabilities));
own_cap = ... | void hostapd_get_vht_capab(struct hostapd_data *hapd,
struct ieee80211_vht_capabilities *vht_cap,
struct ieee80211_vht_capabilities *neg_vht_cap) {
u32 cap, own_cap, sym_caps;
if (vht_cap == NULL)
return;
os_memcpy(neg_vht_cap, vht_cap, sizeof(*neg_vht_ca... | hostapd_get_vht_capab | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const char *hostapd_get_vlan_id_ifname(hostapd_vlan *vlan, int vlan_id) {
while (vlan) {
if (vlan_id == vlan->vlan_id)
return vlan->ifname;
vlan = vlan->next;
}
return 0;
} | const char *hostapd_get_vlan_id_ifname(struct hostapd_vlan *vlan, int vlan_id) {
struct hostapd_vlan *v = vlan;
while (v) {
if (v->vlan_id == vlan_id)
return v->ifname;
v = v->next;
}
return NULL;
} | hostapd_get_vlan_id_ifname | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
u8 *hostapd_get_wpa_ie(hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
ie = hostapd_vendor_wpa_ie(hapd, 0x50F201u);
if (!ie || len < (unsigned int)ie[1] + 2)
return pos;
memcpy(pos, ie, ie[1] + 2);
return &pos[ie[1] + 2];
} | static u8 *hostapd_get_wpa_ie(struct hostapd_data *hapd, u8 *pos, size_t len) {
const u8 *ie;
ie = hostapd_vendor_wpa_ie(hapd, WPA_IE_VENDOR_TYPE);
if (!ie || 2U + ie[1] > len)
return pos;
os_memcpy(pos, ie, 2 + ie[1]);
return pos + 2 + ie[1];
} | hostapd_get_wpa_ie | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_ctrl_iface_attach(hapd_interfaces *interfaces,
sockaddr_storage *from, socklen_t fromlen,
char *input) {
return ctrl_iface_attach(&interfaces->global_ctrl_dst, from, fromlen, input);
} | static int hostapd_global_ctrl_iface_attach(struct hapd_interfaces *interfaces,
struct sockaddr_storage *from,
socklen_t fromlen, char *input) {
return ctrl_iface_attach(&interfaces->global_ctrl_dst, from, fromlen, input);
} | hostapd_global_ctrl_iface_attach | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_global_ctrl_iface_deinit(hapd_interfaces *interfaces) {
int *v1;
char *v2;
wpa_ctrl_dst *dst;
wpa_ctrl_dst *prev;
char *fname;
if (interfaces->global_ctrl_sock >= 0) {
eloop_unregister_read_sock(interfaces->global_ctrl_sock);
close(interfaces->global_ctrl_sock);
interfaces->global_... | void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interfaces) {
#ifndef CONFIG_CTRL_IFACE_UDP
char *fname = NULL;
#endif
struct wpa_ctrl_dst *dst, *prev;
if (interfaces->global_ctrl_sock > -1) {
eloop_unregister_read_sock(interfaces->global_ctrl_sock);
close(interfaces->global_ctrl_sock);
... | hostapd_global_ctrl_iface_deinit | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_ctrl_iface_detach(hapd_interfaces *interfaces,
sockaddr_storage *from,
socklen_t fromlen) {
return ctrl_iface_detach(&interfaces->global_ctrl_dst, from, fromlen);
} | static int hostapd_global_ctrl_iface_detach(struct hapd_interfaces *interfaces,
struct sockaddr_storage *from,
socklen_t fromlen) {
return ctrl_iface_detach(&interfaces->global_ctrl_dst, from, fromlen);
} | hostapd_global_ctrl_iface_detach | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_ctrl_iface_dup_network(hapd_interfaces *interfaces,
char *cmd) {
char *p_start;
char *p_end;
char *p_enda;
hostapd_data *src_hapd;
hostapd_data *dst_hapd;
p_end = strchr(cmd, 32);
if (p_end) {
*p_end = 0;
src_hapd = hostapd_interfaces_g... | static int
hostapd_global_ctrl_iface_dup_network(struct hapd_interfaces *interfaces,
char *cmd) {
char *p_start = cmd, *p_end;
struct hostapd_data *src_hapd, *dst_hapd;
p_end = os_strchr(p_start, ' ');
if (!p_end) {
wpa_printf(MSG_ERROR, "DUP: no src ifname found in cm... | hostapd_global_ctrl_iface_dup_network | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_ctrl_iface_fst_attach(hapd_interfaces *interfaces,
const char *cmd) {
hostapd_iface *iface;
hostapd_data *hapd;
fst_wpa_obj_0 iface_obj;
fst_iface_cfg cfg;
char ifname[24];
unsigned long v8;
v8 = __readfsqword(0x28u);
if (fst_parse_attach_comm... | static int
hostapd_global_ctrl_iface_fst_attach(struct hapd_interfaces *interfaces,
const char *cmd) {
char ifname[IFNAMSIZ + 1];
struct fst_iface_cfg cfg;
struct hostapd_data *hapd;
struct fst_wpa_obj iface_obj;
if (!fst_parse_attach_command(cmd, ifname, sizeof(ifname), ... | hostapd_global_ctrl_iface_fst_attach | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_ctrl_iface_fst_detach(hapd_interfaces *interfaces,
const char *cmd) {
hostapd_data *hapd;
char ifname[24];
unsigned long v5;
v5 = __readfsqword(0x28u);
if (fst_parse_detach_command(cmd, ifname, 0x11u))
return -22;
hapd = hostapd_get_iface(inte... | static int
hostapd_global_ctrl_iface_fst_detach(struct hapd_interfaces *interfaces,
const char *cmd) {
char ifname[IFNAMSIZ + 1];
struct hostapd_data *hapd;
if (!fst_parse_detach_command(cmd, ifname, sizeof(ifname))) {
hapd = hostapd_get_iface(interfaces, ifname);
if ... | hostapd_global_ctrl_iface_fst_detach | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_ctrl_iface_ifname(hapd_interfaces *interfaces,
const char *ifname, char *buf, char *reply,
int reply_size, sockaddr_storage *from,
socklen_t fromlen) {
int res;
hostapd_data *hapd;
ha... | static int hostapd_global_ctrl_iface_ifname(struct hapd_interfaces *interfaces,
const char *ifname, char *buf,
char *reply, int reply_size,
struct sockaddr_storage *from,
... | hostapd_global_ctrl_iface_ifname | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_ctrl_iface_init(hapd_interfaces *interface) {
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;
uns... | int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface) {
#ifdef CONFIG_CTRL_IFACE_UDP
int port = HOSTAPD_GLOBAL_CTRL_IFACE_PORT;
char p[32] = {0};
char *pos;
struct addrinfo hints = {0}, *res, *saveres;
int n;
if (interface->global_ctrl_sock > -1) {
wpa_printf(MSG_DEBUG, "ctrl_iface alre... | hostapd_global_ctrl_iface_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_ctrl_iface_interfaces(hapd_interfaces *interfaces,
const char *input, char *reply,
int reply_size) {
const char *ctrl_interface;
int v5;
int res;
_BOOL4 show_ctrl;
size_t i;
size_t j;
char *pos;
char *en... | static int
hostapd_global_ctrl_iface_interfaces(struct hapd_interfaces *interfaces,
const char *input, char *reply,
int reply_size) {
size_t i, j;
int res;
char *pos, *end;
struct hostapd_iface *iface;
int show_ctrl = 0;
if (input)
... | hostapd_global_ctrl_iface_interfaces | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
char *hostapd_global_ctrl_iface_path(hapd_interfaces *interface) {
size_t v2;
size_t len;
char *buf;
if (!interface->global_iface_path)
return 0;
v2 = strlen(interface->global_iface_path);
len = v2 + strlen(interface->global_iface_name) + 2;
buf = (char *)malloc(len);
if (!buf)
return 0;
snpr... | static char *hostapd_global_ctrl_iface_path(struct hapd_interfaces *interface) {
char *buf;
size_t len;
if (interface->global_iface_path == NULL)
return NULL;
len = os_strlen(interface->global_iface_path) +
os_strlen(interface->global_iface_name) + 2;
buf = os_malloc(len);
if (buf == NULL)
... | hostapd_global_ctrl_iface_path | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_global_ctrl_iface_receive(int sock, void *eloop_ctx,
void *sock_ctx) {
int *v3;
char *v4;
int *v5;
char *v6;
char *v7;
int *v8;
char *v9;
socklen_t fromlen;
int reply_len;
int reply_size;
int res;
hapd_interfaces *interfaces;
char *buf;
cha... | static void hostapd_global_ctrl_iface_receive(int sock, void *eloop_ctx,
void *sock_ctx) {
struct hapd_interfaces *interfaces = eloop_ctx;
char buffer[256], *buf = buffer;
int res;
struct sockaddr_storage from;
socklen_t fromlen = sizeof(from);
char *reply;
in... | hostapd_global_ctrl_iface_receive | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_global_deinit(const char *pid_file, int eloop_initialized) {
int i;
for (i = 0; wpa_drivers[i] && global.drv_priv; ++i) {
if (global.drv_priv[i])
wpa_drivers[i]->global_deinit(global.drv_priv[i]);
}
free(global.drv_priv);
global.drv_priv = 0;
tncs_global_deinit();
random_deinit();
... | static void hostapd_global_deinit(const char *pid_file, int eloop_initialized) {
int i;
for (i = 0; wpa_drivers[i] && global.drv_priv; i++) {
if (!global.drv_priv[i])
continue;
wpa_drivers[i]->global_deinit(global.drv_priv[i]);
}
os_free(global.drv_priv);
global.drv_priv = NULL;
#ifdef EAP_SER... | hostapd_global_deinit | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_init(hapd_interfaces *interfaces, const char *entropy_file) {
int i;
memset(&global, 0, sizeof(global));
hostapd_logger_register_cb((hostapd_logger_cb_func)hostapd_logger_cb);
if (eap_server_register_methods()) {
wpa_printf(5, "Failed to register EAP methods");
return -1;
} else if... | static int hostapd_global_init(struct hapd_interfaces *interfaces,
const char *entropy_file) {
int i;
os_memset(&global, 0, sizeof(global));
hostapd_logger_register_cb(hostapd_logger_cb);
if (eap_server_register_methods()) {
wpa_printf(MSG_ERROR, "Failed to register EAP met... | hostapd_global_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_global_run(hapd_interfaces *ifaces, int daemonize,
const char *pid_file) {
int *v4;
char *v5;
int *v6;
char *v7;
int tnc;
size_t i;
size_t k;
tnc = 0;
for (i = 0; !tnc && i < ifaces->count; ++i) {
for (k = 0; k < ifaces->iface[i]->num_bss; ++k) {
if ((*ifa... | static int hostapd_global_run(struct hapd_interfaces *ifaces, int daemonize,
const char *pid_file) {
#ifdef EAP_SERVER_TNC
int tnc = 0;
size_t i, k;
for (i = 0; !tnc && i < ifaces->count; i++) {
for (k = 0; k < ifaces->iface[i]->num_bss; k++) {
if (ifaces->iface[i]->bss[0]... | hostapd_global_run | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_handle_beacon_report(hostapd_data *hapd, const u8 *addr, u8 token,
u8 rep_mode, const u8 *pos, size_t len) {
char report[520];
unsigned long v11;
v11 = __readfsqword(0x28u);
wpa_printf(
2, "Beacon report token %u len %zu from %02x:%02x:%02x:%02x:%02x:%02x",
... | static void hostapd_handle_beacon_report(struct hostapd_data *hapd,
const u8 *addr, u8 token, u8 rep_mode,
const u8 *pos, size_t len) {
char report[2 * 255 + 1];
wpa_printf(MSG_DEBUG, "Beacon report token %u len %zu from " MACSTR, to... | hostapd_handle_beacon_report | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_handle_dfs(hostapd_iface *iface) {
const char *v2;
const char *v3;
unsigned int v4;
int oper_centr_freq_seg1_idx_2;
int oper_centr_freq_seg0_idx_2;
u8 oper_chwidth_4;
int v8;
int v9;
u8 v10;
u8 cf1;
u8 cf2;
int n_chans1;
int start_chan_idx1;
int sec;
int skip_radar;
int start... | int hostapd_handle_dfs(struct hostapd_iface *iface) {
struct hostapd_channel_data *channel;
int res, n_chans, n_chans1, start_chan_idx, start_chan_idx1;
int skip_radar = 0;
if (is_6ghz_freq(iface->freq))
return 1;
if (!iface->current_mode) {
wpa_printf(MSG_DEBUG, "DFS: No current_mode information -... | hostapd_handle_dfs | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_handle_dfs_offload(hostapd_iface *iface) {
int dfs_res;
wpa_printf(2, "%s: iface->cac_started: %d", "hostapd_handle_dfs_offload",
(*((_BYTE *)iface + 72) & 2) != 0);
if ((*((_BYTE *)iface + 72) & 2) != 0) {
wpa_printf(2, "%s: iface->cac_started: %d", "hostapd_handle_dfs_offload",
... | int hostapd_handle_dfs_offload(struct hostapd_iface *iface) {
int dfs_res;
wpa_printf(MSG_DEBUG, "%s: iface->cac_started: %d", __func__,
iface->cac_started);
if (iface->cac_started) {
wpa_printf(MSG_DEBUG, "%s: iface->cac_started: %d", __func__,
iface->cac_started);
iface->ca... | hostapd_handle_dfs_offload | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_handle_lci_report(hostapd_data *hapd, u8 token, const u8 *pos,
size_t len) {
if ((*((_BYTE *)hapd + 3547) & 1) != 0 && token == hapd->lci_req_token) {
*((_BYTE *)hapd + 3547) &= ~1u;
eloop_cancel_timeout((eloop_timeout_handler)hostapd_lci_rep_timeout_handler,
... | static void hostapd_handle_lci_report(struct hostapd_data *hapd, u8 token,
const u8 *pos, size_t len) {
if (!hapd->lci_req_active || hapd->lci_req_token != token) {
wpa_printf(MSG_DEBUG, "Unexpected LCI report, token %u", token);
return;
}
hapd->lci_req_active = 0;
... | hostapd_handle_lci_report | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_handle_nei_report_req(hostapd_data *hapd, const u8 *buf,
size_t len) {
int v3;
size_t lena;
u8 lci;
u8 civic;
u8 token;
u16 lci_max_age;
const u8 *pos;
const u8 *end;
const u8 *ie;
const u8 *iea;
wpa_ssid_value ssid;
unsigned long v14;
v14 = __r... | static void hostapd_handle_nei_report_req(struct hostapd_data *hapd,
const u8 *buf, size_t len) {
const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *)buf;
const u8 *pos, *ie, *end;
struct wpa_ssid_value ssid = {.ssid_len = 0};
u8 token;
u8 lci = 0, civi... | hostapd_handle_nei_report_req | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_handle_radio_measurement(hostapd_data *hapd, const u8 *buf,
size_t len) {
int v3;
if (len > 0x1A) {
wpa_printf(
2,
"Radio measurement frame, action %u from %02x:%02x:%02x:%02x:%02x:%02x",
buf[25], buf[10], buf[11], buf[12], buf[13], buf... | void hostapd_handle_radio_measurement(struct hostapd_data *hapd, const u8 *buf,
size_t len) {
const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *)buf;
if (len < IEEE80211_HDRLEN + 3)
return;
wpa_printf(MSG_DEBUG, "Radio measurement frame, action %u from "... | hostapd_handle_radio_measurement | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_handle_radio_msmt_report(hostapd_data *hapd, const u8 *buf,
size_t len) {
int v3;
u8 token;
u8 rep_mode;
const u8 *pos;
const u8 *end;
const u8 *ie;
end = &buf[len];
token = buf[26];
for (pos = buf + 27;; pos = &ie[ie[1] + 2]) {
ie = get_ie(pos, ... | static void hostapd_handle_radio_msmt_report(struct hostapd_data *hapd,
const u8 *buf, size_t len) {
const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *)buf;
const u8 *pos, *ie, *end;
u8 token, rep_mode;
end = buf + len;
token = mgmt->u.action.u.rrm... | hostapd_handle_radio_msmt_report | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_handle_range_report(hostapd_data *hapd, u8 token, const u8 *pos,
size_t len) {
if ((*((_BYTE *)hapd + 3547) & 2) != 0 && token == hapd->range_req_token) {
*((_BYTE *)hapd + 3547) &= ~2u;
eloop_cancel_timeout(
(eloop_timeout_handler)hostapd_range_rep_timeou... | static void hostapd_handle_range_report(struct hostapd_data *hapd, u8 token,
const u8 *pos, size_t len) {
if (!hapd->range_req_active || hapd->range_req_token != token) {
wpa_printf(MSG_DEBUG, "Unexpected range report, token %u", token);
return;
}
hapd->range_req_a... | hostapd_handle_range_report | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ht_operation_update(hostapd_iface *iface) {
u16 new_op_mode;
int op_mode_changes;
op_mode_changes = 0;
if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed)
return 0;
wpa_printf(2, "%s current operation mode=0x%X", "hostapd_ht_operation_update",
iface->ht_op_mode);
if ... | int hostapd_ht_operation_update(struct hostapd_iface *iface) {
u16 cur_op_mode, new_op_mode;
int op_mode_changes = 0;
if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed)
return 0;
wpa_printf(MSG_DEBUG, "%s current operation mode=0x%X", __func__,
iface->ht_op_mode);
if (!(iface->... | hostapd_ht_operation_update | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_hw_get_channel(hostapd_data *hapd, int freq) {
int i;
int channel;
int channela;
if (hapd->iface->current_mode) {
channel =
hw_get_chan(hapd->iface->current_mode->mode, freq,
hapd->iface->hw_features, hapd->iface->num_hw_features);
if (channel)
return chann... | int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq) {
int i, channel;
struct hostapd_hw_modes *mode;
if (hapd->iface->current_mode) {
channel =
hw_get_chan(hapd->iface->current_mode->mode, freq,
hapd->iface->hw_features, hapd->iface->num_hw_features);
if (channel)
... | hostapd_hw_get_channel | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_hw_get_freq(hostapd_data *hapd, int chan) {
return hw_get_freq(hapd->iface->current_mode, chan);
} | int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) {
return hw_get_freq(hapd->iface->current_mode, chan);
} | hostapd_hw_get_freq | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
const char *hostapd_hw_mode_txt(int mode) {
if (mode == 3)
return "IEEE 802.11ad";
if (mode > 3)
return "UNKNOWN";
switch (mode) {
case 2:
return "IEEE 802.11a";
case 0:
return "IEEE 802.11b";
case 1:
return "IEEE 802.11g";
default:
return "UNKNOWN";
}
} | const char *hostapd_hw_mode_txt(int mode) {
switch (mode) {
case HOSTAPD_MODE_IEEE80211A:
return "IEEE 802.11a";
case HOSTAPD_MODE_IEEE80211B:
return "IEEE 802.11b";
case HOSTAPD_MODE_IEEE80211G:
return "IEEE 802.11g";
case HOSTAPD_MODE_IEEE80211AD:
return "IEEE 802.11ad";
default:
retur... | hostapd_hw_mode_txt | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_hw_skip_mode(hostapd_iface *iface, hostapd_hw_modes *mode) {
int i;
if (iface->current_mode)
return mode != iface->current_mode;
if (mode->mode)
return 0;
for (i = 0; i < iface->num_hw_features; ++i) {
if (iface->hw_features[i].mode == hostapd_hw_mode_HOSTAPD_MODE_IEEE80211G)
retu... | int hostapd_hw_skip_mode(struct hostapd_iface *iface,
struct hostapd_hw_modes *mode) {
int i;
if (iface->current_mode)
return mode != iface->current_mode;
if (mode->mode != HOSTAPD_MODE_IEEE80211B)
return 0;
for (i = 0; i < iface->num_hw_features; i++) {
if (iface->hw_featu... | hostapd_hw_skip_mode | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_if_add(hostapd_data *hapd, wpa_driver_if_type type,
const char *ifname, const u8 *addr, void *bss_ctx,
void **drv_priv, char *force_ifname, u8 *if_addr,
const char *bridge, int use_existing) {
if (hapd->driver && hapd->driver->if_add)
return hap... | int hostapd_if_add(struct hostapd_data *hapd, enum wpa_driver_if_type type,
const char *ifname, const u8 *addr, void *bss_ctx,
void **drv_priv, char *force_ifname, u8 *if_addr,
const char *bridge, int use_existing) {
if (hapd->driver == NULL || hapd->driver->if... | hostapd_if_add | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_if_remove(hostapd_data *hapd, wpa_driver_if_type type,
const char *ifname) {
if (hapd->driver && hapd->drv_priv && hapd->driver->if_remove)
return hapd->driver->if_remove(hapd->drv_priv, type, ifname);
else
return -1;
} | int hostapd_if_remove(struct hostapd_data *hapd, enum wpa_driver_if_type type,
const char *ifname) {
if (hapd->driver == NULL || hapd->drv_priv == NULL ||
hapd->driver->if_remove == NULL)
return -1;
return hapd->driver->if_remove(hapd->drv_priv, type, ifname);
} | hostapd_if_remove | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
hostapd_iface *hostapd_iface_alloc(hapd_interfaces *interfaces) {
hostapd_iface **v2;
hostapd_iface **iface;
hostapd_iface *hapd_iface;
iface = (hostapd_iface **)os_realloc_array_1(interfaces->iface,
interfaces->count + 1, 8u);
if (!iface)
return 0;
interf... | static struct hostapd_iface *
hostapd_iface_alloc(struct hapd_interfaces *interfaces) {
struct hostapd_iface **iface, *hapd_iface;
iface = os_realloc_array(interfaces->iface, interfaces->count + 1,
sizeof(struct hostapd_iface *));
if (iface == NULL)
return NULL;
interfaces->iface... | hostapd_iface_alloc | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_iface_conf_changed(hostapd_config *newconf,
hostapd_config *oldconf) {
size_t i;
if (newconf->num_bss != oldconf->num_bss)
return 1;
for (i = 0; i < newconf->num_bss; ++i) {
if (strcmp(newconf->bss[i]->iface, oldconf->bss[i]->iface))
return 1;
}
return... | static int hostapd_iface_conf_changed(struct hostapd_config *newconf,
struct hostapd_config *oldconf) {
size_t i;
if (newconf->num_bss != oldconf->num_bss)
return 1;
for (i = 0; i < newconf->num_bss; i++) {
if (os_strcmp(newconf->bss[i]->iface, oldconf->bss[i]->ifac... | hostapd_iface_conf_changed | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
hostapd_iface *hostapd_init(hapd_interfaces *interfaces,
const char *config_file) {
long v2;
hostapd_config *conf;
size_t i;
hostapd_iface *hapd_iface;
conf = 0;
hapd_iface = hostapd_alloc_iface();
if (hapd_iface && (hapd_iface->config_fname = strdup(config_file)) != 0 &&
... | struct hostapd_iface *hostapd_init(struct hapd_interfaces *interfaces,
const char *config_file) {
struct hostapd_iface *hapd_iface = NULL;
struct hostapd_config *conf = NULL;
struct hostapd_data *hapd;
size_t i;
hapd_iface = hostapd_alloc_iface();
if (hapd_iface == NULL)
... | hostapd_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_init_wps(hostapd_data *hapd, hostapd_bss_config *conf) {
long v3;
long v4;
char *v5;
char *v6;
char *v7;
char *v8;
char *v9;
char v10;
_BOOL4 v11;
char *multi_ap_netw_key;
wps_context *wps;
const u8 *uuid;
wps_registrar_config_0 cfg;
unsigned long v16;
v16 = __readfsqword(0x28... | int hostapd_init_wps(struct hostapd_data *hapd,
struct hostapd_bss_config *conf) {
struct wps_context *wps;
struct wps_registrar_config cfg;
u8 *multi_ap_netw_key = NULL;
if (conf->wps_state == 0) {
hostapd_wps_clear_ies(hapd, 0);
return 0;
}
wps = os_zalloc(sizeof(*wps));
i... | hostapd_init_wps | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_init_wps_complete(hostapd_data *hapd) {
wps_context *wps;
wps = hapd->wps;
if (!wps)
return 0;
if (hostapd_wps_upnp_init(hapd, wps) >= 0)
return 0;
wpa_printf(5, "Failed to initialize WPS UPnP");
wps_registrar_deinit(wps->registrar);
hostapd_free_wps(wps);
hapd->wps = 0;
return -1... | int hostapd_init_wps_complete(struct hostapd_data *hapd) {
struct wps_context *wps = hapd->wps;
if (wps == NULL)
return 0;
#ifdef CONFIG_WPS_UPNP
if (hostapd_wps_upnp_init(hapd, wps) < 0) {
wpa_printf(MSG_ERROR, "Failed to initialize WPS UPnP");
wps_registrar_deinit(wps->registrar);
hostapd_free... | hostapd_init_wps_complete | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_interface_deinit(hostapd_iface *iface) {
int j;
wpa_printf(2, "%s(%p)", "hostapd_interface_deinit", iface);
if (iface) {
hostapd_set_state(iface, hostapd_iface_state_HAPD_IFACE_DISABLED);
eloop_cancel_timeout((eloop_timeout_handler)channel_list_update_timeout,
iface,... | void hostapd_interface_deinit(struct hostapd_iface *iface) {
int j;
wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface);
if (iface == NULL)
return;
hostapd_set_state(iface, HAPD_IFACE_DISABLED);
eloop_cancel_timeout(channel_list_update_timeout, iface, NULL);
iface->wait_channel_update = 0;
#ifdef CONFI... | hostapd_interface_deinit | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_interface_deinit_free(hostapd_iface *iface) {
const wpa_driver_ops *driver;
void *drv_priv;
wpa_printf(2, "%s(%p)", "hostapd_interface_deinit_free", iface);
if (iface) {
wpa_printf(2, "%s: num_bss=%u conf->num_bss=%u",
"hostapd_interface_deinit_free", iface->num_bss,
... | void hostapd_interface_deinit_free(struct hostapd_iface *iface) {
const struct wpa_driver_ops *driver;
void *drv_priv;
wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface);
if (iface == NULL)
return;
wpa_printf(MSG_DEBUG, "%s: num_bss=%u conf->num_bss=%u", __func__,
(unsigned int)iface->num_bss,... | hostapd_interface_deinit_free | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_interface_free(hostapd_iface *iface) {
size_t j;
wpa_printf(2, "%s(%p)", "hostapd_interface_free", iface);
for (j = 0; j < iface->num_bss && iface->bss; ++j) {
wpa_printf(2, "%s: free hapd %p", "hostapd_interface_free", iface->bss[j]);
free(iface->bss[j]);
}
hostapd_cleanup_iface(iface);... | void hostapd_interface_free(struct hostapd_iface *iface) {
size_t j;
wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface);
for (j = 0; j < iface->num_bss; j++) {
if (!iface->bss)
break;
wpa_printf(MSG_DEBUG, "%s: free hapd %p", __func__, iface->bss[j]);
os_free(iface->bss[j]);
}
hostapd_cleanup_... | hostapd_interface_free | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
hostapd_iface *hostapd_interface_init(hapd_interfaces *interfaces,
const char *if_name,
const char *config_fname, int debug) {
hostapd_bss_config *conf;
int k;
hostapd_iface *iface;
wpa_printf(2, "Configuration file: %s", config_fname)... | static struct hostapd_iface *
hostapd_interface_init(struct hapd_interfaces *interfaces, const char *if_name,
const char *config_fname, int debug) {
struct hostapd_iface *iface;
int k;
wpa_printf(MSG_DEBUG, "Configuration file: %s", config_fname);
iface = hostapd_init(interfaces, config_... | hostapd_interface_init | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
hostapd_iface *hostapd_interface_init_bss(hapd_interfaces *interfaces,
const char *phy,
const char *config_fname, int debug) {
const char *v5;
hostapd_bss_config **v6;
size_t num_bss;
hostapd_bss_config *v8;
int k;
hostapd_i... | struct hostapd_iface *
hostapd_interface_init_bss(struct hapd_interfaces *interfaces, const char *phy,
const char *config_fname, int debug) {
struct hostapd_iface *new_iface = NULL, *iface = NULL;
struct hostapd_data *hapd;
int k;
size_t i, bss_idx;
if (!phy || !*phy)
return NU... | hostapd_interface_init_bss | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
void hostapd_interface_setup_failure_handler(void *eloop_ctx,
void *timeout_ctx) {
hostapd_data *hapd;
if (*((_QWORD *)eloop_ctx + 7) && *((_QWORD *)eloop_ctx + 8) &&
**((_QWORD **)eloop_ctx + 8)) {
hapd = (hostapd_data *)**((_QWORD **)eloop_ctx + 8);
if (... | static void hostapd_interface_setup_failure_handler(void *eloop_ctx,
void *timeout_ctx) {
struct hostapd_iface *iface = eloop_ctx;
struct hostapd_data *hapd;
if (iface->num_bss < 1 || !iface->bss || !iface->bss[0])
return;
hapd = iface->bss[0];
if (hapd... | hostapd_interface_setup_failure_handler | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
hostapd_data *hostapd_interfaces_get_hapd(hapd_interfaces *interfaces,
const char *ifname) {
size_t i;
size_t j;
hostapd_iface *iface;
hostapd_data *hapd;
for (i = 0; i < interfaces->count; ++i) {
iface = interfaces->iface[i];
for (j = 0; j < iface->num_bss; ... | static struct hostapd_data *
hostapd_interfaces_get_hapd(struct hapd_interfaces *interfaces,
const char *ifname) {
size_t i, j;
for (i = 0; i < interfaces->count; i++) {
struct hostapd_iface *iface = interfaces->iface[i];
for (j = 0; j < iface->num_bss; j++) {
struct host... | hostapd_interfaces_get_hapd | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ioctl(void *priv, prism2_hostapd_param *param, int len) {
int *v3;
char *v4;
__u16_0 lena;
iwreq iwr;
unsigned long v8;
lena = len;
v8 = __readfsqword(0x28u);
memset(&iwr, 0, sizeof(iwr));
os_strlcpy(iwr.ifr_ifrn.ifrn_name, (const char *)priv + 8, 0x10u);
iwr.u.essid.pointer = param;
... | static int hostapd_ioctl(void *priv, struct prism2_hostapd_param *param,
int len) {
struct hostap_driver_data *drv = priv;
struct iwreq iwr;
memset(&iwr, 0, sizeof(iwr));
os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
iwr.u.data.pointer = (caddr_t)param;
iwr.u.data.length = len;
... | hostapd_ioctl | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_ioctl_set_generic_elem(hostap_driver_data *drv) {
int res;
size_t blen;
size_t elem_len;
prism2_hostapd_param *param;
elem_len = drv->generic_ie_len + drv->wps_ie_len;
blen = elem_len + 13;
if (elem_len + 13 <= 0x2F)
blen = 48;
param = (prism2_hostapd_param *)os_zalloc(blen);
if (!par... | static int hostapd_ioctl_set_generic_elem(struct hostap_driver_data *drv) {
struct prism2_hostapd_param *param;
int res;
size_t blen, elem_len;
elem_len = drv->generic_ie_len + drv->wps_ie_len;
blen = PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN + elem_len;
if (blen < sizeof(*param))
blen = sizeof(*param);
... | hostapd_ioctl_set_generic_elem | hostapd-2.10 | net-wireless | O0/net-wireless/hostapd-2.10/hostapd | ida | O0 |
int hostapd_is_dfs_chan_available(hostapd_iface *iface) {
int n_chans1;
int start_chan_idx1;
int start_chan_idx;
int n_chans;
unsigned long v6;
v6 = __readfsqword(0x28u);
start_chan_idx = dfs_get_start_chan_idx(iface, &start_chan_idx1);
if (start_chan_idx < 0)
return 0;
n_chans = dfs_get_used_n_c... | int hostapd_is_dfs_chan_available(struct hostapd_iface *iface) {
int n_chans, n_chans1, start_chan_idx, start_chan_idx1;
start_chan_idx = dfs_get_start_chan_idx(iface, &start_chan_idx1);
if (start_chan_idx < 0)
return 0;
n_chans = dfs_get_used_n_chans(iface, &n_chans1);
return dfs_check_chans_available... | hostapd_is_dfs_chan_available | 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.