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_is_dfs_overlap(hostapd_iface *iface, chan_width width, int center_freq) { const char *v4; int half_width; int res; int i; hostapd_hw_modes *mode; hostapd_channel_data *chan; mode = iface->current_mode; res = 0; if (!iface->conf->ieee80211h || !mode || mode...
int hostapd_is_dfs_overlap(struct hostapd_iface *iface, enum chan_width width, int center_freq) { struct hostapd_channel_data *chan; struct hostapd_hw_modes *mode = iface->current_mode; int half_width; int res = 0; int i; if (!iface->conf->ieee80211h || !mode || mode->mode ...
hostapd_is_dfs_overlap
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_is_dfs_required(hostapd_iface *iface) { int n_chans1; int start_chan_idx1; int res; int start_chan_idx; int n_chans; unsigned long v7; v7 = __readfsqword(0x28u); if ((iface->drv_flags & 4) == 0 && !iface->conf->ieee80211h || !iface->current_mode || iface->current_mode->mode != h...
int hostapd_is_dfs_required(struct hostapd_iface *iface) { int n_chans, n_chans1, start_chan_idx, start_chan_idx1, res; if ((!(iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) && !iface->conf->ieee80211h) || !iface->current_mode || iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A) return...
hostapd_is_dfs_required
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_is_usable_chan(hostapd_iface *iface, int frequency, int primary) { const char *v4; const char *v5; const char *v6; hostapd_channel_data *chan; if (!iface->current_mode) return 0; chan = hw_get_channel_freq(iface->current_mode->mode, frequency, 0, iface->hw_featu...
static int hostapd_is_usable_chan(struct hostapd_iface *iface, int frequency, int primary) { struct hostapd_channel_data *chan; if (!iface->current_mode) return 0; chan = hw_get_channel_freq(iface->current_mode->mode, frequency, NULL, iface->hw_...
hostapd_is_usable_chan
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_is_usable_chans(hostapd_iface *iface) { hostapd_channel_data *pri_chan; if (!iface->current_mode) return 0; pri_chan = hw_get_channel_freq(iface->current_mode->mode, iface->freq, 0, iface->hw_features, iface->num_hw_features); if (!pri_chan) { wpa_printf(5, ...
static int hostapd_is_usable_chans(struct hostapd_iface *iface) { int secondary_freq; struct hostapd_channel_data *pri_chan; if (!iface->current_mode) return 0; pri_chan = hw_get_channel_freq(iface->current_mode->mode, iface->freq, NULL, iface->hw_features, iface->num_hw_fe...
hostapd_is_usable_chans
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_is_usable_edmg(hostapd_iface *iface) { int i; int contiguous; int num_of_enabled; int max_contiguous; hostapd_channel_data *pri_chan; ieee80211_edmg_config edmg; unsigned long v8; v8 = __readfsqword(0x28u); contiguous = 0; num_of_enabled = 0; max_contiguous = 0; if (!iface->conf->en...
static int hostapd_is_usable_edmg(struct hostapd_iface *iface) { int i, contiguous = 0; int num_of_enabled = 0; int max_contiguous = 0; struct ieee80211_edmg_config edmg; struct hostapd_channel_data *pri_chan; if (!iface->conf->enable_edmg) return 1; if (!iface->current_mode) return 0; pri_cha...
hostapd_is_usable_edmg
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_lci_rep_timeout_handler(void *eloop_data, void *user_ctx) { wpa_printf(2, "RRM: LCI request (token %u) timed out", *((unsigned char *)eloop_data + 3545)); *((_BYTE *)eloop_data + 3547) &= ~1u; }
static void hostapd_lci_rep_timeout_handler(void *eloop_data, void *user_ctx) { struct hostapd_data *hapd = eloop_data; wpa_printf(MSG_DEBUG, "RRM: LCI request (token %u) timed out", hapd->lci_req_token); hapd->lci_req_active = 0; }
hostapd_lci_rep_timeout_handler
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level, const char *fmt, ...) { long v5; int buflen; int len; char *buf; va_list ap; unsigned long v13; long v14; va_start(ap, fmt); v5 = va_arg(ap, _QWORD); v14 = v5; v13 = __readfsqword(0x28u); ap[0].gp...
void hostapd_logger(void *ctx, const u8 *addr, unsigned int module, int level, const char *fmt, ...) { va_list ap; char *buf; int buflen; int len; va_start(ap, fmt); buflen = vsnprintf(NULL, 0, fmt, ap) + 1; va_end(ap); buf = os_malloc(buflen); if (buf == NULL) { wpa_printf(M...
hostapd_logger
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_logger_cb(void *ctx, const u8 *addr, unsigned int module, int level, const char *txt, size_t len) { const char *v6; const char *v7; const char *v8; const char *v9; const char *v10; const char *v11; const char *v12; const char *v13; int conf_syslog_level; int conf_...
static void hostapd_logger_cb(void *ctx, const u8 *addr, unsigned int module, int level, const char *txt, size_t len) { struct hostapd_data *hapd = ctx; char *format, *module_str; int maxlen; int conf_syslog_level, conf_stdout_level; unsigned int conf_syslog, conf_stdout; maxl...
hostapd_logger_cb
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_logger_register_cb(hostapd_logger_cb_func func) { hostapd_logger_cb_0 = func; }
void hostapd_logger_register_cb(hostapd_logger_cb_func func) { hostapd_logger_cb = func; }
hostapd_logger_register_cb
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_mac_comp(const void *a, const void *b) { return memcmp(a, b, 6u); }
int hostapd_mac_comp(const void *a, const void *b) { return os_memcmp(a, b, sizeof(macaddr)); }
hostapd_mac_comp
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_maclist_found(mac_acl_entry *list, int num_entries, const u8 *addr, vlan_description *vlan_id) { mac_acl_entry *v4; long v5; long v6; long v7; long v8; long v9; long v10; long v11; long v12; int start; int end; int middle; int res; start = 0; end = nu...
int hostapd_maclist_found(struct mac_acl_entry *list, int num_entries, const u8 *addr, struct vlan_description *vlan_id) { int start, end, middle, res; start = 0; end = num_entries - 1; while (start <= end) { middle = (start + end) / 2; res = os_memcmp(list[middle].addr, addr...
hostapd_maclist_found
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 hostapd_mbo_ie_len(hostapd_data *hapd) { return 0; }
u8 hostapd_mbo_ie_len(struct hostapd_data *hapd) { u8 len; if (!hapd->conf->mbo_enabled && !OCE_STA_CFON_ENABLED(hapd) && !OCE_AP_ENABLED(hapd)) return 0; len = 6; if (hapd->conf->mbo_enabled) len += 3 + (hapd->mbo_assoc_disallow ? 3 : 0); if (OCE_STA_CFON_ENABLED(hapd) || OCE_AP_ENABLED(hapd...
hostapd_mbo_ie_len
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_mgmt_rx(hostapd_data *hapd, rx_mgmt *rx_mgmt) { hostapd_data *hapda; int ret; size_t i; hostapd_iface *iface; const u8 *hdr; const u8 *bssid; hostapd_frame_info fi; unsigned long v10; v10 = __readfsqword(0x28u); iface = hapd->iface; hdr = rx_mgmt->frame; bssid = get_hdr_bssid(...
static int hostapd_mgmt_rx(struct hostapd_data *hapd, struct rx_mgmt *rx_mgmt) { struct hostapd_iface *iface = hapd->iface; const struct ieee80211_hdr *hdr; const u8 *bssid; struct hostapd_frame_info fi; int ret; #ifdef CONFIG_TESTING_OPTIONS if (hapd->ext_mgmt_frame_handling) { size_t hex_len = 2 * rx...
hostapd_mgmt_rx
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_mgmt_tx_cb(hostapd_data *hapd, const u8 *buf, size_t len, u16 stype, int ok) { const u8 *hdr_bssid; hostapd_data *hapda; hdr_bssid = get_hdr_bssid((const ieee80211_hdr *)buf, len); hapda = get_hapd_bssid(hapd->iface, hdr_bssid); if (hapda) { if (hapda != (hostapd_data...
static void hostapd_mgmt_tx_cb(struct hostapd_data *hapd, const u8 *buf, size_t len, u16 stype, int ok) { struct ieee80211_hdr *hdr; struct hostapd_data *orig_hapd = hapd; hdr = (struct ieee80211_hdr *)buf; hapd = get_hapd_bssid(hapd->iface, get_hdr_bssid(hdr, len)); if (!hapd)...
hostapd_mgmt_tx_cb
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
const char *hostapd_msg_ifname_cb(void *ctx) { if (ctx && *((_QWORD *)ctx + 2)) return (const char *)*((_QWORD *)ctx + 2); else return 0; }
static const char *hostapd_msg_ifname_cb(void *ctx) { struct hostapd_data *hapd = ctx; if (hapd && hapd->conf) return hapd->conf->iface; return NULL; }
hostapd_msg_ifname_cb
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_neighbor_entry *hostapd_neighbor_add(hostapd_data *hapd) { hostapd_neighbor_entry *nr; nr = (hostapd_neighbor_entry *)os_zalloc(0x78u); if (!nr) return 0; dl_list_add_4(&hapd->nr_db, &nr->list); return nr; }
static struct hostapd_neighbor_entry * hostapd_neighbor_add(struct hostapd_data *hapd) { struct hostapd_neighbor_entry *nr; nr = os_zalloc(sizeof(struct hostapd_neighbor_entry)); if (!nr) return NULL; dl_list_add(&hapd->nr_db, &nr->list); return nr; }
hostapd_neighbor_add
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_neighbor_clear_entry(hostapd_neighbor_entry *nr) { wpabuf_free(nr->nr); nr->nr = 0; wpabuf_free(nr->lci); nr->lci = 0; wpabuf_free(nr->civic); nr->civic = 0; memset(nr->bssid, 0, sizeof(nr->bssid)); memset(&nr->ssid, 0, sizeof(nr->ssid)); nr->stationary = 0; }
static void hostapd_neighbor_clear_entry(struct hostapd_neighbor_entry *nr) { wpabuf_free(nr->nr); nr->nr = NULL; wpabuf_free(nr->lci); nr->lci = NULL; wpabuf_free(nr->civic); nr->civic = NULL; os_memset(nr->bssid, 0, sizeof(nr->bssid)); os_memset(&nr->ssid, 0, sizeof(nr->ssid)); nr->stationary = 0; }
hostapd_neighbor_clear_entry
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_neighbor_entry *hostapd_neighbor_get(hostapd_data *hapd, const u8 *bssid, const wpa_ssid_value *ssid) { hostapd_neighbor_entry *nr; for (nr = (hostapd_neighbor_entry *)hapd->nr_db.next; nr != (hostapd_neighbor_...
struct hostapd_neighbor_entry * hostapd_neighbor_get(struct hostapd_data *hapd, const u8 *bssid, const struct wpa_ssid_value *ssid) { struct hostapd_neighbor_entry *nr; dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, list) { if (os_memcmp(bssid, nr->bssid, ETH_ALEN) == 0 ...
hostapd_neighbor_get
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_neighbor_remove(hostapd_data *hapd, const u8 *bssid, const wpa_ssid_value *ssid) { hostapd_neighbor_entry *nr; nr = hostapd_neighbor_get(hapd, bssid, ssid); if (!nr) return -1; hostapd_neighbor_clear_entry(nr); dl_list_del_5(&nr->list); free(nr); return 0; }
int hostapd_neighbor_remove(struct hostapd_data *hapd, const u8 *bssid, const struct wpa_ssid_value *ssid) { struct hostapd_neighbor_entry *nr; nr = hostapd_neighbor_get(hapd, bssid, ssid); if (!nr) return -1; hostapd_neighbor_clear_entry(nr); dl_list_del(&nr->list); os_fre...
hostapd_neighbor_remove
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
size_t hostapd_neighbor_report_len(wpabuf *buf, hostapd_neighbor_entry *nr, int send_lci, int send_civic) { size_t len; len = wpabuf_len_8(nr->nr) + 2; if (send_lci && nr->lci) len += wpabuf_len_8(nr->lci) + 2; if (send_civic && nr->civic) len += wpabuf_len_8(nr->civi...
static size_t hostapd_neighbor_report_len(struct wpabuf *buf, struct hostapd_neighbor_entry *nr, int send_lci, int send_civic) { size_t len = 2 + wpabuf_len(nr->nr); if (send_lci && nr->lci) len += 2 + wpabuf_len(nr->lci); i...
hostapd_neighbor_report_len
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_neighbor_set(hostapd_data *hapd, const u8 *bssid, const wpa_ssid_value *ssid, const wpabuf *nr, const wpabuf *lci, const wpabuf *civic, int stationary, u8 bss_parameters) { hostapd_neighbor_entry *entry; entry = hostapd_neighbor...
int hostapd_neighbor_set(struct hostapd_data *hapd, const u8 *bssid, const struct wpa_ssid_value *ssid, const struct wpabuf *nr, const struct wpabuf *lci, const struct wpabuf *civic, int stationary, u8 bss_parameters) { ...
hostapd_neighbor_set
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_neighbor_set_own_report(hostapd_data *hapd) { _BOOL4 v1; _BOOL4 v2; _BOOL4 v3; u8 oper_chwidth_2; u8 phy_type; u8 channel; u8 op_class; u8 center_freq1_idx; u8 center_freq2_idx; u16 capab; u32 bssid_info; int ht; int vht; int he; nr_chan_width width; wpabuf *nr; wpa_ssid_v...
void hostapd_neighbor_set_own_report(struct hostapd_data *hapd) { #ifdef NEED_AP_MLME u16 capab = hostapd_own_capab_info(hapd); int ht = hapd->iconf->ieee80211n && !hapd->conf->disable_11n; int vht = hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac; int he = hapd->iconf->ieee80211ax && !hapd->conf->disable...
hostapd_neighbor_set_own_report
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_neighbor_show(hostapd_data *hapd, char *buf, size_t buflen) { size_t v3; const u8 *v4; size_t v5; const u8 *v6; size_t v7; const u8 *v8; const char *v9; const char *v10; const char *v11; const char *v12; int bufa; int ret; hostapd_neighbor_entry *nr; char *pos; char *end; cha...
int hostapd_neighbor_show(struct hostapd_data *hapd, char *buf, size_t buflen) { struct hostapd_neighbor_entry *nr; char *pos, *end; pos = buf; end = buf + buflen; dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, list) { int ret; char nrie[2 * 255 + 1]; char lci[2 * 255 + 1]; ...
hostapd_neighbor_show
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_new_assoc_sta(hostapd_data *hapd, sta_info *sta, int reassoc) { if (hapd->tkip_countermeasures) { hostapd_drv_sta_deauth(hapd, sta->addr, 14); } else { hostapd_prune_associations(hapd, sta->addr); ap_sta_clear_disconnect_timeouts(hapd, sta); *((_BYTE *)sta + 99) &= ~0x20u; airtime_p...
void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta, int reassoc) { if (hapd->tkip_countermeasures) { hostapd_drv_sta_deauth(hapd, sta->addr, WLAN_REASON_MICHAEL_MIC_FAILURE); return; } hostapd_prune_associations(hapd, sta->addr); ap_sta_clear_disconnec...
hostapd_new_assoc_sta
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_notif_assoc(hostapd_data *hapd, const u8 *addr, const u8 *req_ies, size_t req_ies_len, int reassoc) { u32 v6; u32 v7; size_t v8; const u8 *v9; u32 v10; u32 flags; u32 v12; u16 ret_status; u16 reason; int status; wpa_validate_result res; int new_assoc; sta_in...
int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, const u8 *req_ies, size_t req_ies_len, int reassoc) { struct sta_info *sta; int new_assoc; enum wpa_validate_result res; struct ieee802_11_elems elems; const u8 *ie; size_t ielen; u8 buf[sizeof(struct ieee80211_mgmt...
hostapd_notif_assoc
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_notif_auth(hostapd_data *hapd, auth_info *rx_auth) { u32 flags; sta_info *sta; u8 resp_ies[136]; unsigned long v5; v5 = __readfsqword(0x28u); sta = ap_get_sta(hapd, rx_auth->peer); if (sta || (sta = ap_sta_add(hapd, rx_auth->peer)) != 0) { flags = sta->flags; BYTE1(flags) &= ~1u; ...
static void hostapd_notif_auth(struct hostapd_data *hapd, struct auth_info *rx_auth) { struct sta_info *sta; u16 status = WLAN_STATUS_SUCCESS; u8 resp_ies[2 + WLAN_AUTH_CHALLENGE_LEN]; size_t resp_ies_len = 0; sta = ap_get_sta(hapd, rx_auth->peer); if (!sta) { sta = ap_st...
hostapd_notif_auth
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_notif_disassoc(hostapd_data *hapd, const u8 *addr) { sta_info *sta; if (addr) { hostapd_logger(hapd, addr, 1u, 2, "disassociated"); sta = ap_get_sta(hapd, addr); if (sta) { ap_sta_set_authorized(hapd, sta, 0); sta->flags &= 0xFFFFFFFC; hostapd_set_sta_flags(hapd, sta); ...
void hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr) { struct sta_info *sta; if (addr == NULL) { wpa_printf(MSG_DEBUG, "hostapd_notif_disassoc: Skip event with no address"); return; } hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, HOSTAPD_LEVEL_INFO, "disassoc...
hostapd_notif_disassoc
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_notif_update_dh_ie(hostapd_data *hapd, const u8 *peer, const u8 *ie, size_t ie_len) { u16 status; sta_info *sta; ieee802_11_elems elems; unsigned long v8; v8 = __readfsqword(0x28u); if (!hapd || !hapd->wpa_auth) { wpa_printf(2, "OWE: Invalid hapd context"); ...
static int hostapd_notif_update_dh_ie(struct hostapd_data *hapd, const u8 *peer, const u8 *ie, size_t ie_len) { u16 status; struct sta_info *sta; struct ieee802_11_elems elems; if (!hapd || !hapd->wpa_auth) { wpa_printf(MSG_DEBUG, "OWE: Invalid hapd context"); retu...
hostapd_notif_update_dh_ie
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_notify_auth_ft_finish(void *ctx, const u8 *dst, const u8 *bssid, u16 auth_transaction, u16 status, const u8 *ies, size_t ies_len) { sta_info *sta; sta = ap_get_sta((hostapd_data *)ctx, dst); if (sta) { hostapd_logger(ctx, dst,...
static void hostapd_notify_auth_ft_finish(void *ctx, const u8 *dst, const u8 *bssid, u16 auth_transaction, u16 status, const u8 *ies, size_t ies_len) { struct hostapd_data *hapd = ctx; struc...
hostapd_notify_auth_ft_finish
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_notify_bad_chans(hostapd_iface *iface) { const char *v1; if (iface->current_mode) { v1 = hostapd_hw_mode_txt(iface->current_mode->mode); hostapd_logger( *(void **)iface->bss, 0, 1u, 4, "Configured channel (%d) or frequency (%d) (secondary_channel=%d) not " "found from t...
static void hostapd_notify_bad_chans(struct hostapd_iface *iface) { if (!iface->current_mode) { hostapd_logger(iface->bss[0], NULL, HOSTAPD_MODULE_IEEE80211, HOSTAPD_LEVEL_WARNING, "Hardware does not support configured mode"); return; } hostapd_logger( iface->bs...
hostapd_notify_bad_chans
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_ocv_check_csa_sa_query(void *eloop_ctx, void *timeout_ctx) { sta_info *sta; wpa_printf(2, "OCV: Post-CSA SA Query initiation check"); for (sta = (sta_info *)*((_QWORD *)eloop_ctx + 5); sta; sta = sta->next) { if ((*((_BYTE *)sta + 99) & 0x20) != 0) { wpa_printf(2, "OCV: OC...
void hostapd_ocv_check_csa_sa_query(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct sta_info *sta; wpa_printf(MSG_DEBUG, "OCV: Post-CSA SA Query initiation check"); for (sta = hapd->sta_list; sta; sta = sta->next) { if (!sta->post_csa_sa_query) continue; wpa_...
hostapd_ocv_check_csa_sa_query
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_oui_deliver_later(void *eloop_ctx, void *timeout_ctx) { oui_deliver_later_data *data; oui_deliver_later_data *n; eth_p_oui_ctx *oui_ctx; data = (oui_deliver_later_data *)*((_QWORD *)eloop_ctx + 325); n = (oui_deliver_later_data *)data->list.next; while (data != (oui_deliver_later_data *)((char...
static void hostapd_oui_deliver_later(void *eloop_ctx, void *timeout_ctx) { struct hostapd_data *hapd = eloop_ctx; struct oui_deliver_later_data *data, *n; struct eth_p_oui_ctx *oui_ctx; dl_list_for_each_safe(data, n, &hapd->l2_oui_queue, struct oui_deliver_later_data, list) { oui_c...
hostapd_oui_deliver_later
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_owe_iface_iter(hostapd_iface *iface, void *ctx) { const char *v2; size_t i; hostapd_data *bss; for (i = 0; i < iface->num_bss; ++i) { bss = iface->bss[i]; if (!strcmp((const char *)(*((_QWORD *)ctx + 2) + 2224LL), bss->conf->iface)) { v2 = wpa_ssid_txt(bss->conf->ssid....
static int hostapd_owe_iface_iter(struct hostapd_iface *iface, void *ctx) { struct hostapd_data *hapd = ctx; size_t i; for (i = 0; i < iface->num_bss; i++) { struct hostapd_data *bss = iface->bss[i]; if (os_strcmp(hapd->conf->owe_transition_ifname, bss->conf->iface) != 0) continue; wpa_printf...
hostapd_owe_iface_iter
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_owe_iface_iter2(hostapd_iface *iface, void *ctx) { const char *v2; size_t i; hostapd_data *bss; for (i = 0; i < iface->num_bss; ++i) { bss = iface->bss[i]; if (bss->conf->owe_transition_ifname[0]) { if (bss->iface->state == hostapd_iface_state_HAPD_IFACE_ENABLED) { if (hostapd...
static int hostapd_owe_iface_iter2(struct hostapd_iface *iface, void *ctx) { size_t i; for (i = 0; i < iface->num_bss; i++) { struct hostapd_data *bss = iface->bss[i]; int res; if (!bss->conf->owe_transition_ifname[0]) continue; if (bss->iface->state != HAPD_IFACE_ENABLED) { wpa_printf...
hostapd_owe_iface_iter2
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_owe_trans_get_info(hostapd_data *hapd) { if (hapd->conf->owe_transition_ssid_len && !is_zero_ether_addr(hapd->conf->owe_transition_bssid)) return 0; if (hapd->iface->interfaces && hapd->iface->interfaces->for_each_interface) return hapd->iface->interfaces->for_each_interface( hapd-...
int hostapd_owe_trans_get_info(struct hostapd_data *hapd) { if (hapd->conf->owe_transition_ssid_len > 0 && !is_zero_ether_addr(hapd->conf->owe_transition_bssid)) return 0; if (!hapd->iface->interfaces || !hapd->iface->interfaces->for_each_interface) return hostapd_owe_iface_iter(hapd->iface, hapd); ...
hostapd_owe_trans_get_info
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_owe_update_trans(hostapd_iface *iface) { if (iface->interfaces && iface->interfaces->for_each_interface) iface->interfaces->for_each_interface( iface->interfaces, (int (*)(hostapd_iface *, void *))hostapd_owe_iface_iter2, 0); else hostapd_owe_iface_iter2(iface, 0); }
static void hostapd_owe_update_trans(struct hostapd_iface *iface) { #ifdef CONFIG_OWE if (!iface->interfaces || !iface->interfaces->for_each_interface) hostapd_owe_iface_iter2(iface, NULL); else iface->interfaces->for_each_interface(iface->interfaces, hostapd_owe_i...
hostapd_owe_update_trans
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u16 hostapd_own_capab_info(hostapd_data *hapd) { u16 v1; u16 v2; u16 capab; int privacy; int dfs; int i; capab = 1; privacy = 0; dfs = hostapd_is_dfs_required(hapd->iface); if (dfs < 0) { wpa_printf(4, "Failed to check if DFS is required; ret=%d", dfs); dfs = 0; } if (!hapd->iface->num_...
u16 hostapd_own_capab_info(struct hostapd_data *hapd) { int capab = WLAN_CAPABILITY_ESS; int privacy = 0; int dfs; int i; dfs = hostapd_is_dfs_required(hapd->iface); if (dfs < 0) { wpa_printf(MSG_WARNING, "Failed to check if DFS is required; ret=%d", dfs); dfs = 0; } if (hapd->iface->num_sta_n...
hostapd_own_capab_info
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_parse_chanlist(hostapd_config *conf, char *val) { char *v2; const char *pos; pos = val; while (pos) { pos = strchr(pos, 32); if (pos) { v2 = (char *)pos++; *v2 = 44; } } if (freq_range_list_parse(&conf->acs_ch_list, val)) return -1; else return 0; }
static int hostapd_parse_chanlist(struct hostapd_config *conf, char *val) { char *pos; pos = val; while (pos) { pos = os_strchr(pos, ' '); if (pos) *pos++ = ','; } if (freq_range_list_parse(&conf->acs_ch_list, val)) return -1; return 0; }
hostapd_parse_chanlist
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_parse_csa_settings(const char *pos, csa_settings *settings) { char *end; const char *pos2; const char *pos2_0; const char *pos2_1; const char *pos2_2; unsigned long v8; v8 = __readfsqword(0x28u); memset(settings, 0, sizeof(csa_settings)); settings->cs_count = strtol(pos, &end, 10); if (...
int hostapd_parse_csa_settings(const char *pos, struct csa_settings *settings) { char *end; os_memset(settings, 0, sizeof(*settings)); settings->cs_count = strtol(pos, &end, 10); if (pos == end) { wpa_printf(MSG_ERROR, "chanswitch: invalid cs_count provided"); return -1; } settings->freq_params.fr...
hostapd_parse_csa_settings
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_parse_das_client(hostapd_bss_config *bss, char *val) { char *v3; char *secret; char *secreta; secret = strchr(val, 32); if (!secret) return -1; v3 = secret; secreta = secret + 1; *v3 = 0; if (hostapd_parse_ip_addr(val, &bss->radius_das_client_addr)) return -1; free(bss->radius_d...
static int hostapd_parse_das_client(struct hostapd_bss_config *bss, char *val) { char *secret; secret = os_strchr(val, ' '); if (secret == NULL) return -1; *secret++ = '\0'; if (hostapd_parse_ip_addr(val, &bss->radius_das_client_addr)) return -1; os_free(bss->radius_das_shared_secret); bss->ra...
hostapd_parse_das_client
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_parse_intlist(int **int_list, char *val) { int v3; int count; int counta; char *pos; const char *posa; int *list; char *end; free(*int_list); *int_list = 0; pos = val; count = 0; while (*pos) { if (*pos == 32) ++count; ++pos; } list = (int *)malloc(4LL * (count + 2...
static int hostapd_parse_intlist(int **int_list, char *val) { int *list; int count; char *pos, *end; os_free(*int_list); *int_list = NULL; pos = val; count = 0; while (*pos != '\0') { if (*pos == ' ') count++; pos++; } list = os_malloc(sizeof(int) * (count + 2)); if (list == NULL)...
hostapd_parse_intlist
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u16 hostapd_parse_location_lci_req_age(const u8 *buf, size_t len) { const u8 *subelem; if (len <= 7) return 0; subelem = get_ie(buf + 4, len - 4, 4u); if (subelem && subelem[1] == 2) return WPA_GET_LE16_0(subelem + 2); else return 0; }
static u16 hostapd_parse_location_lci_req_age(const u8 *buf, size_t len) { const u8 *subelem; if (len < 3 + 1 + 4) return 0; subelem = get_ie(buf + 4, len - 4, LCI_REQ_SUBELEM_MAX_AGE); if (subelem && subelem[1] == 2) return WPA_GET_LE16(subelem + 2); return 0; }
hostapd_parse_location_lci_req_age
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_radius_attr *hostapd_parse_radius_attr(const char *value) { size_t v2; u8 *v3; u32 v4; char syntax; hostapd_radius_attr *attr; char *pos; const char *posa; const char *posb; size_t len; size_t lena; attr = (hostapd_radius_attr *)os_zalloc(0x18u); if (!attr) return 0; attr->type = ...
struct hostapd_radius_attr *hostapd_parse_radius_attr(const char *value) { const char *pos; char syntax; struct hostapd_radius_attr *attr; size_t len; attr = os_zalloc(sizeof(*attr)); if (!attr) return NULL; attr->type = atoi(value); pos = os_strchr(value, ':'); if (!pos) { attr->val = wpab...
hostapd_parse_radius_attr
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_periodic(void *eloop_ctx, void *timeout_ctx) { eloop_register_timeout(0xAu, 0, (eloop_timeout_handler)hostapd_periodic, eloop_ctx, 0); hostapd_for_each_interface( (hapd_interfaces *)eloop_ctx, (int (*)(hostapd_iface *, void *))hostapd_periodic_call, 0); }
static void hostapd_periodic(void *eloop_ctx, void *timeout_ctx) { struct hapd_interfaces *interfaces = eloop_ctx; eloop_register_timeout(HOSTAPD_CLEANUP_INTERVAL, 0, hostapd_periodic, interfaces, NULL); hostapd_for_each_interface(interfaces, hostapd_periodic_call, NULL); }
hostapd_periodic
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_periodic_call(hostapd_iface *iface, void *ctx) { hostapd_periodic_iface(iface); return 0; }
static int hostapd_periodic_call(struct hostapd_iface *iface, void *ctx) { hostapd_periodic_iface(iface); return 0; }
hostapd_periodic_call
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_periodic_iface(hostapd_iface *iface) { size_t i; hostapd_data *hapd; ap_list_timer(iface); for (i = 0; i < iface->num_bss; ++i) { hapd = iface->bss[i]; if ((*((_BYTE *)hapd + 28) & 1) != 0) hostapd_acl_expire(hapd); } }
void hostapd_periodic_iface(struct hostapd_iface *iface) { size_t i; ap_list_timer(iface); for (i = 0; i < iface->num_bss; i++) { struct hostapd_data *hapd = iface->bss[i]; if (!hapd->started) continue; #ifndef CONFIG_NO_RADIUS hostapd_acl_expire(hapd); #endif } }
hostapd_periodic_iface
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_prepare_rates(hostapd_iface *iface, hostapd_hw_modes *mode) { hostapd_hw_mode v2; int i; int ia; int num_basic_rates; int *basic_rates; hostapd_rate_data *rate; int basic_rates_b[3]; int basic_rates_a[4]; int basic_rates_g[6]; unsigned long v12; v12 = __readfsqword(0x28u); num_basic...
int hostapd_prepare_rates(struct hostapd_iface *iface, struct hostapd_hw_modes *mode) { int i, num_basic_rates = 0; int basic_rates_a[] = {60, 120, 240, -1}; int basic_rates_b[] = {10, 20, -1}; int basic_rates_g[] = {10, 20, 55, 110, -1}; int *basic_rates; if (iface->conf->basic_r...
hostapd_prepare_rates
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_probe_req_rx(hostapd_data *hapd, const u8 *sa, const u8 *da, const u8 *bssid, const u8 *ie, size_t ie_len, int ssi_signal) { int ret; size_t i; ret = 0; if (!sa || !ie) return -1; random_add_randomness(sa, 6u); for (i = 0; hapd->probereq_cb ...
int hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa, const u8 *da, const u8 *bssid, const u8 *ie, size_t ie_len, int ssi_signal) { size_t i; int ret = 0; if (sa == NULL || ie == NULL) return -1; random_add_randomness(sa, ETH_ALEN); for (i = ...
hostapd_probe_req_rx
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
u8 *hostapd_probe_resp_offloads(hostapd_data *hapd, size_t *resp_len) { if ((hapd->iface->drv_flags & 0x200000) == 0) return 0; if (hapd->conf->wps_state && hapd->wps_probe_resp_ie && (hapd->iface->probe_resp_offloads & 3) == 0) wpa_printf(4, "Device is trying to offload WPS Probe Response while not "...
static u8 *hostapd_probe_resp_offloads(struct hostapd_data *hapd, size_t *resp_len) { if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_PROBE_RESP_OFFLOAD)) return NULL; #ifdef CONFIG_WPS if (hapd->conf->wps_state && hapd->wps_probe_resp_ie && (!(hapd->iface->probe_r...
hostapd_probe_resp_offloads
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_prune_associations(hostapd_data *hapd, const u8 *addr) { prune_data data; unsigned long v3; v3 = __readfsqword(0x28u); data.hapd = hapd; data.addr = addr; if (hapd->iface->interfaces) { if (hapd->iface->interfaces->for_each_interface) hapd->iface->interfaces->for_each_interface( ...
void hostapd_prune_associations(struct hostapd_data *hapd, const u8 *addr) { struct prune_data data; data.hapd = hapd; data.addr = addr; if (hapd->iface->interfaces && hapd->iface->interfaces->for_each_interface) hapd->iface->interfaces->for_each_interface(hapd->iface->interfaces, ...
hostapd_prune_associations
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_pwd_auth_fail(hostapd_data *hapd, wps_event_pwd_auth_fail *data) { wpa_printf(2, "WPS: Authentication failure update"); hapd->wps_stats.status = wps_status_WPS_STATUS_FAILURE; hapd->wps_stats.failure_reason = wps_error_indication_WPS_EI_AUTH_FAILURE; memcpy(hapd->wps_stats.peer_addr, data->peer_mac...
static void hostapd_pwd_auth_fail(struct hostapd_data *hapd, struct wps_event_pwd_auth_fail *data) { wpa_printf(MSG_DEBUG, "WPS: Authentication failure update"); hapd->wps_stats.status = WPS_STATUS_FAILURE; hapd->wps_stats.failure_reason = WPS_EI_AUTH_FAILURE; os_memcpy(hapd->...
hostapd_pwd_auth_fail
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_radius_acl_query(hostapd_data *hapd, const u8 *addr, hostapd_acl_query_data *query) { size_t v4; size_t shared_secret_len; u8 *shared_secret; size_t v7; size_t v8; size_t v9; radius_msg *msg; u8 buf[136]; unsigned long v13; v13 = __readfsqword(0x28u); quer...
static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, struct hostapd_acl_query_data *query) { struct radius_msg *msg; char buf[128]; query->radius_id = radius_client_get_id(hapd->radius); msg = radius_msg_new(RADIUS_CODE_ACCESS_REQUEST, query->radius...
hostapd_radius_acl_query
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_radius_get_eap_user(void *ctx, const u8 *identity, size_t identity_len, int phase2, eap_user *user) { int i; int rv; const hostapd_eap_user *eap_user; rv = -1; eap_user = hostapd_get_eap_user((hostapd_data *)ctx, identity, iden...
static int hostapd_radius_get_eap_user(void *ctx, const u8 *identity, size_t identity_len, int phase2, struct eap_user *user) { const struct hostapd_eap_user *eap_user; int i; int rv = -1; eap_user = hostapd_get_eap_user(ctx, identit...
hostapd_radius_get_eap_user
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_range_rep_timeout_handler(void *eloop_data, void *user_ctx) { wpa_printf(2, "RRM: Range request (token %u) timed out", *((unsigned char *)eloop_data + 3546)); *((_BYTE *)eloop_data + 3547) &= ~2u; }
static void hostapd_range_rep_timeout_handler(void *eloop_data, void *user_ctx) { struct hostapd_data *hapd = eloop_data; wpa_printf(MSG_DEBUG, "RRM: Range request (token %u) timed out", hapd->range_req_token); hapd->range_req_active = 0; }
hostapd_range_rep_timeout_handler
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_rate_found(int *list, int rate) { int i; if (!list) return 0; for (i = 0; list[i] >= 0; ++i) { if (rate == list[i]) return 1; } return 0; }
int hostapd_rate_found(int *list, int rate) { int i; if (list == NULL) return 0; for (i = 0; list[i] >= 0; i++) if (list[i] == rate) return 1; return 0; }
hostapd_rate_found
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_reconfig_encryption(hostapd_data *hapd) { if (!hapd->wpa_auth) hostapd_set_privacy(hapd, 0); }
void hostapd_reconfig_encryption(struct hostapd_data *hapd) { if (hapd->wpa_auth) return; hostapd_set_privacy(hapd, 0); #ifdef CONFIG_WEP hostapd_setup_encryption(hapd->conf->iface, hapd); #endif }
hostapd_reconfig_encryption
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_reconfig_wpa(hostapd_data *hapd) { wpa_auth_config wpa_auth_conf; unsigned long v2; v2 = __readfsqword(0x28u); hostapd_wpa_auth_conf(hapd->conf, hapd->iconf, &wpa_auth_conf); wpa_reconfig(hapd->wpa_auth, &wpa_auth_conf); }
void hostapd_reconfig_wpa(struct hostapd_data *hapd) { struct wpa_auth_config wpa_auth_conf; hostapd_wpa_auth_conf(hapd->conf, hapd->iconf, &wpa_auth_conf); wpa_reconfig(hapd->wpa_auth, &wpa_auth_conf); }
hostapd_reconfig_wpa
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_register_probereq_cb(hostapd_data *hapd, int (*cb)(void *, const u8 *, const u8 *, const u8 *, const u8 *, size_t, int), void *ctx) { hostapd_probereq_cb *n; hostapd_probereq_cb *na; n = (host...
int hostapd_register_probereq_cb(struct hostapd_data *hapd, int (*cb)(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid, const u8 *ie, size_t ie_len, int...
hostapd_register_probereq_cb
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_reload_bss(hostapd_data *hapd) { size_t wpa_ie_len; hostapd_ssid *ssid; const u8 *wpa_ie; unsigned long v4; v4 = __readfsqword(0x28u); if ((*((_BYTE *)hapd + 28) & 1) != 0) { if (hapd->conf->wmm_enabled < 0) hapd->conf->wmm_enabled = hapd->iconf->ieee80211n | hapd->iconf->i...
static void hostapd_reload_bss(struct hostapd_data *hapd) { struct hostapd_ssid *ssid; if (!hapd->started) return; if (hapd->conf->wmm_enabled < 0) hapd->conf->wmm_enabled = hapd->iconf->ieee80211n | hapd->iconf->ieee80211ax; #ifndef CONFIG_NO_RADIUS radius_client_reconfig(hapd->radius, hapd-...
hostapd_reload_bss
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_reload_config(hostapd_iface *iface) { u8 oper_chwidth; u8 oper_centr_freq_seg0_idx; u8 oper_centr_freq_seg1_idx; hostapd_iface *ifacea; int res; size_t j; size_t ja; hapd_interfaces *interfaces; hostapd_data *hapd; hostapd_data *hapda; hostapd_config *newconf; hostapd_config *oldconf...
int hostapd_reload_config(struct hostapd_iface *iface) { struct hapd_interfaces *interfaces = iface->interfaces; struct hostapd_data *hapd = iface->bss[0]; struct hostapd_config *newconf, *oldconf; size_t j; if (iface->config_fname == NULL) { hostapd_clear_old(iface); for (j = 0; j < iface->num_bss;...
hostapd_reload_config
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_reload_iface(hostapd_iface *hapd_iface) { size_t j; size_t ja; wpa_printf(2, "Reload interface %s", *hapd_iface->conf->bss); for (j = 0; j < hapd_iface->num_bss; ++j) hostapd_set_security_params(hapd_iface->conf->bss[j], 1); if (hostapd_config_check(hapd_iface->conf, 1) >= 0) { hostapd_cl...
int hostapd_reload_iface(struct hostapd_iface *hapd_iface) { size_t j; wpa_printf(MSG_DEBUG, "Reload interface %s", hapd_iface->conf->bss[0]->iface); for (j = 0; j < hapd_iface->num_bss; j++) hostapd_set_security_params(hapd_iface->conf->bss[j], 1); if (hostapd_config_check(hapd_iface->conf, 1) < 0) { ...
hostapd_reload_iface
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_remove_acl_mac(mac_acl_entry **acl, int *num, const u8 *addr) { int i; i = 0; while (i < *num) { if (!memcmp(&(*acl)[i], addr, 6u)) { os_remove_in_array(*acl, *num, 0x90u, i); --*num; } else { ++i; } } }
void hostapd_remove_acl_mac(struct mac_acl_entry **acl, int *num, const u8 *addr) { int i = 0; while (i < *num) { if (os_memcmp((*acl)[i].addr, addr, ETH_ALEN) == 0) { os_remove_in_array(*acl, *num, sizeof(**acl), i); (*num)--; } else { i++; } } }
hostapd_remove_acl_mac
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_remove_bss(hostapd_iface *iface, unsigned int idx) { size_t i; size_t ia; hostapd_data *hapd; wpa_printf(3, "Remove BSS '%s'", iface->conf->bss[idx]->iface); if (idx >= iface->num_bss) { hostapd_config_free_bss(iface->conf->bss[idx]); iface->conf->bss[idx] = 0; } else { hapd = iface...
static int hostapd_remove_bss(struct hostapd_iface *iface, unsigned int idx) { size_t i; wpa_printf(MSG_INFO, "Remove BSS '%s'", iface->conf->bss[idx]->iface); if (idx < iface->num_bss) { struct hostapd_data *hapd = iface->bss[idx]; hostapd_bss_deinit(hapd); wpa_printf(MSG_DEBUG, "%s: free hapd %p ...
hostapd_remove_bss
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_remove_iface(hapd_interfaces *interfaces, char *buf) { size_t i; size_t j; size_t k; hostapd_iface *hapd_iface; for (i = 0;; ++i) { if (i >= interfaces->count) return -1; hapd_iface = interfaces->iface[i]; if (!hapd_iface) return -1; if (!strcmp((const char *)*hapd_ifa...
int hostapd_remove_iface(struct hapd_interfaces *interfaces, char *buf) { struct hostapd_iface *hapd_iface; size_t i, j, k = 0; for (i = 0; i < interfaces->count; i++) { hapd_iface = interfaces->iface[i]; if (hapd_iface == NULL) return -1; if (!os_strcmp(hapd_iface->conf->bss[0]->iface, buf)) {...
hostapd_remove_iface
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_reset_ap_wps_ie(hostapd_data *hapd) { if (hapd->driver && hapd->driver->set_ap_wps_ie) return hapd->driver->set_ap_wps_ie(hapd->drv_priv, 0, 0, 0); else return 0; }
int hostapd_reset_ap_wps_ie(struct hostapd_data *hapd) { if (hapd->driver == NULL || hapd->driver->set_ap_wps_ie == NULL) return 0; return hapd->driver->set_ap_wps_ie(hapd->drv_priv, NULL, NULL, NULL); }
hostapd_reset_ap_wps_ie
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_rrb_oui_receive(void *ctx, const u8 *src_addr, const u8 *dst_addr, u8 oui_suffix, const u8 *buf, size_t len) { wpa_printf(2, "FT: RRB received packet %02x:%02x:%02x:%02x:%02x:%02x -> " "%02x:%02x:%02x:%02x:%02x:%02x", *src_addr, src_addr...
static void hostapd_rrb_oui_receive(void *ctx, const u8 *src_addr, const u8 *dst_addr, u8 oui_suffix, const u8 *buf, size_t len) { struct hostapd_data *hapd = ctx; wpa_printf(MSG_DEBUG, "FT: RRB received packet " MACSTR " -> " MACSTR, ...
hostapd_rrb_oui_receive
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_rrb_receive(void *ctx, const u8 *src_addr, const u8 *buf, size_t len) { if (len > 0xD) { wpa_printf(2, "FT: RRB received packet %02x:%02x:%02x:%02x:%02x:%02x -> " "%02x:%02x:%02x:%02x:%02x:%02x", buf[6], buf[7], buf[8], buf[9], buf...
static void hostapd_rrb_receive(void *ctx, const u8 *src_addr, const u8 *buf, size_t len) { struct hostapd_data *hapd = ctx; struct l2_ethhdr *ethhdr; if (len < sizeof(*ethhdr)) return; ethhdr = (struct l2_ethhdr *)buf; wpa_printf(MSG_DEBUG, "FT: RRB received packet " MACST...
hostapd_rrb_receive
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_rrm_beacon_req_tx_status(hostapd_data *hapd, const ieee80211_mgmt *mgmt, size_t len, int ok) { if (len > 0x1A) wpa_msg(hapd->msg_ctx, 3, "BEACON-REQ-TX-STATUS %02x:%02x:%02x:%02x:%02x:%02x %u ack=%d", ...
void hostapd_rrm_beacon_req_tx_status(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len, int ok) { if (len < 24 + 3) return; wpa_msg(hapd->msg_ctx, MSG_INFO, BEACON_REQ_TX_STATUS MACSTR " %u ack=%d", MAC...
hostapd_rrm_beacon_req_tx_status
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_rx_from_unknown_sta(hostapd_data *hapd, const u8 *bssid, const u8 *addr, int wds) { hostapd_data *hapda; hapda = get_hapd_bssid(hapd->iface, bssid); if (hapda) { if (hapda != (hostapd_data *)-1LL) ieee802_11_rx_from_unknown(hapda, addr, wds); } }
static void hostapd_rx_from_unknown_sta(struct hostapd_data *hapd, const u8 *bssid, const u8 *addr, int wds) { hapd = get_hapd_bssid(hapd->iface, bssid); if (hapd == NULL || hapd == HAPD_BROADCAST) return; ieee802_11_rx_from_unkn...
hostapd_rx_from_unknown_sta
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_rx_req_put_wlan_response(void *priv, upnp_wps_wlanevent_type ev_type, const u8 *mac_addr, const wpabuf *msg, wps_msg_type msg_type) { size_t v5; const void *v6; sta_info *sta; upnp_pending_...
static int hostapd_rx_req_put_wlan_response( void *priv, enum upnp_wps_wlanevent_type ev_type, const u8 *mac_addr, const struct wpabuf *msg, enum wps_msg_type msg_type) { struct hostapd_data *hapd = priv; struct sta_info *sta; struct upnp_pending_message *p; wpa_printf(MSG_DEBUG, "WPS UPnP: PutWLANResp...
hostapd_rx_req_put_wlan_response
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
bool hostapd_sae_pk_in_use(hostapd_bss_config *conf) { return 0; }
bool hostapd_sae_pk_in_use(struct hostapd_bss_config *conf) { #ifdef CONFIG_SAE_PK struct sae_password_entry *pw; for (pw = conf->sae_passwords; pw; pw = pw->next) { if (pw->pk) return true; } #endif return false; }
hostapd_sae_pk_in_use
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_sae_pw_id_in_use(hostapd_bss_config *conf) { int with_id; _BOOL4 without_id; sae_password_entry *pw; with_id = 0; without_id = conf->ssid.wpa_passphrase != 0; for (pw = conf->sae_passwords; pw; pw = pw->next) { if (pw->identifier) with_id = 1; else without_id = 1; if (wi...
int hostapd_sae_pw_id_in_use(struct hostapd_bss_config *conf) { int with_id = 0, without_id = 0; struct sae_password_entry *pw; if (conf->ssid.wpa_passphrase) without_id = 1; for (pw = conf->sae_passwords; pw; pw = pw->next) { if (pw->identifier) with_id = 1; else without_id = 1; i...
hostapd_sae_pw_id_in_use
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_select_hw_mode(hostapd_iface *iface) { hostapd_chan_status v2; int chan; int i; hostapd_hw_modes *mode; unsigned long v6; v6 = __readfsqword(0x28u); if (iface->num_hw_features <= 0) return -1; if ((iface->conf->hw_mode == hostapd_hw_mode_HOSTAPD_MODE_IEEE80211G || iface->conf->ie...
int hostapd_select_hw_mode(struct hostapd_iface *iface) { int i; if (iface->num_hw_features < 1) return -1; if ((iface->conf->hw_mode == HOSTAPD_MODE_IEEE80211G || iface->conf->ieee80211n || iface->conf->ieee80211ac || iface->conf->ieee80211ax) && iface->conf->channel == 14) { wpa_pr...
hostapd_select_hw_mode
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_send_beacon_req(hostapd_data *hapd, const u8 *addr, u8 req_mode, const wpabuf *req) { size_t v5; char v6; size_t v7; const u8 *v8; beacon_report_mode mode; int ret; sta_info *sta; wpabuf *buf; sta = ap_get_sta(hapd, addr); if (wpabuf_len_8(req) <= 0xC) { ...
int hostapd_send_beacon_req(struct hostapd_data *hapd, const u8 *addr, u8 req_mode, const struct wpabuf *req) { struct wpabuf *buf; struct sta_info *sta = ap_get_sta(hapd, addr); int ret; enum beacon_report_mode mode; const u8 *pos; if (wpabuf_len(req) < 13) { wpa_printf(MSG...
hostapd_send_beacon_req
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_send_lci_req(hostapd_data *hapd, const u8 *addr) { size_t v3; const u8 *v4; int ret; sta_info *sta; wpabuf *buf; sta = ap_get_sta(hapd, addr); if (sta && (sta->flags & 0x20) != 0) { if ((sta->rrm_enabled_capa[1] & 0x10) != 0) { if ((*((_BYTE *)hapd + 3547) & 1) != 0) { wpa_p...
int hostapd_send_lci_req(struct hostapd_data *hapd, const u8 *addr) { struct wpabuf *buf; struct sta_info *sta = ap_get_sta(hapd, addr); int ret; if (!sta || !(sta->flags & WLAN_STA_AUTHORIZED)) { wpa_printf(MSG_INFO, "Request LCI: Destination address is not connected"); return -1; } if (!(sta->rr...
hostapd_send_lci_req
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_send_nei_report_resp(hostapd_data *hapd, const u8 *addr, u8 dialog_token, wpa_ssid_value *ssid, u8 lci, u8 civic, u16 lci_max_age) { _BOOL4 v7; u8 v8; u8 v9; size_t v10; const u8 *v11; int send_lci; hostapd_neighbor_entry *nr...
static void hostapd_send_nei_report_resp(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token, struct wpa_ssid_value *ssid, u8 lci, u8 civic, u16 lci_max_age) { struct hostapd_neighbor_entr...
hostapd_send_nei_report_resp
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_send_range_req(hostapd_data *hapd, const u8 *addr, u16 random_interval, u8 min_ap, const u8 *responders, unsigned int n_responders) { size_t v7; u8 v8; size_t v9; const u8 *v10; unsigned int i; int ret; sta_info *sta; wpabuf *buf; u8 *l...
int hostapd_send_range_req(struct hostapd_data *hapd, const u8 *addr, u16 random_interval, u8 min_ap, const u8 *responders, unsigned int n_responders) { struct wpabuf *buf; struct sta_info *sta; u8 *len; unsigned int i; int ret; wpa_printf(MSG_DEBUG, ...
hostapd_send_range_req
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_set_6ghz_sec_chan(hostapd_iface *iface) { u8 oper_centr_freq_seg0_idx; if (is_6ghz_op_class(iface->conf->op_class)) { oper_centr_freq_seg0_idx = hostapd_get_oper_centr_freq_seg0_idx(iface->conf); if (center_idx_to_bw_6ghz(oper_centr_freq_seg0_idx) > 20 && !iface->conf->secondar...
static void hostapd_set_6ghz_sec_chan(struct hostapd_iface *iface) { int bw, seg0; if (!is_6ghz_op_class(iface->conf->op_class)) return; seg0 = hostapd_get_oper_centr_freq_seg0_idx(iface->conf); bw = center_idx_to_bw_6ghz(seg0); if (bw > 20 && !iface->conf->secondary_channel) { if (((iface->conf->c...
hostapd_set_6ghz_sec_chan
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_set_acl(hostapd_data *hapd) { hostapd_config *conf; conf = hapd->iconf; if (hapd->iface->drv_max_acl_mac_addrs) { if ((*conf->bss)->macaddr_acl == macaddr_acl_DENY_UNLESS_ACCEPTED) { if (hostapd_set_acl_list(hapd, (*conf->bss)->accept_mac, (*conf->bss)->num_a...
static void hostapd_set_acl(struct hostapd_data *hapd) { struct hostapd_config *conf = hapd->iconf; int err; u8 accept_acl; if (hapd->iface->drv_max_acl_mac_addrs == 0) return; if (conf->bss[0]->macaddr_acl == DENY_UNLESS_ACCEPTED) { accept_acl = 1; err = hostapd_set_acl_list(hapd, conf->bss[0]-...
hostapd_set_acl
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_acl_list(hostapd_data *hapd, mac_acl_entry *mac_acl, int n_entries, u8 accept_acl) { int i; int err; hostapd_acl_params *acl_params; acl_params = (hostapd_acl_params *)os_zalloc(6LL * n_entries + 8); if (!acl_params) return -12; for (i = 0; i < n_entries; ++i) ...
static int hostapd_set_acl_list(struct hostapd_data *hapd, struct mac_acl_entry *mac_acl, int n_entries, u8 accept_acl) { struct hostapd_acl_params *acl_params; int i, err; acl_params = os_zalloc(sizeof(*acl_params) + (n_ent...
hostapd_set_acl_list
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_ap_wps_ie(hostapd_data *hapd) { int ret; wpabuf *beacon; wpabuf *proberesp; wpabuf *assocresp[2]; assocresp[1] = (wpabuf *)__readfsqword(0x28u); if (!hapd->driver || !hapd->driver->set_ap_wps_ie) return 0; if (hostapd_build_ap_extra_ies(hapd, &beacon, &proberesp, assocresp) < 0) r...
int hostapd_set_ap_wps_ie(struct hostapd_data *hapd) { struct wpabuf *beacon, *proberesp, *assocresp; int ret; if (hapd->driver == NULL || hapd->driver->set_ap_wps_ie == NULL) return 0; if (hostapd_build_ap_extra_ies(hapd, &beacon, &proberesp, &assocresp) < 0) return -1; ret = hapd->driver->s...
hostapd_set_ap_wps_ie
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_authorized(hostapd_data *hapd, sta_info *sta, int authorized) { u32 v3; u32 v5; if (authorized) { v3 = hostapd_sta_flags_to_drv(sta->flags); return hostapd_sta_set_flags(hapd, sta->addr, v3, 1, -1); } else { v5 = hostapd_sta_flags_to_drv(sta->flags); return hostapd_sta_set_flags...
int hostapd_set_authorized(struct hostapd_data *hapd, struct sta_info *sta, int authorized) { if (authorized) { return hostapd_sta_set_flags(hapd, sta->addr, hostapd_sta_flags_to_drv(sta->flags), WPA_STA_AUTHORIZED, ~0); ...
hostapd_set_authorized
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_country(hostapd_data *hapd, const char *country) { if (hapd->driver && hapd->driver->set_country) return hapd->driver->set_country(hapd->drv_priv, country); else return 0; }
int hostapd_set_country(struct hostapd_data *hapd, const char *country) { if (hapd->driver == NULL || hapd->driver->set_country == NULL) return 0; return hapd->driver->set_country(hapd->drv_priv, country); }
hostapd_set_country
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_drv_ieee8021x(hostapd_data *hapd, const char *ifname, int enabled) { wpa_bss_params params; unsigned long v6; v6 = __readfsqword(0x28u); memset(&params, 0, sizeof(params)); params.ifname = ifname; params.enabled = enabled; if (enabled) { params.wpa = hapd...
int hostapd_set_drv_ieee8021x(struct hostapd_data *hapd, const char *ifname, int enabled) { struct wpa_bss_params params; os_memset(&params, 0, sizeof(params)); params.ifname = ifname; params.enabled = enabled; if (enabled) { params.wpa = hapd->conf->wpa; params.ieee802_1...
hostapd_set_drv_ieee8021x
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_frag(hostapd_data *hapd, int frag) { if (hapd->driver && hapd->driver->set_frag) return hapd->driver->set_frag(hapd->drv_priv, frag); else return 0; }
int hostapd_set_frag(struct hostapd_data *hapd, int frag) { if (hapd->driver == NULL || hapd->driver->set_frag == NULL) return 0; return hapd->driver->set_frag(hapd->drv_priv, frag); }
hostapd_set_frag
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_freq(hostapd_data *hapd, hostapd_hw_mode mode, int freq, int channel, int edmg, u8 edmg_channel, int ht_enabled, int vht_enabled, int he_enabled, int sec_channel_offset, int oper_chwidth, int center_segment0, int center_...
int hostapd_set_freq(struct hostapd_data *hapd, enum hostapd_hw_mode mode, int freq, int channel, int edmg, u8 edmg_channel, int ht_enabled, int vht_enabled, int he_enabled, int sec_channel_offset, int oper_chwidth, int center_segment0,...
hostapd_set_freq
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_freq_params(hostapd_freq_params *data, hostapd_hw_mode mode, int freq, int channel, int enable_edmg, u8 edmg_channel, int ht_enabled, int vht_enabled, int he_enabled, int sec_channel_offset, i...
int hostapd_set_freq_params(struct hostapd_freq_params *data, enum hostapd_hw_mode mode, int freq, int channel, int enable_edmg, u8 edmg_channel, int ht_enabled, int vht_enabled, int he_enabled, int sec_chann...
hostapd_set_freq_params
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_generic_elem(hostapd_data *hapd, const u8 *elem, size_t elem_len) { if (hapd->driver && hapd->driver->set_generic_elem) return hapd->driver->set_generic_elem(hapd->drv_priv, elem, elem_len); else return 0; }
int hostapd_set_generic_elem(struct hostapd_data *hapd, const u8 *elem, size_t elem_len) { if (hapd->driver == NULL || hapd->driver->set_generic_elem == NULL) return 0; return hapd->driver->set_generic_elem(hapd->drv_priv, elem, elem_len); }
hostapd_set_generic_elem
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_ieee8021x(hostapd_data *hapd, wpa_bss_params *params) { if (hapd->driver && hapd->driver->set_ieee8021x) return hapd->driver->set_ieee8021x(hapd->drv_priv, params); else return 0; }
int hostapd_set_ieee8021x(struct hostapd_data *hapd, struct wpa_bss_params *params) { if (hapd->driver == NULL || hapd->driver->set_ieee8021x == NULL) return 0; return hapd->driver->set_ieee8021x(hapd->drv_priv, params); }
hostapd_set_ieee8021x
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_iface(hostapd_config *conf, hostapd_bss_config *bss, const char *field, char *value) { size_t i; if (hostapd_config_fill(conf, bss, field, value, 0)) { wpa_printf(3, "Failed to set configuration field '%s' to value '%s'", field, value); return -1; } el...
int hostapd_set_iface(struct hostapd_config *conf, struct hostapd_bss_config *bss, const char *field, char *value) { int errors; size_t i; errors = hostapd_config_fill(conf, bss, field, value, 0); if (errors) { wpa_printf(MSG_INFO, "Failed to set c...
hostapd_set_iface
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_privacy(hostapd_data *hapd, int enabled) { if (hapd->driver && hapd->driver->set_privacy) return hapd->driver->set_privacy(hapd->drv_priv, enabled); else return 0; }
int hostapd_set_privacy(struct hostapd_data *hapd, int enabled) { if (hapd->driver == NULL || hapd->driver->set_privacy == NULL) return 0; return hapd->driver->set_privacy(hapd->drv_priv, enabled); }
hostapd_set_privacy
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_rts(hostapd_data *hapd, int rts) { if (hapd->driver && hapd->driver->set_rts) return hapd->driver->set_rts(hapd->drv_priv, rts); else return 0; }
int hostapd_set_rts(struct hostapd_data *hapd, int rts) { if (hapd->driver == NULL || hapd->driver->set_rts == NULL) return 0; return hapd->driver->set_rts(hapd->drv_priv, rts); }
hostapd_set_rts
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_set_security_params(hostapd_bss_config *bss, int full_config) { int v2; if ((bss->wpa & 2) != 0 && !bss->rsn_pairwise) bss->rsn_pairwise = bss->wpa_pairwise; if (bss->group_cipher) bss->wpa_group = bss->group_cipher; else bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, bss->wpa_p...
void hostapd_set_security_params(struct hostapd_bss_config *bss, int full_config) { #ifdef CONFIG_WEP if (bss->individual_wep_key_len == 0) { bss->broadcast_key_idx_min = 0; } #endif if ((bss->wpa & 2) && bss->rsn_pairwise == 0) bss->rsn_pairwise = bss->wpa_pairwise; i...
hostapd_set_security_params
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_ssid(hostapd_data *hapd, const u8 *buf, size_t len) { if (hapd->driver && hapd->driver->hapd_set_ssid) return hapd->driver->hapd_set_ssid(hapd->drv_priv, buf, len); else return 0; }
int hostapd_set_ssid(struct hostapd_data *hapd, const u8 *buf, size_t len) { if (hapd->driver == NULL || hapd->driver->hapd_set_ssid == NULL) return 0; return hapd->driver->hapd_set_ssid(hapd->drv_priv, buf, len); }
hostapd_set_ssid
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_sta_flags(hostapd_data *hapd, sta_info *sta) { int set_flags; u32 total_flags; total_flags = hostapd_sta_flags_to_drv(sta->flags); set_flags = 14; if ((!hapd->conf->ieee802_1x && !hapd->conf->wpa || sta->auth_alg == 2) && (sta->flags & 0x20) != 0) set_flags = 15; return hostapd_st...
int hostapd_set_sta_flags(struct hostapd_data *hapd, struct sta_info *sta) { int set_flags, total_flags, flags_and, flags_or; total_flags = hostapd_sta_flags_to_drv(sta->flags); set_flags = WPA_STA_SHORT_PREAMBLE | WPA_STA_WMM | WPA_STA_MFP; if (((!hapd->conf->ieee802_1x && !hapd->conf->wpa) || sta->auth...
hostapd_set_sta_flags
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_set_state(hostapd_iface *iface, hostapd_iface_state s) { const char *v2; const char *v3; hostapd_bss_config *v4; v2 = hostapd_state_text(s); v3 = hostapd_state_text(iface->state); if (iface->conf) v4 = *iface->conf->bss; else v4 = (hostapd_bss_config *)"N/A"; wpa_printf(3, "%s: int...
void hostapd_set_state(struct hostapd_iface *iface, enum hostapd_iface_state s) { wpa_printf(MSG_INFO, "%s: interface state %s->%s", iface->conf ? iface->conf->bss[0]->iface : "N/A", hostapd_state_text(iface->state), hostapd_state_text(s)); iface->state = s; }
hostapd_set_state
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_tx_queue_params(hostapd_data *hapd, int queue, int aifs, int cw_min, int cw_max, int burst_time) { if (hapd->driver && hapd->driver->set_tx_queue_params) return hapd->driver->set_tx_queue_params(hapd->drv_priv, queue, aifs, ...
int hostapd_set_tx_queue_params(struct hostapd_data *hapd, int queue, int aifs, int cw_min, int cw_max, int burst_time) { if (hapd->driver == NULL || hapd->driver->set_tx_queue_params == NULL) return 0; return hapd->driver->set_tx_queue_params(hapd->drv_priv, queue, aifs, cw_min,...
hostapd_set_tx_queue_params
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_set_wds_encryption(hostapd_data *hapd, sta_info *sta, char *ifname_wds) { ; }
static void hostapd_set_wds_encryption(struct hostapd_data *hapd, struct sta_info *sta, char *ifname_wds) { #ifdef CONFIG_WEP int i; struct hostapd_ssid *ssid = &hapd->conf->ssid; if (hapd->conf->ieee802_1x || hapd->conf->wpa) return; for (i = 0; i < 4; i++) { if...
hostapd_set_wds_encryption
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_set_wds_sta(hostapd_data *hapd, char *ifname_wds, const u8 *addr, int aid, int val) { char *bridge; bridge = 0; if (!hapd->driver || !hapd->driver->set_wds_sta) return -1; if (hapd->conf->wds_bridge[0]) return hapd->driver->set_wds_sta(hapd->drv_priv, addr, aid, val,...
int hostapd_set_wds_sta(struct hostapd_data *hapd, char *ifname_wds, const u8 *addr, int aid, int val) { const char *bridge = NULL; if (hapd->driver == NULL || hapd->driver->set_wds_sta == NULL) return -1; if (hapd->conf->wds_bridge[0]) bridge = hapd->conf->wds_bridge; else if (...
hostapd_set_wds_sta
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_setup_bss(hostapd_data *hapd, int first) { const char *bridge; _BOOL4 v4; const char *v5; int set_ssid; int ssid_len; const u8 *addr; hostapd_bss_config *conf; radius_das_conf das_conf; u8 if_addr[6]; u8 addr_0[6]; char force_ifname[16]; u8 ssid[40]; unsigned long v16; v16 = __r...
static int hostapd_setup_bss(struct hostapd_data *hapd, int first) { struct hostapd_bss_config *conf = hapd->conf; u8 ssid[SSID_MAX_LEN + 1]; int ssid_len, set_ssid; char force_ifname[IFNAMSIZ]; u8 if_addr[ETH_ALEN]; int flush_old_stations = 1; wpa_printf(MSG_DEBUG, "%s(hapd=%p (%s), first=%d)", __func__...
hostapd_setup_bss
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0