/external/wpa_supplicant_8/wpa_supplicant/src/ap/ |
H A D | wnm_ap.c | 26 static int ieee80211_11_get_tfs_ie(struct hostapd_data *hapd, const u8 *addr, argument 31 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len); 36 static int ieee80211_11_set_tfs_ie(struct hostapd_data *hapd, const u8 *addr, argument 41 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len); 46 static int ieee802_11_send_wnmsleep_resp(struct hostapd_data *hapd, argument 64 sta = ap_get_sta(hapd, addr); 83 if (ieee80211_11_get_tfs_ie(hapd, addr, wnmtfs_ie, &wnmtfs_ie_len, 100 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); 101 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); 145 res = hostapd_drv_send_action(hapd, hap 191 ieee802_11_rx_wnmsleep_req(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, int len) argument 250 ieee802_11_send_bss_trans_mgmt_request(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token, const char *url) argument 302 ieee802_11_rx_bss_trans_mgmt_query(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, size_t len) argument 331 ieee802_11_rx_bss_trans_mgmt_resp(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, size_t len) argument 379 ieee802_11_rx_wnm_action_ap(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument 413 wnm_send_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, int disassoc_timer) argument 449 set_disassoc_timer(struct hostapd_data *hapd, struct sta_info *sta, int disassoc_timer) argument 477 wnm_send_ess_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, const char *url, int disassoc_timer) argument 527 wnm_send_bss_tm_req(struct hostapd_data *hapd, struct sta_info *sta, u8 req_mode, int disassoc_timer, u8 valid_int, const u8 *bss_term_dur, const char *url, const u8 *nei_rep, size_t nei_rep_len) argument [all...] |
H A D | beacon.c | 36 static u8 * hostapd_eid_rm_enabled_capab(struct hostapd_data *hapd, u8 *eid, argument 39 if (!hapd->conf->radio_measurements || len < 2 + 4) 44 *eid++ = (hapd->conf->radio_measurements & BIT(0)) ? 54 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) argument 60 if (hapd->conf->bss_load_test_set) { 63 os_memcpy(eid, hapd->conf->bss_load_test, 5); 68 if (hapd->conf->bss_load_update_period) { 71 WPA_PUT_LE16(eid, hapd->num_sta); 73 *eid++ = hapd->iface->channel_utilization; 81 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) argument 103 hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) argument 112 hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid) argument 136 hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid) argument 222 hostapd_eid_country(struct hostapd_data *hapd, u8 *eid, int max_len) argument 284 hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len) argument 298 hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid) argument 319 hostapd_eid_secondary_channel(struct hostapd_data *hapd, u8 *eid) argument 341 hostapd_add_csa_elems(struct hostapd_data *hapd, u8 *pos, u8 *start, unsigned int *csa_counter_off) argument 362 hostapd_gen_probe_resp(struct hostapd_data *hapd, const struct ieee80211_mgmt *req, int is_p2p, size_t *resp_len) argument 508 ssid_match(struct hostapd_data *hapd, const u8 *ssid, size_t ssid_len, const u8 *ssid_list, size_t ssid_list_len) argument 542 handle_probe_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len, int ssi_signal) argument 738 hostapd_probe_resp_offloads(struct hostapd_data *hapd, size_t *resp_len) argument 776 ieee802_11_build_ap_params(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) argument 1035 ieee802_11_set_beacon(struct hostapd_data *hapd) argument [all...] |
H A D | hw_features.c | 77 struct hostapd_data *hapd = iface->bss[0]; local 82 if (hostapd_drv_none(hapd)) 84 modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags); 86 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 101 int dfs_enabled = hapd->iconf->ieee80211h && 956 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) argument 958 return hw_get_freq(hapd->iface->current_mode, chan); 962 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq) argument 964 return hw_get_chan(hapd->iface->current_mode, freq);
|
H A D | iapp.c | 170 struct hostapd_data *hapd; member in struct:iapp_data 251 hostapd_logger(iapp->hapd, sta->addr, HOSTAPD_MODULE_IAPP, 277 sta = ap_get_sta(iapp->hapd, add->mac_addr); 280 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 294 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 297 ap_sta_disconnect(iapp->hapd, sta, NULL, 0); 330 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 341 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 380 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface) argument 392 iapp->hapd [all...] |
H A D | sta_info.c | 37 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd, 46 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta); 48 int ap_for_each_sta(struct hostapd_data *hapd, argument 49 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 55 for (sta = hapd->sta_list; sta; sta = sta->next) { 56 if (cb(hapd, sta, ctx)) 64 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) argument 68 s = hapd->sta_hash[STA_HASH(sta)]; 76 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) argument 80 for (sta = hapd 99 ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) argument 119 ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta) argument 126 ap_sta_hash_del(struct hostapd_data *hapd, struct sta_info *sta) argument 148 ap_sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta) argument 154 ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) argument 318 hostapd_free_stas(struct hostapd_data *hapd) argument 348 struct hostapd_data *hapd = eloop_ctx; local 515 struct hostapd_data *hapd = eloop_ctx; local 540 ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 552 ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 564 ap_sta_no_session_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 573 struct hostapd_data *hapd = eloop_ctx; local 587 ap_sta_session_warning_timeout(struct hostapd_data *hapd, struct sta_info *sta, int warning_time) argument 596 ap_sta_add(struct hostapd_data *hapd, const u8 *addr) argument 643 ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta) argument 663 ap_sta_remove_in_other_bss(struct hostapd_data *hapd, struct sta_info *sta) argument 690 struct hostapd_data *hapd = eloop_ctx; local 698 ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 729 struct hostapd_data *hapd = eloop_ctx; local 737 ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 767 ap_sta_wps_cancel(struct hostapd_data *hapd, struct sta_info *sta, void *ctx) argument 783 ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta) argument 910 ap_check_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 936 struct hostapd_data *hapd = eloop_ctx; local 981 ap_sta_start_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 987 ap_sta_stop_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 998 ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta, int authorized) argument 1066 ap_sta_disconnect(struct hostapd_data *hapd, struct sta_info *sta, const u8 *addr, u16 reason) argument 1101 ap_sta_deauth_cb(struct hostapd_data *hapd, struct sta_info *sta) argument 1113 ap_sta_disassoc_cb(struct hostapd_data *hapd, struct sta_info *sta) argument [all...] |
H A D | wpa_auth_glue.c | 109 struct hostapd_data *hapd = ctx; local 125 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 133 struct hostapd_data *hapd = ctx; local 137 ap_sta_disconnect(hapd, NULL, addr, reason); 143 struct hostapd_data *hapd = ctx; local 144 return michael_mic_failure(hapd, addr, 0); 150 struct hostapd_data *hapd = ctx; local 151 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_STA_POSSIBLE_PSK_MISMATCH MACSTR, 159 struct hostapd_data *hapd = ctx; local 160 struct sta_info *sta = ap_get_sta(hapd, add 201 struct hostapd_data *hapd = ctx; local 220 struct hostapd_data *hapd = ctx; local 255 struct hostapd_data *hapd = ctx; local 286 struct hostapd_data *hapd = ctx; local 303 struct hostapd_data *hapd = ctx; local 312 struct hostapd_data *hapd = ctx; local 344 struct hostapd_data *hapd = ctx; local 377 struct hostapd_data *hapd = ctx; local 402 struct hostapd_data *hapd; local 432 struct hostapd_data *hapd = ctx; local 494 struct hostapd_data *hapd = ctx; local 524 struct hostapd_data *hapd = ctx; local 552 struct hostapd_data *hapd = ctx; local 567 struct hostapd_data *hapd = ctx; local 574 hostapd_setup_wpa(struct hostapd_data *hapd) argument 653 hostapd_reconfig_wpa(struct hostapd_data *hapd) argument 661 hostapd_deinit_wpa(struct hostapd_data *hapd) argument [all...] |
/external/wpa_supplicant_8/hostapd/ |
H A D | main.c | 44 struct hostapd_data *hapd = ctx; local 55 if (hapd && hapd->conf) { 56 conf_syslog_level = hapd->conf->logger_syslog_level; 57 conf_stdout_level = hapd->conf->logger_stdout_level; 58 conf_syslog = hapd->conf->logger_syslog; 59 conf_stdout = hapd->conf->logger_stdout; 92 if (hapd && hapd->conf && addr) 94 hapd 152 struct hostapd_data *hapd = iface->bss[0]; local 467 struct hostapd_data *hapd = ctx; local [all...] |
/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | beacon.c | 36 static u8 * hostapd_eid_rm_enabled_capab(struct hostapd_data *hapd, u8 *eid, argument 39 if (!hapd->conf->radio_measurements || len < 2 + 4) 44 *eid++ = (hapd->conf->radio_measurements & BIT(0)) ? 54 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) argument 60 if (hapd->conf->bss_load_test_set) { 63 os_memcpy(eid, hapd->conf->bss_load_test, 5); 68 if (hapd->conf->bss_load_update_period) { 71 WPA_PUT_LE16(eid, hapd->num_sta); 73 *eid++ = hapd->iface->channel_utilization; 81 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) argument 103 hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) argument 112 hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid) argument 136 hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid) argument 222 hostapd_eid_country(struct hostapd_data *hapd, u8 *eid, int max_len) argument 284 hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len) argument 298 hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid) argument 319 hostapd_eid_secondary_channel(struct hostapd_data *hapd, u8 *eid) argument 341 hostapd_add_csa_elems(struct hostapd_data *hapd, u8 *pos, u8 *start, unsigned int *csa_counter_off) argument 362 hostapd_gen_probe_resp(struct hostapd_data *hapd, const struct ieee80211_mgmt *req, int is_p2p, size_t *resp_len) argument 508 ssid_match(struct hostapd_data *hapd, const u8 *ssid, size_t ssid_len, const u8 *ssid_list, size_t ssid_list_len) argument 542 handle_probe_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len, int ssi_signal) argument 738 hostapd_probe_resp_offloads(struct hostapd_data *hapd, size_t *resp_len) argument 776 ieee802_11_build_ap_params(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) argument 1035 ieee802_11_set_beacon(struct hostapd_data *hapd) argument [all...] |
H A D | hw_features.c | 77 struct hostapd_data *hapd = iface->bss[0]; local 82 if (hostapd_drv_none(hapd)) 84 modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags); 86 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 101 int dfs_enabled = hapd->iconf->ieee80211h && 956 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) argument 958 return hw_get_freq(hapd->iface->current_mode, chan); 962 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq) argument 964 return hw_get_chan(hapd->iface->current_mode, freq);
|
H A D | iapp.c | 170 struct hostapd_data *hapd; member in struct:iapp_data 251 hostapd_logger(iapp->hapd, sta->addr, HOSTAPD_MODULE_IAPP, 277 sta = ap_get_sta(iapp->hapd, add->mac_addr); 280 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 294 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 297 ap_sta_disconnect(iapp->hapd, sta, NULL, 0); 330 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 341 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 380 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface) argument 392 iapp->hapd [all...] |
H A D | sta_info.c | 37 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd, 46 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta); 48 int ap_for_each_sta(struct hostapd_data *hapd, argument 49 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 55 for (sta = hapd->sta_list; sta; sta = sta->next) { 56 if (cb(hapd, sta, ctx)) 64 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) argument 68 s = hapd->sta_hash[STA_HASH(sta)]; 76 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) argument 80 for (sta = hapd 99 ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) argument 119 ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta) argument 126 ap_sta_hash_del(struct hostapd_data *hapd, struct sta_info *sta) argument 148 ap_sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta) argument 154 ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) argument 318 hostapd_free_stas(struct hostapd_data *hapd) argument 348 struct hostapd_data *hapd = eloop_ctx; local 515 struct hostapd_data *hapd = eloop_ctx; local 540 ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 552 ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 564 ap_sta_no_session_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 573 struct hostapd_data *hapd = eloop_ctx; local 587 ap_sta_session_warning_timeout(struct hostapd_data *hapd, struct sta_info *sta, int warning_time) argument 596 ap_sta_add(struct hostapd_data *hapd, const u8 *addr) argument 643 ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta) argument 663 ap_sta_remove_in_other_bss(struct hostapd_data *hapd, struct sta_info *sta) argument 690 struct hostapd_data *hapd = eloop_ctx; local 698 ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 729 struct hostapd_data *hapd = eloop_ctx; local 737 ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 767 ap_sta_wps_cancel(struct hostapd_data *hapd, struct sta_info *sta, void *ctx) argument 783 ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta) argument 910 ap_check_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 936 struct hostapd_data *hapd = eloop_ctx; local 981 ap_sta_start_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 987 ap_sta_stop_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 998 ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta, int authorized) argument 1066 ap_sta_disconnect(struct hostapd_data *hapd, struct sta_info *sta, const u8 *addr, u16 reason) argument 1101 ap_sta_deauth_cb(struct hostapd_data *hapd, struct sta_info *sta) argument 1113 ap_sta_disassoc_cb(struct hostapd_data *hapd, struct sta_info *sta) argument [all...] |
H A D | wpa_auth_glue.c | 109 struct hostapd_data *hapd = ctx; local 125 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 133 struct hostapd_data *hapd = ctx; local 137 ap_sta_disconnect(hapd, NULL, addr, reason); 143 struct hostapd_data *hapd = ctx; local 144 return michael_mic_failure(hapd, addr, 0); 150 struct hostapd_data *hapd = ctx; local 151 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_STA_POSSIBLE_PSK_MISMATCH MACSTR, 159 struct hostapd_data *hapd = ctx; local 160 struct sta_info *sta = ap_get_sta(hapd, add 201 struct hostapd_data *hapd = ctx; local 220 struct hostapd_data *hapd = ctx; local 255 struct hostapd_data *hapd = ctx; local 286 struct hostapd_data *hapd = ctx; local 303 struct hostapd_data *hapd = ctx; local 312 struct hostapd_data *hapd = ctx; local 344 struct hostapd_data *hapd = ctx; local 377 struct hostapd_data *hapd = ctx; local 402 struct hostapd_data *hapd; local 432 struct hostapd_data *hapd = ctx; local 494 struct hostapd_data *hapd = ctx; local 524 struct hostapd_data *hapd = ctx; local 552 struct hostapd_data *hapd = ctx; local 567 struct hostapd_data *hapd = ctx; local 574 hostapd_setup_wpa(struct hostapd_data *hapd) argument 653 hostapd_reconfig_wpa(struct hostapd_data *hapd) argument 661 hostapd_deinit_wpa(struct hostapd_data *hapd) argument [all...] |
H A D | drv_callbacks.c | 37 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, argument 67 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, 96 sta = ap_get_sta(hapd, addr); 98 ap_sta_no_session_timeout(hapd, sta); 99 accounting_sta_stop(hapd, sta); 107 sta = ap_sta_add(hapd, addr); 109 hostapd_drv_sta_disassoc(hapd, addr, 129 (hapd->iface->conf->ht_capab & 137 ht40_intolerant_add(hapd->iface, sta); 158 if (hapd 384 hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr) argument 420 hostapd_event_sta_low_ack(struct hostapd_data *hapd, const u8 *addr) argument 436 hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht, int offset, int width, int cf1, int cf2) argument 515 hostapd_event_connect_failed_reason(struct hostapd_data *hapd, const u8 *addr, int reason_code) argument 532 hostapd_acs_channel_selected(struct hostapd_data *hapd, struct acs_selected_channels *acs_res) argument 619 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) argument 650 struct hostapd_data *hapd = ctx; local 666 hostapd_notif_auth(struct hostapd_data *hapd, struct auth_info *rx_auth) argument 709 hostapd_action_rx(struct hostapd_data *hapd, struct rx_mgmt *drv_mgmt) argument 781 hostapd_rx_from_unknown_sta(struct hostapd_data *hapd, const u8 *bssid, const u8 *addr, int wds) argument 793 hostapd_mgmt_rx(struct hostapd_data *hapd, struct rx_mgmt *rx_mgmt) argument 864 hostapd_mgmt_tx_cb(struct hostapd_data *hapd, const u8 *buf, size_t len, u16 stype, int ok) argument 878 hostapd_event_new_sta(struct hostapd_data *hapd, const u8 *addr) argument 899 hostapd_event_eapol_rx(struct hostapd_data *hapd, const u8 *src, const u8 *data, size_t data_len) argument 991 hostapd_event_get_survey(struct hostapd_data *hapd, struct survey_results *survey_results) argument 1028 hostapd_event_iface_unavailable(struct hostapd_data *hapd) argument 1042 hostapd_event_dfs_radar_detected(struct hostapd_data *hapd, struct dfs_event *radar) argument 1052 hostapd_event_dfs_cac_finished(struct hostapd_data *hapd, struct dfs_event *radar) argument 1062 hostapd_event_dfs_cac_aborted(struct hostapd_data *hapd, struct dfs_event *radar) argument 1072 hostapd_event_dfs_nop_finished(struct hostapd_data *hapd, struct dfs_event *radar) argument 1082 hostapd_event_dfs_cac_started(struct hostapd_data *hapd, struct dfs_event *radar) argument 1097 struct hostapd_data *hapd = ctx; local [all...] |
H A D | gas_serv.c | 30 gas_dialog_create(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token) argument 36 sta = ap_get_sta(hapd, addr); 44 sta = ap_sta_add(hapd, addr); 55 ap_sta_session_timeout(hapd, sta, 5); 57 ap_sta_replenish_timeout(hapd, sta, 5); 79 wpa_msg(hapd->msg_ctx, MSG_ERROR, "ANQP: Could not create dialog for " 88 gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr, argument 94 sta = ap_get_sta(hapd, addr); 119 static void gas_serv_free_dialogs(struct hostapd_data *hapd, argument 125 sta = ap_get_sta(hapd, sta_add 140 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 170 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 198 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 218 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument 230 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument 247 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument 296 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument 390 anqp_add_nai_realm(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len, int nai_realm, int nai_home_realm) argument 424 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument 437 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 450 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 474 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument 489 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument 505 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument 598 anqp_add_osu_providers_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 628 anqp_add_icon_binary_file(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *name, size_t name_len) argument 687 gas_serv_build_gas_resp_payload(struct hostapd_data *hapd, unsigned int request, const u8 *home_realm, size_t home_realm_len, const u8 *icon_name, size_t icon_name_len) argument 767 rx_anqp_query_list_id(struct hostapd_data *hapd, u16 info_id, struct anqp_query_info *qi) argument 813 rx_anqp_query_list(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 829 rx_anqp_hs_query_list(struct hostapd_data *hapd, u8 subtype, struct anqp_query_info *qi) argument 868 rx_anqp_hs_nai_home_realm(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 885 rx_anqp_hs_icon_request(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 902 rx_anqp_vendor_specific(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 974 gas_serv_req_local_processing(struct hostapd_data *hapd, const u8 *sa, u8 dialog_token, struct anqp_query_info *qi, int prot) argument 1042 gas_serv_rx_gas_initial_req(struct hostapd_data *hapd, const u8 *sa, const u8 *data, size_t len, int prot) argument 1151 gas_serv_rx_gas_comeback_req(struct hostapd_data *hapd, const u8 *sa, const u8 *data, size_t len, int prot) argument 1238 struct hostapd_data *hapd = ctx; local 1269 gas_serv_init(struct hostapd_data *hapd) argument 1280 gas_serv_deinit(struct hostapd_data *hapd) argument [all...] |
H A D | vlan_init.c | 53 static void dyn_iface_get(struct hostapd_data *hapd, const char *ifname, argument 59 interfaces = hapd->iface->interfaces; 90 static int dyn_iface_put(struct hostapd_data *hapd, const char *ifname) argument 96 interfaces = hapd->iface->interfaces; 562 static void vlan_newlink(char *ifname, struct hostapd_data *hapd) argument 566 struct hostapd_vlan *vlan = hapd->conf->vlan; 567 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 568 int vlan_naming = hapd->conf->ssid.vlan_naming; 577 if (hapd->conf->vlan_bridge[0]) { 579 hapd 633 vlan_dellink(char *ifname, struct hostapd_data *hapd) argument 713 vlan_read_ifnames(struct nlmsghdr *h, size_t len, int del, struct hostapd_data *hapd) argument 782 struct hostapd_data *hapd = eloop_ctx; local 827 full_dynamic_vlan_init(struct hostapd_data *hapd) argument 885 vlan_setup_encryption_dyn(struct hostapd_data *hapd, const char *dyn_vlan) argument 911 vlan_dynamic_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument 937 vlan_dynamic_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument 961 vlan_init(struct hostapd_data *hapd) argument 992 vlan_deinit(struct hostapd_data *hapd) argument 1003 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id) argument 1053 vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) argument [all...] |
/external/wpa_supplicant_8/src/ap/ |
H A D | beacon.c | 36 static u8 * hostapd_eid_rm_enabled_capab(struct hostapd_data *hapd, u8 *eid, argument 39 if (!hapd->conf->radio_measurements || len < 2 + 4) 44 *eid++ = (hapd->conf->radio_measurements & BIT(0)) ? 54 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) argument 60 if (hapd->conf->bss_load_test_set) { 63 os_memcpy(eid, hapd->conf->bss_load_test, 5); 68 if (hapd->conf->bss_load_update_period) { 71 WPA_PUT_LE16(eid, hapd->num_sta); 73 *eid++ = hapd->iface->channel_utilization; 81 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) argument 103 hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) argument 112 hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid) argument 136 hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid) argument 222 hostapd_eid_country(struct hostapd_data *hapd, u8 *eid, int max_len) argument 284 hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len) argument 298 hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid) argument 319 hostapd_eid_secondary_channel(struct hostapd_data *hapd, u8 *eid) argument 341 hostapd_add_csa_elems(struct hostapd_data *hapd, u8 *pos, u8 *start, unsigned int *csa_counter_off) argument 362 hostapd_gen_probe_resp(struct hostapd_data *hapd, const struct ieee80211_mgmt *req, int is_p2p, size_t *resp_len) argument 508 ssid_match(struct hostapd_data *hapd, const u8 *ssid, size_t ssid_len, const u8 *ssid_list, size_t ssid_list_len) argument 542 handle_probe_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len, int ssi_signal) argument 738 hostapd_probe_resp_offloads(struct hostapd_data *hapd, size_t *resp_len) argument 776 ieee802_11_build_ap_params(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) argument 1035 ieee802_11_set_beacon(struct hostapd_data *hapd) argument [all...] |
H A D | hw_features.c | 77 struct hostapd_data *hapd = iface->bss[0]; local 82 if (hostapd_drv_none(hapd)) 84 modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags); 86 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 101 int dfs_enabled = hapd->iconf->ieee80211h && 956 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) argument 958 return hw_get_freq(hapd->iface->current_mode, chan); 962 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq) argument 964 return hw_get_chan(hapd->iface->current_mode, freq);
|
H A D | iapp.c | 170 struct hostapd_data *hapd; member in struct:iapp_data 251 hostapd_logger(iapp->hapd, sta->addr, HOSTAPD_MODULE_IAPP, 277 sta = ap_get_sta(iapp->hapd, add->mac_addr); 280 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 294 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 297 ap_sta_disconnect(iapp->hapd, sta, NULL, 0); 330 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 341 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 380 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface) argument 392 iapp->hapd [all...] |
H A D | sta_info.c | 37 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd, 46 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta); 48 int ap_for_each_sta(struct hostapd_data *hapd, argument 49 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 55 for (sta = hapd->sta_list; sta; sta = sta->next) { 56 if (cb(hapd, sta, ctx)) 64 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) argument 68 s = hapd->sta_hash[STA_HASH(sta)]; 76 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) argument 80 for (sta = hapd 99 ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) argument 119 ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta) argument 126 ap_sta_hash_del(struct hostapd_data *hapd, struct sta_info *sta) argument 148 ap_sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta) argument 154 ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) argument 318 hostapd_free_stas(struct hostapd_data *hapd) argument 348 struct hostapd_data *hapd = eloop_ctx; local 515 struct hostapd_data *hapd = eloop_ctx; local 540 ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 552 ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 564 ap_sta_no_session_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 573 struct hostapd_data *hapd = eloop_ctx; local 587 ap_sta_session_warning_timeout(struct hostapd_data *hapd, struct sta_info *sta, int warning_time) argument 596 ap_sta_add(struct hostapd_data *hapd, const u8 *addr) argument 643 ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta) argument 663 ap_sta_remove_in_other_bss(struct hostapd_data *hapd, struct sta_info *sta) argument 690 struct hostapd_data *hapd = eloop_ctx; local 698 ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 729 struct hostapd_data *hapd = eloop_ctx; local 737 ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 767 ap_sta_wps_cancel(struct hostapd_data *hapd, struct sta_info *sta, void *ctx) argument 783 ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta) argument 910 ap_check_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 936 struct hostapd_data *hapd = eloop_ctx; local 981 ap_sta_start_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 987 ap_sta_stop_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 998 ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta, int authorized) argument 1066 ap_sta_disconnect(struct hostapd_data *hapd, struct sta_info *sta, const u8 *addr, u16 reason) argument 1101 ap_sta_deauth_cb(struct hostapd_data *hapd, struct sta_info *sta) argument 1113 ap_sta_disassoc_cb(struct hostapd_data *hapd, struct sta_info *sta) argument [all...] |
H A D | wpa_auth_glue.c | 109 struct hostapd_data *hapd = ctx; local 125 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 133 struct hostapd_data *hapd = ctx; local 137 ap_sta_disconnect(hapd, NULL, addr, reason); 143 struct hostapd_data *hapd = ctx; local 144 return michael_mic_failure(hapd, addr, 0); 150 struct hostapd_data *hapd = ctx; local 151 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_STA_POSSIBLE_PSK_MISMATCH MACSTR, 159 struct hostapd_data *hapd = ctx; local 160 struct sta_info *sta = ap_get_sta(hapd, add 201 struct hostapd_data *hapd = ctx; local 220 struct hostapd_data *hapd = ctx; local 255 struct hostapd_data *hapd = ctx; local 286 struct hostapd_data *hapd = ctx; local 303 struct hostapd_data *hapd = ctx; local 312 struct hostapd_data *hapd = ctx; local 344 struct hostapd_data *hapd = ctx; local 377 struct hostapd_data *hapd = ctx; local 402 struct hostapd_data *hapd; local 432 struct hostapd_data *hapd = ctx; local 494 struct hostapd_data *hapd = ctx; local 524 struct hostapd_data *hapd = ctx; local 552 struct hostapd_data *hapd = ctx; local 567 struct hostapd_data *hapd = ctx; local 574 hostapd_setup_wpa(struct hostapd_data *hapd) argument 653 hostapd_reconfig_wpa(struct hostapd_data *hapd) argument 661 hostapd_deinit_wpa(struct hostapd_data *hapd) argument [all...] |
H A D | drv_callbacks.c | 37 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, argument 67 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, 96 sta = ap_get_sta(hapd, addr); 98 ap_sta_no_session_timeout(hapd, sta); 99 accounting_sta_stop(hapd, sta); 107 sta = ap_sta_add(hapd, addr); 109 hostapd_drv_sta_disassoc(hapd, addr, 129 (hapd->iface->conf->ht_capab & 137 ht40_intolerant_add(hapd->iface, sta); 158 if (hapd 384 hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr) argument 420 hostapd_event_sta_low_ack(struct hostapd_data *hapd, const u8 *addr) argument 436 hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht, int offset, int width, int cf1, int cf2) argument 515 hostapd_event_connect_failed_reason(struct hostapd_data *hapd, const u8 *addr, int reason_code) argument 532 hostapd_acs_channel_selected(struct hostapd_data *hapd, struct acs_selected_channels *acs_res) argument 619 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) argument 650 struct hostapd_data *hapd = ctx; local 666 hostapd_notif_auth(struct hostapd_data *hapd, struct auth_info *rx_auth) argument 709 hostapd_action_rx(struct hostapd_data *hapd, struct rx_mgmt *drv_mgmt) argument 781 hostapd_rx_from_unknown_sta(struct hostapd_data *hapd, const u8 *bssid, const u8 *addr, int wds) argument 793 hostapd_mgmt_rx(struct hostapd_data *hapd, struct rx_mgmt *rx_mgmt) argument 864 hostapd_mgmt_tx_cb(struct hostapd_data *hapd, const u8 *buf, size_t len, u16 stype, int ok) argument 878 hostapd_event_new_sta(struct hostapd_data *hapd, const u8 *addr) argument 899 hostapd_event_eapol_rx(struct hostapd_data *hapd, const u8 *src, const u8 *data, size_t data_len) argument 991 hostapd_event_get_survey(struct hostapd_data *hapd, struct survey_results *survey_results) argument 1028 hostapd_event_iface_unavailable(struct hostapd_data *hapd) argument 1042 hostapd_event_dfs_radar_detected(struct hostapd_data *hapd, struct dfs_event *radar) argument 1052 hostapd_event_dfs_cac_finished(struct hostapd_data *hapd, struct dfs_event *radar) argument 1062 hostapd_event_dfs_cac_aborted(struct hostapd_data *hapd, struct dfs_event *radar) argument 1072 hostapd_event_dfs_nop_finished(struct hostapd_data *hapd, struct dfs_event *radar) argument 1082 hostapd_event_dfs_cac_started(struct hostapd_data *hapd, struct dfs_event *radar) argument 1097 struct hostapd_data *hapd = ctx; local [all...] |
H A D | gas_serv.c | 30 gas_dialog_create(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token) argument 36 sta = ap_get_sta(hapd, addr); 44 sta = ap_sta_add(hapd, addr); 55 ap_sta_session_timeout(hapd, sta, 5); 57 ap_sta_replenish_timeout(hapd, sta, 5); 79 wpa_msg(hapd->msg_ctx, MSG_ERROR, "ANQP: Could not create dialog for " 88 gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr, argument 94 sta = ap_get_sta(hapd, addr); 119 static void gas_serv_free_dialogs(struct hostapd_data *hapd, argument 125 sta = ap_get_sta(hapd, sta_add 140 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 170 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 198 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 218 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument 230 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument 247 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument 296 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument 390 anqp_add_nai_realm(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len, int nai_realm, int nai_home_realm) argument 424 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument 437 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 450 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 474 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument 489 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument 505 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument 598 anqp_add_osu_providers_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 628 anqp_add_icon_binary_file(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *name, size_t name_len) argument 687 gas_serv_build_gas_resp_payload(struct hostapd_data *hapd, unsigned int request, const u8 *home_realm, size_t home_realm_len, const u8 *icon_name, size_t icon_name_len) argument 767 rx_anqp_query_list_id(struct hostapd_data *hapd, u16 info_id, struct anqp_query_info *qi) argument 813 rx_anqp_query_list(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 829 rx_anqp_hs_query_list(struct hostapd_data *hapd, u8 subtype, struct anqp_query_info *qi) argument 868 rx_anqp_hs_nai_home_realm(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 885 rx_anqp_hs_icon_request(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 902 rx_anqp_vendor_specific(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 974 gas_serv_req_local_processing(struct hostapd_data *hapd, const u8 *sa, u8 dialog_token, struct anqp_query_info *qi, int prot) argument 1042 gas_serv_rx_gas_initial_req(struct hostapd_data *hapd, const u8 *sa, const u8 *data, size_t len, int prot) argument 1151 gas_serv_rx_gas_comeback_req(struct hostapd_data *hapd, const u8 *sa, const u8 *data, size_t len, int prot) argument 1238 struct hostapd_data *hapd = ctx; local 1269 gas_serv_init(struct hostapd_data *hapd) argument 1280 gas_serv_deinit(struct hostapd_data *hapd) argument [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
H A D | mesh_mpm.c | 112 static int plink_free_count(struct hostapd_data *hapd) argument 114 if (hapd->max_plinks > hapd->num_plinks) 115 return hapd->max_plinks - hapd->num_plinks; 172 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 174 for (sta = hapd->sta_list; sta; sta = sta->next) { 383 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 387 ap_free_sta(hapd, sta); 450 int mesh_mpm_plink_close(struct hostapd_data *hapd, argument 471 struct hostapd_data *hapd = ifmsh->bss[0]; local 653 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 691 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 869 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local [all...] |
H A D | mesh_rsn.c | 84 struct hostapd_data *hapd = mesh_rsn->wpa_s->ifmsh->bss[0]; local 85 struct sta_info *sta = ap_get_sta(hapd, addr); 126 struct hostapd_data *hapd; local 132 hapd = mesh_rsn->wpa_s->ifmsh->bss[0]; 133 sta = ap_get_sta(hapd, addr); 290 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 315 ret = auth_sae_init_committed(hapd, sta);
|
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | driver_wired.c | 358 static void * wired_driver_hapd_init(struct hostapd_data *hapd, argument 370 drv->ctx = hapd;
|