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
bgscan_learn_bss *bgscan_learn_get_bss(bgscan_learn_data *data, const u8 *bssid) { bgscan_learn_bss *bss; for (bss = (bgscan_learn_bss *)data->bss.next; bss != (bgscan_learn_bss *)&data->bss; bss = (bgscan_learn_bss *)bss->list.next) { if (!memcmp(bss->bssid...
static struct bgscan_learn_bss * bgscan_learn_get_bss(struct bgscan_learn_data *data, const u8 *bssid) { struct bgscan_learn_bss *bss; dl_list_for_each(bss, &data->bss, struct bgscan_learn_bss, list) { if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) return bss; } return NULL; }
bgscan_learn_get_bss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int *bgscan_learn_get_freqs(bgscan_learn_data *data, size_t *count) { bgscan_learn_data *bss; int *freqs; int *n; freqs = 0; *count = 0; for (bss = (bgscan_learn_data *)data->bss.next; bss != (bgscan_learn_data *)&data->bss; bss = (bgscan_learn_data *)bss->wpa_s) { if (!in_array(freqs, bs...
static int *bgscan_learn_get_freqs(struct bgscan_learn_data *data, size_t *count) { struct bgscan_learn_bss *bss; int *freqs = NULL, *n; *count = 0; dl_list_for_each(bss, &data->bss, struct bgscan_learn_bss, list) { if (in_array(freqs, bss->freq)) continue; n =...
bgscan_learn_get_freqs
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bgscan_learn_get_params(bgscan_learn_data *data, const char *params) { char *pos; const char *posc; char *posa; const char *posd; char *posb; data->short_interval = atoi(params); pos = strchr(params, 58); if (!pos) return 0; posc = pos + 1; data->signal_threshold = atoi(posc); posa = strc...
static int bgscan_learn_get_params(struct bgscan_learn_data *data, const char *params) { const char *pos; data->short_interval = atoi(params); pos = os_strchr(params, ':'); if (pos == NULL) return 0; pos++; data->signal_threshold = atoi(pos); pos = os_strchr(pos, '...
bgscan_learn_get_params
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int *bgscan_learn_get_probe_freq(bgscan_learn_data *data, int *freqs, size_t count) { int *freqsa; int idx; int *n; freqsa = freqs; if (!data->supp_freqs) return freqs; idx = data->probe_idx; while (in_array(freqs, data->supp_freqs[idx])) { if (!data->supp_freqs[+...
static int *bgscan_learn_get_probe_freq(struct bgscan_learn_data *data, int *freqs, size_t count) { int idx, *n; if (data->supp_freqs == NULL) return freqs; idx = data->probe_idx; do { if (!in_array(freqs, data->supp_freqs[idx])) { wpa_printf(MSG_DEBUG, ...
bgscan_learn_get_probe_freq
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int *bgscan_learn_get_supp_freqs(wpa_supplicant *wpa_s) { int i; int j; int *freqs; size_t count; hostapd_hw_modes *modes; int *n; freqs = 0; count = 0; modes = wpa_s->hw.modes; if (!modes) return 0; for (i = 0; i < wpa_s->hw.num_modes; ++i) { for (j = 0; j < modes[i].num_channels; ++j) {...
static int *bgscan_learn_get_supp_freqs(struct wpa_supplicant *wpa_s) { struct hostapd_hw_modes *modes; int i, j, *freqs = NULL, *n; size_t count = 0; modes = wpa_s->hw.modes; if (modes == NULL) return NULL; for (i = 0; i < wpa_s->hw.num_modes; i++) { for (j = 0; j < modes[i].num_channels; j++) { ...
bgscan_learn_get_supp_freqs
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *bgscan_learn_init(wpa_supplicant *wpa_s, const char *params, const wpa_ssid *ssid) { bgscan_learn_data *data; wpa_signal_info siginfo; unsigned long v7; v7 = __readfsqword(0x28u); data = (bgscan_learn_data *)os_zalloc(0x58u); if (!data) return 0; dl_list_init_15(&data->b...
static void *bgscan_learn_init(struct wpa_supplicant *wpa_s, const char *params, const struct wpa_ssid *ssid) { struct bgscan_learn_data *data; data = os_zalloc(sizeof(*data)); if (data == NULL) return NULL; dl_list_init(&data->bss); data->wpa_s = wpa_s; data->ssid = ssid...
bgscan_learn_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bgscan_learn_load(bgscan_learn_data *data) { FILE *f; bgscan_learn_bss *bss; bgscan_learn_bss *bssa; u8 addr[6]; char buf[136]; unsigned long v7; v7 = __readfsqword(0x28u); if (!data->fname) return 0; f = fopen(data->fname, "r"); if (!f) return 0; wpa_printf(2, "bgscan learn: Loading ...
static int bgscan_learn_load(struct bgscan_learn_data *data) { FILE *f; char buf[128]; struct bgscan_learn_bss *bss; if (data->fname == NULL) return 0; f = fopen(data->fname, "r"); if (f == NULL) return 0; wpa_printf(MSG_DEBUG, "bgscan learn: Loading data from %s", data->fname); if (fgets(bu...
bgscan_learn_load
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_learn_notify_beacon_loss(void *priv) { wpa_printf(2, "bgscan learn: beacon loss"); }
static void bgscan_learn_notify_beacon_loss(void *priv) { wpa_printf(MSG_DEBUG, "bgscan learn: beacon loss"); }
bgscan_learn_notify_beacon_loss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bgscan_learn_notify_scan(void *priv, wpa_scan_results *scan_res) { size_t i; size_t ia; size_t j; size_t num_bssid; bgscan_learn_bss *bss; wpa_scan_res *res_0; wpa_scan_res *res; u8 bssid[312]; unsigned long v11; v11 = __readfsqword(0x28u); num_bssid = 0; wpa_printf(2, "bgscan learn: scan r...
static int bgscan_learn_notify_scan(void *priv, struct wpa_scan_results *scan_res) { struct bgscan_learn_data *data = priv; size_t i, j; #define MAX_BSS 50 u8 bssid[MAX_BSS * ETH_ALEN]; size_t num_bssid = 0; wpa_printf(MSG_DEBUG, "bgscan learn: scan result notification"); ...
bgscan_learn_notify_scan
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_learn_notify_signal_change(void *priv, int above, int current_signal, int current_noise, int current_txrate) { _BOOL4 scan; os_reltime now; unsigned long v7; v7 = __readfsqword(0x28u); scan = 0; if (*((_DWORD *)priv +...
static void bgscan_learn_notify_signal_change(void *priv, int above, int current_signal, int current_noise, int current_txrate) { struct bgscan_learn_data *data = priv; int scan ...
bgscan_learn_notify_signal_change
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_learn_save(bgscan_learn_data *data) { bgscan_learn_bss *bss; bgscan_learn_bss *bssa; size_t i; FILE *f; if (data->fname) { wpa_printf(2, "bgscan learn: Saving data to %s", data->fname); f = fopen(data->fname, "w"); if (f) { fwrite("wpa_supplicant-bgscan-learn\n", 1u, 0x1Cu, f); ...
static void bgscan_learn_save(struct bgscan_learn_data *data) { FILE *f; struct bgscan_learn_bss *bss; if (data->fname == NULL) return; wpa_printf(MSG_DEBUG, "bgscan learn: Saving data to %s", data->fname); f = fopen(data->fname, "w"); if (f == NULL) return; fprintf(f, "wpa_supplicant-bgscan-le...
bgscan_learn_save
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_learn_timeout(void *eloop_ctx, void *timeout_ctx) { int ret; size_t count; int *freqs; size_t i; char *pos; bgscan_learn_data *data; wpa_supplicant *wpa_s; wpa_driver_scan_params params; char msg[100]; _BYTE v11[12]; *(_QWORD *)&v11[4] = __readfsqword(0x28u); data = (bgscan_learn_da...
static void bgscan_learn_timeout(void *eloop_ctx, void *timeout_ctx) { struct bgscan_learn_data *data = eloop_ctx; struct wpa_supplicant *wpa_s = data->wpa_s; struct wpa_driver_scan_params params; int *freqs = NULL; size_t count, i; char msg[100], *pos; os_memset(&params, 0, sizeof(params)); params.num...
bgscan_learn_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_notify_beacon_loss(wpa_supplicant *wpa_s) { if (wpa_s->bgscan) { if (wpa_s->bgscan_priv) wpa_s->bgscan->notify_beacon_loss(wpa_s->bgscan_priv); } }
void bgscan_notify_beacon_loss(struct wpa_supplicant *wpa_s) { if (wpa_s->bgscan && wpa_s->bgscan_priv) wpa_s->bgscan->notify_beacon_loss(wpa_s->bgscan_priv); }
bgscan_notify_beacon_loss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bgscan_notify_scan(wpa_supplicant *wpa_s, wpa_scan_results *scan_res) { if (wpa_s->bgscan && wpa_s->bgscan_priv) return wpa_s->bgscan->notify_scan(wpa_s->bgscan_priv, scan_res); else return 0; }
int bgscan_notify_scan(struct wpa_supplicant *wpa_s, struct wpa_scan_results *scan_res) { if (wpa_s->bgscan && wpa_s->bgscan_priv) return wpa_s->bgscan->notify_scan(wpa_s->bgscan_priv, scan_res); return 0; }
bgscan_notify_scan
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_notify_signal_change(wpa_supplicant *wpa_s, int above, int current_signal, int current_noise, int current_txrate) { if (wpa_s->bgscan) { if (wpa_s->bgscan_priv) wpa_s->bgscan->notify_signal_change(wpa_s->bgscan_priv, above, ...
void bgscan_notify_signal_change(struct wpa_supplicant *wpa_s, int above, int current_signal, int current_noise, int current_txrate) { if (wpa_s->bgscan && wpa_s->bgscan_priv) wpa_s->bgscan->notify_signal_change(wpa_s->bgscan_priv, above, ...
bgscan_notify_signal_change
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_simple_deinit(void *priv) { eloop_cancel_timeout((eloop_timeout_handler)bgscan_simple_timeout, priv, 0); if (*((_DWORD *)priv + 5)) wpa_drv_signal_monitor_0(*(wpa_supplicant **)priv, 0, 0); free(priv); }
static void bgscan_simple_deinit(void *priv) { struct bgscan_simple_data *data = priv; eloop_cancel_timeout(bgscan_simple_timeout, data, NULL); if (data->signal_threshold) wpa_drv_signal_monitor(data->wpa_s, 0, 0); os_free(data); }
bgscan_simple_deinit
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bgscan_simple_get_params(bgscan_simple_data *data, const char *params) { char *pos; const char *posb; char *posa; data->short_interval = atoi(params); pos = strchr(params, 58); if (!pos) return 0; posb = pos + 1; data->signal_threshold = atoi(posb); posa = strchr(posb, 58); if (posa) { ...
static int bgscan_simple_get_params(struct bgscan_simple_data *data, const char *params) { const char *pos; data->short_interval = atoi(params); pos = os_strchr(params, ':'); if (pos == NULL) return 0; pos++; data->signal_threshold = atoi(pos); pos = os_strchr(pos...
bgscan_simple_get_params
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *bgscan_simple_init(wpa_supplicant *wpa_s, const char *params, const wpa_ssid *ssid) { bgscan_simple_data *data; wpa_signal_info siginfo; unsigned long v7; v7 = __readfsqword(0x28u); data = (bgscan_simple_data *)os_zalloc(0x38u); if (!data) return 0; data->wpa_s = wpa_s;...
static void *bgscan_simple_init(struct wpa_supplicant *wpa_s, const char *params, const struct wpa_ssid *ssid) { struct bgscan_simple_data *data; data = os_zalloc(sizeof(*data)); if (data == NULL) return NULL; data->wpa_s = wpa_s; data->ssid...
bgscan_simple_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_simple_notify_beacon_loss(void *priv) { wpa_printf(2, "bgscan simple: beacon loss"); }
static void bgscan_simple_notify_beacon_loss(void *priv) { wpa_printf(MSG_DEBUG, "bgscan simple: beacon loss"); }
bgscan_simple_notify_beacon_loss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bgscan_simple_notify_scan(void *priv, wpa_scan_results *scan_res) { wpa_printf(2, "bgscan simple: scan result notification"); eloop_cancel_timeout((eloop_timeout_handler)bgscan_simple_timeout, priv, 0); eloop_register_timeout(*((_DWORD *)priv + 4), 0, (eloop_timeout_handler)bgscan_sim...
static int bgscan_simple_notify_scan(void *priv, struct wpa_scan_results *scan_res) { struct bgscan_simple_data *data = priv; wpa_printf(MSG_DEBUG, "bgscan simple: scan result notification"); eloop_cancel_timeout(bgscan_simple_timeout, data, NULL); eloop_register_timeout(d...
bgscan_simple_notify_scan
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_simple_notify_signal_change(void *priv, int above, int current_signal, int current_noise, int current_txrate) { int scan; os_reltime now; unsigned long v7; v7 = __readfsqword(0x28u); scan = 0; if (*((_DWORD *)priv +...
static void bgscan_simple_notify_signal_change(void *priv, int above, int current_signal, int current_noise, int current_txrate) { struct bgscan_simple_data *data = priv; int ...
bgscan_simple_notify_signal_change
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bgscan_simple_timeout(void *eloop_ctx, void *timeout_ctx) { wpa_supplicant *wpa_s; wpa_driver_scan_params params; unsigned long v4; v4 = __readfsqword(0x28u); wpa_s = *(wpa_supplicant **)eloop_ctx; memset(&params, 0, sizeof(params)); params.num_ssids = 1; params.ssids[0] = *(wpa_driver_scan_...
static void bgscan_simple_timeout(void *eloop_ctx, void *timeout_ctx) { struct bgscan_simple_data *data = eloop_ctx; struct wpa_supplicant *wpa_s = data->wpa_s; struct wpa_driver_scan_params params; os_memset(&params, 0, sizeof(params)); params.num_ssids = 1; params.ssids[0].ssid = data->ssid->ssid; para...
bgscan_simple_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
bitfield *bitfield_alloc(size_t max_bits) { bitfield *bf; bf = (bitfield *)os_zalloc(((max_bits + 7) >> 3) + 16); if (!bf) return 0; bf->bits = (u8 *)&bf[1]; bf->max_bits = max_bits; return bf; }
struct bitfield *bitfield_alloc(size_t max_bits) { struct bitfield *bf; bf = os_zalloc(sizeof(*bf) + (max_bits + 7) / 8); if (bf == NULL) return NULL; bf->bits = (u8 *)(bf + 1); bf->max_bits = max_bits; return bf; }
bitfield_alloc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bitfield_clear(bitfield *bf, size_t bit) { if (bit < bf->max_bits) bf->bits[bit >> 3] &= ~(1 << (bit & 7)); }
void bitfield_clear(struct bitfield *bf, size_t bit) { if (bit >= bf->max_bits) return; bf->bits[bit / 8] &= ~BIT(bit % 8); }
bitfield_clear
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bitfield_free(bitfield *bf) { free(bf); }
void bitfield_free(struct bitfield *bf) { os_free(bf); }
bitfield_free
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bitfield_get_first_zero(bitfield *bf) { size_t i; unsigned long ia; for (i = 0; i < (bf->max_bits + 7) >> 3 && bf->bits[i] == 0xFF; ++i) ; if (i == (bf->max_bits + 7) >> 3) return -1; ia = 8 * i + first_zero(bf->bits[i]); if (ia < bf->max_bits) return ia; else return -1; }
int bitfield_get_first_zero(struct bitfield *bf) { size_t i; for (i = 0; i < (bf->max_bits + 7) / 8; i++) { if (bf->bits[i] != 0xff) break; } if (i == (bf->max_bits + 7) / 8) return -1; i = i * 8 + first_zero(bf->bits[i]); if (i >= bf->max_bits) return -1; return i; }
bitfield_get_first_zero
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bitfield_is_set(bitfield *bf, size_t bit) { return bit < bf->max_bits && ((bf->bits[bit >> 3] >> (bit & 7)) & 1) != 0; }
int bitfield_is_set(struct bitfield *bf, size_t bit) { if (bit >= bf->max_bits) return 0; return !!(bf->bits[bit / 8] & BIT(bit % 8)); }
bitfield_is_set
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bitfield_set(bitfield *bf, size_t bit) { if (bit < bf->max_bits) bf->bits[bit >> 3] |= 1 << (bit & 7); }
void bitfield_set(struct bitfield *bf, size_t bit) { if (bit >= bf->max_bits) return; bf->bits[bit / 8] |= BIT(bit % 8); }
bitfield_set
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void bss_free(bgscan_learn_bss *bss) { free(bss->neigh); free(bss); }
static void bss_free(struct bgscan_learn_bss *bss) { os_free(bss->neigh); os_free(bss); }
bss_free
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bss_info_handler(nl_msg *msg, void *arg) { size_t num; wpa_scan_results *res; wpa_scan_res *r; wpa_scan_res **tmp; res = (wpa_scan_results *)*((_QWORD *)arg + 1); r = nl80211_parse_bss_info(*(wpa_driver_nl80211_data **)arg, msg); if (!r) return 1; if (res) { tmp = (wpa_scan_res **)os_reallo...
static int bss_info_handler(struct nl_msg *msg, void *arg) { struct nl80211_bss_info_arg *_arg = arg; struct wpa_scan_results *res = _arg->res; struct wpa_scan_res **tmp; struct wpa_scan_res *r; r = nl80211_parse_bss_info(_arg->drv, msg); if (!r) return NL_SKIP; if (!res) { os_free(r); retur...
bss_info_handler
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bss_is_ess(wpa_bss *bss) { if (bss_is_dmg_2(bss)) return (bss->caps & 3) == 3; else return (bss->caps & 3) == 1; }
static int bss_is_ess(struct wpa_bss *bss) { if (bss_is_dmg(bss)) { return (bss->caps & IEEE80211_CAP_DMG_MASK) == IEEE80211_CAP_DMG_AP; } return ((bss->caps & (IEEE80211_CAP_ESS | IEEE80211_CAP_IBSS)) == IEEE80211_CAP_ESS); }
bss_is_ess
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bss_is_ibss(wpa_bss *bss) { return (bss->caps & 3) == 2; }
static int bss_is_ibss(struct wpa_bss *bss) { return (bss->caps & (IEEE80211_CAP_ESS | IEEE80211_CAP_IBSS)) == IEEE80211_CAP_IBSS; }
bss_is_ibss
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int bssid_in_array(u8 *array, size_t array_len, const u8 *bssid) { size_t i; if (!array || !array_len) return 0; for (i = 0; i < array_len; ++i) { if (!memcmp(&array[6 * i], bssid, 6u)) return 1; } return 0; }
static int bssid_in_array(u8 *array, size_t array_len, const u8 *bssid) { size_t i; if (array == NULL || array_len == 0) return 0; for (i = 0; i < array_len; i++) { if (os_memcmp(array + i * ETH_ALEN, bssid, ETH_ALEN) == 0) return 1; } return 0; }
bssid_in_array
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void calculate_update_time(const os_reltime *fetch_time, unsigned int age_ms, os_reltime *update_time) { os_time_t usec; *update_time = *fetch_time; update_time->sec -= age_ms / 0x3E8; usec = 1000 * (age_ms % 0x3E8); if (usec > update_time->usec) { --update_time->sec; updat...
void calculate_update_time(const struct os_reltime *fetch_time, unsigned int age_ms, struct os_reltime *update_time) { os_time_t usec; update_time->sec = fetch_time->sec; update_time->usec = fetch_time->usec; update_time->sec -= age_ms / 1000; usec = (age...
calculate_update_time
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cand_pref_compar(const void *a, const void *b) { if ((*((_BYTE *)a + 50) & 1) == 0 && (*((_BYTE *)b + 50) & 1) == 0) return 0; if ((*((_BYTE *)a + 50) & 1) == 0) return 1; if ((*((_BYTE *)b + 50) & 1) == 0) return -1; if (*((_BYTE *)b + 15) > *((_BYTE *)a + 15)) return 1; if (*((_BYTE *)b ...
static int cand_pref_compar(const void *a, const void *b) { const struct neighbor_report *aa = a; const struct neighbor_report *bb = b; if (!aa->preference_present && !bb->preference_present) return 0; if (!aa->preference_present) return 1; if (!bb->preference_present) return -1; if (bb->prefer...
cand_pref_compar
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int chan_supported(wpa_supplicant *wpa_s, int freq) { unsigned int i; int j; hostapd_hw_modes *mode; hostapd_channel_data *chan; for (i = 0; i < wpa_s->hw.num_modes; ++i) { mode = &wpa_s->hw.modes[i]; for (j = 0; j < mode->num_channels; ++j) { chan = &mode->channels[j]; if (freq == chan->...
static int chan_supported(struct wpa_supplicant *wpa_s, int freq) { unsigned int i; for (i = 0; i < wpa_s->hw.num_modes; i++) { struct hostapd_hw_modes *mode = &wpa_s->hw.modes[i]; int j; for (j = 0; j < mode->num_channels; j++) { struct hostapd_channel_data *chan; chan = &mode->channels[...
chan_supported
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void channel_list_update_timeout(void *eloop_ctx, void *timeout_ctx) { if ((*((_BYTE *)eloop_ctx + 80) & 1) != 0) { wpa_printf(2, "Channel list update timeout - try to continue anyway"); setup_interface2((hostapd_iface *)eloop_ctx); } else { wpa_printf( 3, "Channel list update timeout, but inter...
static void channel_list_update_timeout(void *eloop_ctx, void *timeout_ctx) { struct hostapd_iface *iface = eloop_ctx; if (!iface->wait_channel_update) { wpa_printf( MSG_INFO, "Channel list update timeout, but interface was not waiting for it"); return; } wpa_printf(MSG_DEBUG, "Channel...
channel_list_update_timeout
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int check_assoc_ies(hostapd_data *hapd, sta_info *sta, const u8 *ies, size_t ies_len, int reassoc) { u16 v6; u16 v7; u16 v8; u16 v9; u16 v10; u16 v11; u16 v12; u16 v13; u16 v14; size_t v15; const u8 *v16; u16 v17; u32 flags; u16 v19; size_t v20; const u8 *v21; wpabu...
static int check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta, const u8 *ies, size_t ies_len, int reassoc) { struct ieee802_11_elems elems; int resp; const u8 *wpa_ie; size_t wpa_ie_len; const u8 *p2p_dev_addr = NULL; if (ieee802_11_parse_elems(ies, ies_len, &elems, ...
check_assoc_ies
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int check_comeback_token(hostapd_data *hapd, const u8 *addr, const u8 *token, size_t token_len) { u16 v5; int v6; u16 v7; u8 idx; u16 token_idx; const u8 *addrs[2]; size_t len[2]; u8 mac[40]; unsigned long v14; v14 = __readfsqword(0x28u); if (token_len != 32 || comeback_t...
static int check_comeback_token(struct hostapd_data *hapd, const u8 *addr, const u8 *token, size_t token_len) { u8 mac[SHA256_MAC_LEN]; const u8 *addrs[2]; size_t len[2]; u16 token_idx; u8 idx; if (token_len != SHA256_MAC_LEN || comeback_token_hash(hapd, addr, &idx) < 0) ...
check_comeback_token
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
u16 check_ext_capab(hostapd_data *hapd, sta_info *sta, const u8 *ext_capab_ie, size_t ext_capab_ie_len) { if (ext_capab_ie_len > 4 && (ext_capab_ie[4] & 1) != 0) *((_BYTE *)sta + 356) |= 1u; if (ext_capab_ie_len) { *((_BYTE *)sta + 356) = (32 * ((*ext_capab_ie & 4) != 0)) | *((_B...
static u16 check_ext_capab(struct hostapd_data *hapd, struct sta_info *sta, const u8 *ext_capab_ie, size_t ext_capab_ie_len) { #ifdef CONFIG_INTERWORKING if (ext_capab_ie_len >= 5) { if (ext_capab_ie[4] & 0x01) sta->qos_map_enabled = 1; } #endif if (ext_capab_ie_len > 0) { ...
check_ext_capab
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int check_sae_rejected_groups(hostapd_data *hapd, sae_data *sae) { const char *v3; u16 group; int enabled; size_t i; const u8 *pos; wpabuf *groups; size_t count; if (!sae->tmp) return 0; groups = sae->tmp->peer_rejected_groups; if (!groups) return 0; pos = (const u8 *)wpabuf_head_53(group...
static int check_sae_rejected_groups(struct hostapd_data *hapd, struct sae_data *sae) { const struct wpabuf *groups; size_t i, count; const u8 *pos; if (!sae->tmp) return 0; groups = sae->tmp->peer_rejected_groups; if (!groups) return 0; pos = wpabuf_head(gro...
check_sae_rejected_groups
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void check_server_hello(tls_connection *conn, const u8 *pos, const u8 *end) { signed long payload_len; size_t id_len; if (end - pos > 2) { payload_len = WPA_GET_BE24_15(pos); if (payload_len <= (unsigned long)(end - (pos + 3)) && payload_len > 33 && payload_len - 34 > 0) { id_len = pos[37];...
static void check_server_hello(struct tls_connection *conn, const u8 *pos, const u8 *end) { size_t payload_len, id_len; if (end - pos < 3) return; payload_len = WPA_GET_BE24(pos); pos += 3; if ((size_t)(end - pos) < payload_len) return; end = pos + payload_len; if...
check_server_hello
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void check_server_key_exchange(SSL *ssl, tls_connection *conn, const u8 *pos, const u8 *end) { const u8 *endb; const u8 *posb; const u8 *posc; u16 dh_len; int bits; signed long payload_len; BIGNUM *p; if ((conn->flags & 0x800) != 0 && conn->cipher_suite == 159 && en...
static void check_server_key_exchange(SSL *ssl, struct tls_connection *conn, const u8 *pos, const u8 *end) { size_t payload_len; u16 dh_len; BIGNUM *p; int bits; if (!(conn->flags & TLS_CONN_SUITEB)) return; if (conn->cipher_suite != 0x9f) return; if (end -...
check_server_key_exchange
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void clean_survey_results(survey_results *survey_results) { freq_survey *survey; freq_survey *tmp; if (!dl_list_empty_15(&survey_results->survey_list)) { survey = (freq_survey *)&survey_results->survey_list.next[-4].prev; tmp = (freq_survey *)&survey_results->survey_list.next->next[-4].prev; while (&...
static void clean_survey_results(struct survey_results *survey_results) { struct freq_survey *survey, *tmp; if (dl_list_empty(&survey_results->survey_list)) return; dl_list_for_each_safe(survey, tmp, &survey_results->survey_list, struct freq_survey, list) { dl_list_del(&survey->l...
clean_survey_results
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cmp_u8s_desc(const void *a, const void *b) { return *(unsigned char *)b - *(unsigned char *)a; }
static int cmp_u8s_desc(const void *a, const void *b) { return (*(u8 *)b - *(u8 *)a); }
cmp_u8s_desc
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpa_bss *compare_scan_neighbor_results(wpa_supplicant *wpa_s, os_time_t age_secs, mbo_transition_reject_reason *reason) { int v4; int v5; int v6; int preference; u8 i; wpa_bss *target; wpa_bss *targeta; wpa_bss *bss; neighbo...
static struct wpa_bss * compare_scan_neighbor_results(struct wpa_supplicant *wpa_s, os_time_t age_secs, enum mbo_transition_reject_reason *reason) { u8 i; struct wpa_bss *bss = wpa_s->current_bss; struct wpa_bss *target; if (!bss) return NULL; wpa_printf(MSG_DEBUG, "WNM: Cu...
compare_scan_neighbor_results
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
const char *connect_fail_reason(sta_connect_fail_reason_codes code) { const char *result; switch (code) { case sta_connect_fail_reason_codes_STA_CONNECT_FAIL_REASON_UNSPECIFIED: result = (const char *)&byte_2A2742; break; case sta_connect_fail_reason_codes_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: resu...
static const char * connect_fail_reason(enum sta_connect_fail_reason_codes code) { switch (code) { case STA_CONNECT_FAIL_REASON_UNSPECIFIED: return ""; case STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: return "no_bss_found"; case STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: return "auth_tx_fail"; case STA_CONNE...
connect_fail_reason
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void convert_to_protected_dual(wpabuf *msg) { *wpabuf_mhead_u8_4(msg) = 9; }
static void convert_to_protected_dual(struct wpabuf *msg) { u8 *categ = wpabuf_mhead_u8(msg); *categ = WLAN_ACTION_PROTECTED_DUAL; }
convert_to_protected_dual
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int copy_peer_ext_capab(const wpa_eapol_ie_parse *kde, wpa_tdls_peer *peer) { if (kde->ext_capab) { if (peer->ext_capab && peer->ext_capab_len >= kde->ext_capab_len - 2 || (free(peer->ext_capab), (peer->ext_capab = (u8 *)os_zalloc(kde->ext_capab_len - 2)) != 0)) { peer->ext_capab_len = kde-...
static int copy_peer_ext_capab(const struct wpa_eapol_ie_parse *kde, struct wpa_tdls_peer *peer) { if (!kde->ext_capab) { wpa_printf(MSG_DEBUG, "TDLS: No extended capabilities " "received"); return 0; } if (!peer->ext_capab || peer->ext_capab_len <...
copy_peer_ext_capab
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int copy_peer_he_6ghz_band_capab(const wpa_eapol_ie_parse *kde, wpa_tdls_peer *peer) { if (kde->he_6ghz_capabilities) { if (peer->he_6ghz_band_capabilities || (peer->he_6ghz_band_capabilities = (ieee80211_he_6ghz_band_cap *)os_zalloc(2u)) != 0) { peer->h...
static int copy_peer_he_6ghz_band_capab(const struct wpa_eapol_ie_parse *kde, struct wpa_tdls_peer *peer) { if (!kde->he_6ghz_capabilities) { wpa_printf(MSG_DEBUG, "TDLS: No HE 6 GHz band capabilities received"); return 0; } if (!peer->he_6ghz_band_capabilities) { ...
copy_peer_he_6ghz_band_capab
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int copy_peer_he_capab(const wpa_eapol_ie_parse *kde, wpa_tdls_peer *peer) { if (kde->he_capabilities) { free(peer->he_capabilities); peer->he_capab_len = 0; peer->he_capabilities = (ieee80211_he_capabilities *)os_memdup( kde->he_capabilities, kde->he_capab_len); if (peer->he_capabilities) { ...
static int copy_peer_he_capab(const struct wpa_eapol_ie_parse *kde, struct wpa_tdls_peer *peer) { if (!kde->he_capabilities) { wpa_printf(MSG_DEBUG, "TDLS: No HE capabilities received"); return 0; } os_free(peer->he_capabilities); peer->he_capab_len = 0; peer->he_capabil...
copy_peer_he_capab
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int copy_peer_ht_capab(const wpa_eapol_ie_parse *kde, wpa_tdls_peer *peer) { if (kde->ht_capabilities) { if (peer->ht_capabilities || (peer->ht_capabilities = (ieee80211_ht_capabilities *)os_zalloc(0x1Au)) != 0) { memcpy(peer->ht_capabilities, kde->ht_capabilities, sizeof(i...
static int copy_peer_ht_capab(const struct wpa_eapol_ie_parse *kde, struct wpa_tdls_peer *peer) { if (!kde->ht_capabilities) { wpa_printf(MSG_DEBUG, "TDLS: No supported ht capabilities " "received"); return 0; } if (!peer->ht_capabilities) { pee...
copy_peer_ht_capab
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int copy_peer_supp_channels(const wpa_eapol_ie_parse *kde, wpa_tdls_peer *peer) { if (kde->supp_channels) { if (peer->supp_channels && peer->supp_channels_len >= kde->supp_channels_len || (free(peer->supp_channels), (peer->supp_channels = (u8 *)os_zalloc( ...
static int copy_peer_supp_channels(const struct wpa_eapol_ie_parse *kde, struct wpa_tdls_peer *peer) { if (!kde->supp_channels) { wpa_printf(MSG_DEBUG, "TDLS: No supported channels received"); return 0; } if (!peer->supp_channels || peer->supp_channels_len < kde->...
copy_peer_supp_channels
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int copy_peer_supp_oper_classes(const wpa_eapol_ie_parse *kde, wpa_tdls_peer *peer) { if (kde->supp_oper_classes) { if (peer->supp_oper_classes && peer->supp_oper_classes_len >= kde->supp_oper_classes_len || (free(peer->supp_oper_classes), (peer->supp_o...
static int copy_peer_supp_oper_classes(const struct wpa_eapol_ie_parse *kde, struct wpa_tdls_peer *peer) { if (!kde->supp_oper_classes) { wpa_printf(MSG_DEBUG, "TDLS: No supported operating classes received"); return 0; } if (!peer->supp_oper_classes || peer->...
copy_peer_supp_oper_classes
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int copy_peer_vht_capab(const wpa_eapol_ie_parse *kde, wpa_tdls_peer *peer) { if (kde->vht_capabilities) { if (peer->vht_capabilities || (peer->vht_capabilities = (ieee80211_vht_capabilities *)os_zalloc(0xCu)) != 0) { memcpy(peer->vht_capabilities, kde->vht_capabilities, si...
static int copy_peer_vht_capab(const struct wpa_eapol_ie_parse *kde, struct wpa_tdls_peer *peer) { if (!kde->vht_capabilities) { wpa_printf(MSG_DEBUG, "TDLS: No supported vht capabilities " "received"); return 0; } if (!peer->vht_capabilities) { ...
copy_peer_vht_capab
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int copy_peer_wmm_capab(const wpa_eapol_ie_parse *kde, wpa_tdls_peer *peer) { if (kde->wmm) { if (kde->wmm_len > 6) { peer->qos_info = *((_BYTE *)kde->wmm + 6); peer->wmm_capable = 1; wpa_printf(2, "TDLS: Peer WMM QOS Info 0x%x", peer->qos_info); return 0; } else { wpa_printf(2, ...
static int copy_peer_wmm_capab(const struct wpa_eapol_ie_parse *kde, struct wpa_tdls_peer *peer) { struct wmm_information_element *wmm; if (!kde->wmm) { wpa_printf(MSG_DEBUG, "TDLS: No supported WMM capabilities received"); return 0; } if (kde->wmm_len < sizeof(struct wm...
copy_peer_wmm_capab
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int could_be_psk_mismatch(wpa_supplicant_0 *wpa_s, u16 reason_code, int locally_generated) { if (wpa_s->wpa_state != wpa_states_WPA_4WAY_HANDSHAKE || !wpa_s->new_connection || !wpa_key_mgmt_wpa_psk_6(wpa_s->key_mgmt) || wpa_key_mgmt_sae_13(wpa_s->key_mgmt)) { return 0; } ...
static int could_be_psk_mismatch(struct wpa_supplicant *wpa_s, u16 reason_code, int locally_generated) { if (wpa_s->wpa_state != WPA_4WAY_HANDSHAKE || !wpa_s->new_connection || !wpa_key_mgmt_wpa_psk(wpa_s->key_mgmt) || wpa_key_mgmt_sae(wpa_s->key_mgmt)) return 0; if...
could_be_psk_mismatch
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_below_min_backhaul(wpa_supplicant *wpa_s, wpa_cred *cred, wpa_bss *bss) { wpabuf *domain_name; u8 dl_load; u8 ul_load; unsigned int dl_bandwidth; unsigned int ul_bandwidth; u32 dl_speed; u32 ul_speed; const u8 *wan; if (!*(_QWORD *)&cred->min_dl_bandwidth_home && ...
static int cred_below_min_backhaul(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) { #ifdef CONFIG_HS20 int res; unsigned int dl_bandwidth, ul_bandwidth; const u8 *wan; u8 wan_info, dl_load, ul_load; u16 lmd; u32 ul_speed, dl_speed; if (!cred->...
cred_below_min_backhaul
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_conn_capab_missing(wpa_supplicant *wpa_s, wpa_cred *cred, wpa_bss *bss) { wpabuf *domain_name; unsigned int i; unsigned int j; const u8 *capab; const u8 *end; int *ports; if (!cred->num_req_conn_capab) return 0; if (!bss->anqp || !bss->anqp->hs20_connection_capa...
static int cred_conn_capab_missing(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) { #ifdef CONFIG_HS20 int res; const u8 *capab, *end; unsigned int i, j; int *ports; if (!cred->num_req_conn_capab) return 0; if (bss->anqp == NULL || bss->anq...
cred_conn_capab_missing
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_excluded_ssid(wpa_cred *cred, wpa_bss *bss) { size_t i; excluded_ssid *e; if (!cred->excluded_ssid) return 0; for (i = 0; i < cred->num_excluded_ssid; ++i) { e = &cred->excluded_ssid[i]; if (bss->ssid_len == e->ssid_len && !memcmp(bss->ssid, e, e->ssid_len)) return 1; } return 0;...
static int cred_excluded_ssid(struct wpa_cred *cred, struct wpa_bss *bss) { size_t i; if (!cred->excluded_ssid) return 0; for (i = 0; i < cred->num_excluded_ssid; i++) { struct excluded_ssid *e = &cred->excluded_ssid[i]; if (bss->ssid_len == e->ssid_len && os_memcmp(bss->ssid, e->ssid, e->ss...
cred_excluded_ssid
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_no_required_oi_match(wpa_cred *cred, wpa_bss *bss) { wpabuf *roaming_consortium; const u8 *ie; if (!cred->required_roaming_consortium_len) return 0; ie = wpa_bss_get_ie(bss, 0x6Fu); if (!ie && (!bss->anqp || !bss->anqp->roaming_consortium)) return 1; if (bss->anqp) roaming_consortium =...
static int cred_no_required_oi_match(struct wpa_cred *cred, struct wpa_bss *bss) { const u8 *ie; if (cred->required_roaming_consortium_len == 0) return 0; ie = wpa_bss_get_ie(bss, WLAN_EID_ROAMING_CONSORTIUM); if (ie == NULL && (bss->anqp == NULL || bss->anqp->r...
cred_no_required_oi_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_over_max_bss_load(wpa_supplicant *wpa_s, wpa_cred *cred, wpa_bss *bss) { wpabuf *domain_name; const u8 *ie; if (!cred->max_bss_load) return 0; ie = wpa_bss_get_ie(bss, 0xBu); if (!ie || ie[1] <= 2u) return 0; if (bss->anqp) domain_name = bss->anqp->domain_nam...
static int cred_over_max_bss_load(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) { const u8 *ie; int res; if (!cred->max_bss_load) return 0; ie = wpa_bss_get_ie(bss, WLAN_EID_BSS_LOAD); if (ie == NULL || ie[1] < 3) return 0; res = inter...
cred_over_max_bss_load
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_prio_cmp(const wpa_cred *a, const wpa_cred *b) { if (a->priority > b->priority) return 1; if (a->priority < b->priority) return -1; if (!a->provisioning_sp || !b->provisioning_sp || strcmp(a->provisioning_sp, b->provisioning_sp)) return 0; if (a->sp_priority < b->sp_priority) retu...
static int cred_prio_cmp(const struct wpa_cred *a, const struct wpa_cred *b) { if (a->priority > b->priority) return 1; if (a->priority < b->priority) return -1; if (a->provisioning_sp == NULL || b->provisioning_sp == NULL || os_strcmp(a->provisioning_sp, b->provisioning_sp) != 0) return 0; if...
cred_prio_cmp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_roaming_consortiums_match(const u8 *ie, const wpabuf *anqp, const wpa_cred *cred) { unsigned int i; for (i = 0; i < cred->num_roaming_consortiums; ++i) { if (roaming_consortium_match(ie, anqp, cred->roaming_consortiums[i], cred->roami...
static int cred_roaming_consortiums_match(const u8 *ie, const struct wpabuf *anqp, const struct wpa_cred *cred) { unsigned int i; for (i = 0; i < cred->num_roaming_consortiums; i++) { if (roaming_consortium_match(ie, anqp, cred...
cred_roaming_consortiums_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_with_3gpp(wpa_supplicant *wpa_s) { wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->pcsc || cred->imsi) return 1; } return 0; }
static int cred_with_3gpp(struct wpa_supplicant *wpa_s) { struct wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->pcsc || cred->imsi) return 1; } return 0; }
cred_with_3gpp
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_with_conn_capab(wpa_supplicant *wpa_s) { wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->num_req_conn_capab) return 1; } return 0; }
static int cred_with_conn_capab(struct wpa_supplicant *wpa_s) { struct wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->num_req_conn_capab) return 1; } return 0; }
cred_with_conn_capab
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_with_domain(wpa_supplicant *wpa_s) { wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->domain || cred->pcsc || cred->imsi || cred->roaming_partner) return 1; } return 0; }
static int cred_with_domain(struct wpa_supplicant *wpa_s) { struct wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->domain || cred->pcsc || cred->imsi || cred->roaming_partner) return 1; } return 0; }
cred_with_domain
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_with_min_backhaul(wpa_supplicant *wpa_s) { wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->min_dl_bandwidth_home || cred->min_ul_bandwidth_home || cred->min_dl_bandwidth_roaming || cred->min_ul_bandwidth_roaming) { return 1; } } return 0; }
static int cred_with_min_backhaul(struct wpa_supplicant *wpa_s) { struct wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->min_dl_bandwidth_home || cred->min_ul_bandwidth_home || cred->min_dl_bandwidth_roaming || cred->min_ul_bandwidth_roaming) return 1; } re...
cred_with_min_backhaul
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_with_nai_realm(wpa_supplicant *wpa_s) { wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (!cred->pcsc && !cred->imsi) { if (!cred->eap_method) return 1; if (cred->realm) return 1; } } return 0; }
static int cred_with_nai_realm(struct wpa_supplicant *wpa_s) { struct wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->pcsc || cred->imsi) continue; if (!cred->eap_method) return 1; if (cred->realm) return 1; } return 0; }
cred_with_nai_realm
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int cred_with_roaming_consortium(wpa_supplicant *wpa_s) { wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->roaming_consortium_len) return 1; if (cred->required_roaming_consortium_len) return 1; if (cred->num_roaming_consortiums) return 1; } retur...
static int cred_with_roaming_consortium(struct wpa_supplicant *wpa_s) { struct wpa_cred *cred; for (cred = wpa_s->conf->cred; cred; cred = cred->next) { if (cred->roaming_consortium_len) return 1; if (cred->required_roaming_consortium_len) return 1; if (cred->num_roaming_consortiums) ...
cred_with_roaming_consortium
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
crypto_csr *crypto_csr_verify(const wpabuf *req) { size_t v1; const u8 *der; EVP_PKEY *pkey; X509_REQ *csr; unsigned long v6; v6 = __readfsqword(0x28u); pkey = 0; der = (const u8 *)wpabuf_head_63(req); v1 = wpabuf_len_61(req); csr = (X509_REQ *)d2i_X509_REQ(0, &der, v1); if (!csr) return 0; ...
struct crypto_csr *crypto_csr_verify(const struct wpabuf *req) { X509_REQ *csr; EVP_PKEY *pkey = NULL; const u8 *der = wpabuf_head(req); csr = d2i_X509_REQ(NULL, &der, wpabuf_len(req)); if (!csr) return NULL; pkey = X509_REQ_get_pubkey((X509_REQ *)csr); if (!pkey) goto fail; if (X509_REQ_veri...
crypto_csr_verify
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *crypto_ec_key_get_pubkey_point(crypto_ec_key *key, int prefix) { int len; int res; unsigned char *pos; EC_KEY *eckey; wpabuf *buf; unsigned long v8; v8 = __readfsqword(0x28u); eckey = (EC_KEY *)EVP_PKEY_get1_EC_KEY(key); if (!eckey) return 0; EC_KEY_set_conv_form(eckey, 4); len = i2o_...
struct wpabuf *crypto_ec_key_get_pubkey_point(struct crypto_ec_key *key, int prefix) { int len, res; EC_KEY *eckey; struct wpabuf *buf; unsigned char *pos; eckey = EVP_PKEY_get1_EC_KEY((EVP_PKEY *)key); if (!eckey) return NULL; EC_KEY_set_conv_form(eckey,...
crypto_ec_key_get_pubkey_point
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *crypto_ec_key_sign_r_s(crypto_ec_key *key, const u8 *data, size_t len) { size_t v4; int prime_len; const BIGNUM *r; const BIGNUM *s; const unsigned char *p; BIGNUM *prime; ECDSA_SIG *sig; wpabuf *buf; const EC_KEY *eckey; const EC_GROUP *group; u8 *r_buf; u8 *s_buf; unsigned long v16; ...
struct wpabuf *crypto_ec_key_sign_r_s(struct crypto_ec_key *key, const u8 *data, size_t len) { const EC_GROUP *group; const EC_KEY *eckey; BIGNUM *prime = NULL; ECDSA_SIG *sig = NULL; const BIGNUM *r, *s; u8 *r_buf, *s_buf; struct wpabuf *buf; const unsigned char *p...
crypto_ec_key_sign_r_s
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *crypto_pkcs7_get_certificates(const wpabuf *pkcs7) { size_t v1; long error; const char *v3; int v4; long v5; unsigned int v6; void *v7; int i; int num; int res; const unsigned char *p; stack_st_X509 *certs; BIO *out; wpabuf *pem; PKCS7 *p7; size_t rlen; X509 *cert; unsigned l...
struct wpabuf *crypto_pkcs7_get_certificates(const struct wpabuf *pkcs7) { #ifdef OPENSSL_IS_BORINGSSL CBS pkcs7_cbs; #else PKCS7 *p7 = NULL; const unsigned char *p = wpabuf_head(pkcs7); #endif STACK_OF(X509) * certs; int i, num; BIO *out = NULL; size_t rlen; struct wpabuf *pem = NULL; int res; #ifde...
crypto_pkcs7_get_certificates
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_attach(dl_list *ctrl_dst, sockaddr_storage *from, socklen_t fromlen, const char *input) { wpa_ctrl_dst *dst; wpa_ctrl_dst *dsta; for (dst = (wpa_ctrl_dst *)ctrl_dst->next; ctrl_dst != (dl_list *)dst; dst = (wpa_ctrl_dst *)dst->list.next) { if (!sockaddr_compare(fro...
int ctrl_iface_attach(struct dl_list *ctrl_dst, struct sockaddr_storage *from, socklen_t fromlen, const char *input) { struct wpa_ctrl_dst *dst; dl_list_for_each(dst, ctrl_dst, struct wpa_ctrl_dst, list) { if (!sockaddr_compare(from, fromlen, &dst->addr, dst->addrlen)) return ctrl_s...
ctrl_iface_attach
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_detach(dl_list *ctrl_dst, sockaddr_storage *from, socklen_t fromlen) { wpa_ctrl_dst *dst; for (dst = (wpa_ctrl_dst *)ctrl_dst->next; ctrl_dst != (dl_list *)dst; dst = (wpa_ctrl_dst *)dst->list.next) { if (!sockaddr_compare(from, fromlen, &dst->addr, dst->addrlen)) { ...
int ctrl_iface_detach(struct dl_list *ctrl_dst, struct sockaddr_storage *from, socklen_t fromlen) { struct wpa_ctrl_dst *dst; dl_list_for_each(dst, ctrl_dst, struct wpa_ctrl_dst, list) { if (!sockaddr_compare(from, fromlen, &dst->addr, dst->addrlen)) { sockaddr_print(MSG_DEBUG, "CTR...
ctrl_iface_detach
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_auth_alg(wpa_supplicant *wpa_s, int res, bool strict, wpa_driver_capa *capa, char *buf, size_t buflen) { const char *v7; const char *v8; const char *v9; const char *v10; const char *v11; int ret; in...
static int ctrl_iface_get_capability_auth_alg(struct wpa_supplicant *wpa_s, int res, bool strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) { int ret; char *pos, *e...
ctrl_iface_get_capability_auth_alg
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_channels(wpa_supplicant *wpa_s, char *buf, size_t buflen) { hostapd_hw_mode mode; int v4; int i; int j; int ret; int reta; int retb; char *pos; char *posa; char *end; hostapd_channel_data *chnl; pos = buf; end = &buf[buflen]...
static int ctrl_iface_get_capability_channels(struct wpa_supplicant *wpa_s, char *buf, size_t buflen) { struct hostapd_channel_data *chnl; int ret, i, j; char *pos, *end, *hmode; pos = buf; end = pos + buflen; for (j = 0; j < wpa_s->hw.num_modes; j++) { sw...
ctrl_iface_get_capability_channels
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_freq(wpa_supplicant *wpa_s, char *buf, size_t buflen) { hostapd_hw_mode mode; int v4; const char *v6; const char *v7; int i; int j; int ret; int reta; int retb; char *pos; char *posa; char *end; hostapd_channel_data *chnl; pos...
static int ctrl_iface_get_capability_freq(struct wpa_supplicant *wpa_s, char *buf, size_t buflen) { struct hostapd_channel_data *chnl; int ret, i, j; char *pos, *end, *hmode; pos = buf; end = pos + buflen; for (j = 0; j < wpa_s->hw.num_modes; j++) { switch (wp...
ctrl_iface_get_capability_freq
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_group(int res, bool strict, wpa_driver_capa *capa, char *buf, size_t buflen) { const char *v6; unsigned int i; int ret; char *pos; char *end; size_t len; pos = buf; end = &buf[buflen]; if (res >= 0) { for (i = 0; i <= 4; ++i) { ...
static int ctrl_iface_get_capability_group(int res, bool strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) { int ret; char *pos, *end; size_t len; unsigned int i; pos = buf; end = pos + buflen; if (res < ...
ctrl_iface_get_capability_group
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_group_mgmt(int res, bool strict, wpa_driver_capa *capa, char *buf, size_t buflen) { const char *v6; unsigned int i; int ret; char *pos; char *end; pos = buf; end = &buf[buflen]; if (res < 0) ...
static int ctrl_iface_get_capability_group_mgmt(int res, bool strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) { int ret; char *pos, *end; unsigned int i; pos = buf; end = pos + buflen; if (res <...
ctrl_iface_get_capability_group_mgmt
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_key_mgmt(int res, bool strict, wpa_driver_capa *capa, const char *iftype_str, char *buf, size_t buflen) { int bufa; unsigned int key_mgmt; wpa_driver_if_type iftype; ...
static int ctrl_iface_get_capability_key_mgmt(int res, bool strict, struct wpa_driver_capa *capa, const char *iftype_str, char *buf, size_t buflen) { int ret; unsigned int key_mg...
ctrl_iface_get_capability_key_mgmt
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_modes(int res, bool strict, wpa_driver_capa *capa, char *buf, size_t buflen) { const char *v6; const char *v7; int ret; int reta; int retb; char *pos; char *end; size_t len; pos = buf; end = &buf[buflen]; if (res >= 0) { if ((c...
static int ctrl_iface_get_capability_modes(int res, bool strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) { int ret; char *pos, *end; size_t len; pos = buf; end = pos + buflen; if (res < 0) { if (stric...
ctrl_iface_get_capability_modes
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_pairwise(int res, bool strict, wpa_driver_capa *capa, char *buf, size_t buflen) { const char *v6; unsigned int i; int ret; char *pos; char *end; size_t len; pos = buf; end = &buf[buflen]; if (r...
static int ctrl_iface_get_capability_pairwise(int res, bool strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) { int ret; char *pos, *end; size_t len; unsigned int i; pos = buf; end = pos + buflen; i...
ctrl_iface_get_capability_pairwise
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_proto(int res, bool strict, wpa_driver_capa *capa, char *buf, size_t buflen) { const char *v6; int ret; int reta; char *pos; char *end; size_t len; pos = buf; end = &buf[buflen]; if (res >= 0) { if ((capa->key_mgmt & 0xA) != 0) { ...
static int ctrl_iface_get_capability_proto(int res, bool strict, struct wpa_driver_capa *capa, char *buf, size_t buflen) { int ret; char *pos, *end; size_t len; pos = buf; end = pos + buflen; if (res < 0) { if (stric...
ctrl_iface_get_capability_proto
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_iface_get_capability_tdls(wpa_supplicant *wpa_s, char *buf, size_t buflen) { const char *v3; int ret; if ((wpa_s->drv_flags & 0x80000) != 0) { if ((wpa_s->drv_flags & 0x100000) != 0) v3 = "EXTERNAL"; else v3 = "INTERNAL"; } else { v3 = "UNSUPP...
static int ctrl_iface_get_capability_tdls(struct wpa_supplicant *wpa_s, char *buf, size_t buflen) { int ret; ret = os_snprintf(buf, buflen, "%s\n", wpa_s->drv_flags & WPA_DRIVER_FLAGS_TDLS_SUPPORT ? (wpa_s->drv_flags & WPA_DRIV...
ctrl_iface_get_capability_tdls
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_interworking_connect(wpa_supplicant *wpa_s, char *dst, int only_add) { int found; wpa_bss *bss; u8 bssid[6]; unsigned long v8; v8 = __readfsqword(0x28u); if (hwaddr_aton(dst, bssid)) { wpa_printf(2, "Invalid BSSID '%s'", dst); return -1; } bss = wpa_bss_get_bssid_latest(wpa_s, bssid); ...
static int ctrl_interworking_connect(struct wpa_supplicant *wpa_s, char *dst, int only_add) { u8 bssid[ETH_ALEN]; struct wpa_bss *bss; if (hwaddr_aton(dst, bssid)) { wpa_printf(MSG_DEBUG, "Invalid BSSID '%s'", dst); return -1; } bss = wpa_bss_get_bssid_latest(wpa...
ctrl_interworking_connect
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int ctrl_interworking_select(wpa_supplicant *wpa_s, char *param) { _BOOL4 auto_sel; int *freqs; char *pos; auto_sel = 0; freqs = 0; if (param && (auto_sel = strstr(param, "auto") != 0, (pos = strstr(param, "freq=")) != 0) && (freqs = freq_range_to_channel_list(wpa_s, pos + 5)) == 0) { ...
static int ctrl_interworking_select(struct wpa_supplicant *wpa_s, char *param) { int auto_sel = 0; int *freqs = NULL; if (param) { char *pos; auto_sel = os_strstr(param, "auto") != NULL; pos = os_strstr(param, "freq="); if (pos) { freqs = freq_range_to_channel_list(wpa_s, pos + 5); ...
ctrl_interworking_select
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int das_attr_match(rsn_pmksa_cache_entry *entry, radius_das_attrs *attr) { size_t cui_len; size_t v4; const void *v5; int match; char buf[24]; unsigned long v8; v8 = __readfsqword(0x28u); match = 0; if (attr->sta_addr) { if (memcmp(attr->sta_addr, entry->spa, 6u)) return 0; match = 1; ...
static int das_attr_match(struct rsn_pmksa_cache_entry *entry, struct radius_das_attrs *attr) { int match = 0; if (attr->sta_addr) { if (os_memcmp(attr->sta_addr, entry->spa, ETH_ALEN) != 0) return 0; match++; } if (attr->acct_multi_session_id) { char buf[20]; ...
das_attr_match
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int del_hs20_icon(wpa_supplicant *wpa_s, char *cmd) { const char *v3; int used; u8 dst_addr[6]; unsigned long v6; v6 = __readfsqword(0x28u); if (!*cmd) return hs20_del_icon(wpa_s, 0, 0); used = hwaddr_aton2(cmd, dst_addr); if (used < 0) return -1; while (cmd[used] == 32) ++used; if (cmd...
static int del_hs20_icon(struct wpa_supplicant *wpa_s, char *cmd) { u8 dst_addr[ETH_ALEN]; int used; char *icon; if (!cmd[0]) return hs20_del_icon(wpa_s, NULL, NULL); used = hwaddr_aton2(cmd, dst_addr); if (used < 0) return -1; while (cmd[used] == ' ') used++; icon = cmd[used] ? &cmd[used...
del_hs20_icon
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void dfs_adjust_center_freq(hostapd_iface *iface, hostapd_channel_data *chan, int secondary_channel, int sec_chan_idx_80p80, u8 *oper_centr_freq_seg0_idx, u8 *oper_centr_freq_seg1_idx) { u8 oper_chwidth_6; char sec_chan_idx_80p80a; ...
static void dfs_adjust_center_freq(struct hostapd_iface *iface, struct hostapd_channel_data *chan, int secondary_channel, int sec_chan_idx_80p80, u8 *oper_centr_freq_seg0_idx, ...
dfs_adjust_center_freq
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
hostapd_channel_data *dfs_downgrade_bandwidth(hostapd_iface *iface, int *secondary_channel, u8 *oper_centr_freq_seg0_idx, u8 *oper_centr_freq_seg1_idx, ...
static struct hostapd_channel_data * dfs_downgrade_bandwidth(struct hostapd_iface *iface, int *secondary_channel, u8 *oper_centr_freq_seg0_idx, u8 *oper_centr_freq_seg1_idx, int *skip_radar) { struct hostapd_channel_data *channel; for (;;) { channel = dfs_get_val...
dfs_downgrade_bandwidth
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int dfs_get_start_chan_idx(hostapd_iface *iface, int *seg1_start) { u8 oper_chwidth_6; u8 v3; int channel_no; int res; int i; int ia; int ib; int chan_seg1; int found; hostapd_hw_modes *mode; channel_no = iface->conf->channel; res = -1; chan_seg1 = -1; *seg1_start = -1; if (iface->conf->i...
static int dfs_get_start_chan_idx(struct hostapd_iface *iface, int *seg1_start) { struct hostapd_hw_modes *mode; struct hostapd_channel_data *chan; int channel_no = iface->conf->channel; int res = -1, i; int chan_seg1 = -1; *seg1_start = -1; if (iface->conf->ieee80211n ...
dfs_get_start_chan_idx
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
int dfs_get_used_n_chans(hostapd_iface *iface, int *seg1) { u8 oper_chwidth_6; int n_chans; n_chans = 1; *seg1 = 0; if (iface->conf->ieee80211n && iface->conf->secondary_channel) n_chans = 2; if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) { oper_chwidth_6 = hostapd_get_oper_chwidth_6(ifa...
static int dfs_get_used_n_chans(struct hostapd_iface *iface, int *seg1) { int n_chans = 1; *seg1 = 0; if (iface->conf->ieee80211n && iface->conf->secondary_channel) n_chans = 2; if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) { switch (hostapd_get_oper_chwidth(iface->conf)) { case CHANW...
dfs_get_used_n_chans
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
hostapd_channel_data *dfs_get_valid_channel(hostapd_iface *iface, int *secondary_channel, u8 *oper_centr_freq_seg0_idx, u8 *oper_centr_freq_seg1_idx, ...
static struct hostapd_channel_data * dfs_get_valid_channel(struct hostapd_iface *iface, int *secondary_channel, u8 *oper_centr_freq_seg0_idx, u8 *oper_centr_freq_seg1_idx, int skip_radar) { struct hostapd_hw_modes *mode; struct hostapd_channel_data *chan = NULL; struct ...
dfs_get_valid_channel
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
char *dfs_info(hostapd_channel_data *chan) { int v1; v1 = chan->flag & 0x300; if (v1 == 768) { snprintf(info_0, 0x100u, " (DFS state = %s)", "available"); } else if (v1 == 512) { snprintf(info_0, 0x100u, " (DFS state = %s)", "unavailable"); } else { if ((chan->flag & 0x300u) > 0x200) return...
static char *dfs_info(struct hostapd_channel_data *chan) { static char info[256]; char *state; switch (chan->flag & HOSTAPD_CHAN_DFS_MASK) { case HOSTAPD_CHAN_DFS_UNKNOWN: state = "unknown"; break; case HOSTAPD_CHAN_DFS_USABLE: state = "usable"; break; case HOSTAPD_CHAN_DFS_UNAVAILABLE: ...
dfs_info
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *dh5_derive_shared(void *ctx, const wpabuf *peer_public, const wpabuf *own_private) { unsigned int v4; const void *v5; void *v6; int keylen; wpabuf *res; BIGNUM *pub_key; size_t rlen; if (!ctx) return 0; v4 = wpabuf_len_61(peer_public); v5 = wpabuf_head_63(peer_...
struct wpabuf *dh5_derive_shared(void *ctx, const struct wpabuf *peer_public, const struct wpabuf *own_private) { BIGNUM *pub_key; struct wpabuf *res = NULL; size_t rlen; DH *dh = ctx; int keylen; if (ctx == NULL) return NULL; pub_key = BN_bin2bn(wpabuf_head(peer_pub...
dh5_derive_shared
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
void *dh5_init_fixed(const wpabuf *priv, const wpabuf *publ) { unsigned int v3; const void *v4; unsigned int v5; const void *v6; BIGNUM *p; BIGNUM *g; BIGNUM *priv_key; BIGNUM *pub_key; void *dh_0; priv_key = 0; pub_key = 0; dh_0 = (void *)DH_new(); if (!dh_0) return 0; g = (BIGNUM *)BN...
void *dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ) { #if OPENSSL_VERSION_NUMBER < 0x10100000L || \ (defined(LIBRESSL_VERSION_NUMBER) && \ LIBRESSL_VERSION_NUMBER < 0x20700000L) DH *dh; dh = DH_new(); if (dh ...
dh5_init_fixed
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *dh_derive_shared(const wpabuf *peer_public, const wpabuf *own_private, const dh_group *dh_0) { u8 *v4; size_t v5; const u8 *v6; size_t v7; const u8 *v8; size_t shared_len; wpabuf *shared; unsigned long v12; v12 = __readfsqword(0x28u); if (!dh_0 || !peer_public || !o...
struct wpabuf *dh_derive_shared(const struct wpabuf *peer_public, const struct wpabuf *own_private, const struct dh_group *dh) { struct wpabuf *shared; size_t shared_len; if (dh == NULL || peer_public == NULL || own_private == NULL) return NULL;...
dh_derive_shared
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0
wpabuf *dh_init(const dh_group *dh_0, wpabuf **priv) { u8 *v3; u8 *v4; wpabuf *pv; if (!dh_0) return 0; wpabuf_clear_free(*priv); *priv = wpabuf_alloc(dh_0->prime_len); if (!*priv) return 0; pv = wpabuf_alloc(dh_0->prime_len); if (pv) { v3 = (u8 *)wpabuf_mhead_13(pv); v4 = (u8 *)wpabu...
struct wpabuf *dh_init(const struct dh_group *dh, struct wpabuf **priv) { struct wpabuf *pv; size_t pv_len; if (dh == NULL) return NULL; wpabuf_clear_free(*priv); *priv = wpabuf_alloc(dh->prime_len); if (*priv == NULL) return NULL; pv_len = dh->prime_len; pv = wpabuf_alloc(pv_len); if (pv =...
dh_init
wpa_supplicant-2.10-r1
net-wireless
O0/net-wireless/wpa_supplicant-2.10-r1/wpa_supplicant
ida
O0