/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/ |
D | esp_scan.c | 30 struct wpa_supplicant *wpa_s = &g_wpa_supp; in scan_done_event_handler() local 33 wpa_s->scan_start_tsf = esp_wifi_get_tsf_time(WIFI_IF_STA); in scan_done_event_handler() 34 if (wpa_s->scanning) { in scan_done_event_handler() 35 wpa_s->type &= ~(1 << WLAN_FC_STYPE_BEACON) & ~(1 << WLAN_FC_STYPE_PROBE_RESP); in scan_done_event_handler() 36 esp_wifi_register_mgmt_frame_internal(wpa_s->type, wpa_s->subtype); in scan_done_event_handler() 48 static void handle_wnm_scan_done(struct wpa_supplicant *wpa_s) in handle_wnm_scan_done() argument 50 struct wpa_bss *bss = wpa_bss_get_next_bss(wpa_s, wpa_s->current_bss); in handle_wnm_scan_done() 52 if (wpa_s->wnm_neighbor_report_elements) { in handle_wnm_scan_done() 53 wnm_scan_process(wpa_s, 1); in handle_wnm_scan_done() 54 } else if (wpa_s->wnm_dissoc_timer) { in handle_wnm_scan_done() [all …]
|
D | esp_common.c | 75 static void handle_rrm_frame(struct wpa_supplicant *wpa_s, u8 *sender, in handle_rrm_frame() argument 80 wpas_rrm_process_neighbor_rep(wpa_s, payload + 1, len - 1); in handle_rrm_frame() 83 wpas_rrm_handle_radio_measurement_request(wpa_s, NULL, in handle_rrm_frame() 87 wpas_rrm_handle_link_measurement_request(wpa_s, NULL, in handle_rrm_frame() 96 struct wpa_supplicant *wpa_s = &g_wpa_supp; in mgmt_rx_action() local 107 ieee802_11_rx_wnm_action(wpa_s, sender, frame, len); in mgmt_rx_action() 109 handle_rrm_frame(wpa_s, sender, frame, len, rssi); in mgmt_rx_action() 165 static void clear_bssid_flag(struct wpa_supplicant *wpa_s) in clear_bssid_flag() argument 189 static void register_mgmt_frames(struct wpa_supplicant *wpa_s) in register_mgmt_frames() argument 191 wpa_s->type &= ~(1 << WLAN_FC_STYPE_ACTION); in register_mgmt_frames() [all …]
|
D | esp_scan_i.h | 9 void esp_scan_init(struct wpa_supplicant *wpa_s); 10 void esp_scan_deinit(struct wpa_supplicant *wpa_s);
|
/hal_espressif-latest/components/wpa_supplicant/src/common/ |
D | wnm_sta.c | 26 void wnm_deallocate_memory(struct wpa_supplicant *wpa_s) in wnm_deallocate_memory() argument 30 for (i = 0; i < wpa_s->wnm_num_neighbor_report; i++) { in wnm_deallocate_memory() 31 os_free(wpa_s->wnm_neighbor_report_elements[i].meas_pilot); in wnm_deallocate_memory() 32 os_free(wpa_s->wnm_neighbor_report_elements[i].mul_bssid); in wnm_deallocate_memory() 35 wpa_s->wnm_num_neighbor_report = 0; in wnm_deallocate_memory() 36 os_free(wpa_s->wnm_neighbor_report_elements); in wnm_deallocate_memory() 37 wpa_s->wnm_neighbor_report_elements = NULL; in wnm_deallocate_memory() 132 static void wnm_parse_neighbor_report(struct wpa_supplicant *wpa_s, in wnm_parse_neighbor_report() argument 171 static void wnm_clear_acceptable(struct wpa_supplicant *wpa_s) in wnm_clear_acceptable() argument 175 for (i = 0; i < wpa_s->wnm_num_neighbor_report; i++) in wnm_clear_acceptable() [all …]
|
D | bss.c | 25 void wpa_bss_remove(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, in wpa_bss_remove() argument 28 if (wpa_s->last_scan_res) { in wpa_bss_remove() 30 for (i = 0; i < wpa_s->last_scan_res_used; i++) { in wpa_bss_remove() 31 if (wpa_s->last_scan_res[i] == bss) { in wpa_bss_remove() 32 os_memmove(&wpa_s->last_scan_res[i], in wpa_bss_remove() 33 &wpa_s->last_scan_res[i + 1], in wpa_bss_remove() 34 (wpa_s->last_scan_res_used - i - 1) in wpa_bss_remove() 36 wpa_s->last_scan_res_used--; in wpa_bss_remove() 43 wpa_s->num_bss--; in wpa_bss_remove() 44 wpa_dbg(wpa_s, MSG_DEBUG, "BSS: Remove id %u BSSID " MACSTR in wpa_bss_remove() [all …]
|
D | mbo.c | 92 void wpas_mbo_check_pmf(struct wpa_supplicant *wpa_s, struct wpa_bss *bss in wpas_mbo_check_pmf() argument 101 wpa_s->disable_mbo_oce = 0; in wpas_mbo_check_pmf() 115 wpa_s->disable_mbo_oce = 1; /* AP uses RSN without PMF */ in wpas_mbo_check_pmf() 119 if (wpas_get_ssid_pmf(wpa_s, ssid) == NO_MGMT_FRAME_PROTECTION) in wpas_mbo_check_pmf() 121 wpa_s->disable_mbo_oce = 1; /* STA uses RSN without PMF */ in wpas_mbo_check_pmf() 122 if (wpa_s->disable_mbo_oce) in wpas_mbo_check_pmf() 127 static void wpas_mbo_non_pref_chan_attr_body(struct wpa_supplicant *wpa_s, in wpas_mbo_non_pref_chan_attr_body() argument 133 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].oper_class); in wpas_mbo_non_pref_chan_attr_body() 136 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[i].chan); in wpas_mbo_non_pref_chan_attr_body() 138 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].preference); in wpas_mbo_non_pref_chan_attr_body() [all …]
|
D | scan.c | 28 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec) in wpa_supplicant_req_scan() argument 35 if (wpa_s->scanning) { in wpa_supplicant_req_scan() 36 wpa_dbg(wpa_s, MSG_DEBUG, "Already scanning - Return"); in wpa_supplicant_req_scan() 39 if (!wpa_s->current_bss) { in wpa_supplicant_req_scan() 40 wpa_dbg(wpa_s, MSG_INFO, "Current BSS is null - Return"); in wpa_supplicant_req_scan() 50 if (wpa_s->wnm_mode) { in wpa_supplicant_req_scan() 52 params->ssids[0].ssid = wpa_s->current_bss->ssid; in wpa_supplicant_req_scan() 53 params->ssids[0].ssid_len = wpa_s->current_bss->ssid_len; in wpa_supplicant_req_scan() 57 if (!is_zero_ether_addr(wpa_s->next_scan_bssid)) { in wpa_supplicant_req_scan() 59 params->bssid = wpa_s->next_scan_bssid; in wpa_supplicant_req_scan() [all …]
|
D | rrm.c | 47 void wpas_rrm_reset(struct wpa_supplicant *wpa_s) in wpas_rrm_reset() argument 49 wpa_s->rrm.rrm_used = 0; in wpas_rrm_reset() 51 eloop_cancel_timeout(wpas_rrm_neighbor_rep_timeout_handler, &wpa_s->rrm, in wpas_rrm_reset() 53 if (wpa_s->rrm.notify_neighbor_rep) in wpas_rrm_reset() 54 wpas_rrm_neighbor_rep_timeout_handler(&wpa_s->rrm, NULL); in wpas_rrm_reset() 55 wpa_s->rrm.next_neighbor_rep_token = 1; in wpas_rrm_reset() 56 wpas_clear_beacon_rep_data(wpa_s); in wpas_rrm_reset() 66 void wpas_rrm_process_neighbor_rep(struct wpa_supplicant *wpa_s, in wpas_rrm_process_neighbor_rep() argument 74 if (report[0] != wpa_s->rrm.next_neighbor_rep_token - 1) { in wpas_rrm_process_neighbor_rep() 77 report[0], wpa_s->rrm.next_neighbor_rep_token - 1); in wpas_rrm_process_neighbor_rep() [all …]
|
D | bss.h | 70 void wpa_bss_update_start(struct wpa_supplicant *wpa_s); 71 void wpa_bss_update_scan_res(struct wpa_supplicant *wpa_s, 74 void wpa_bss_remove(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, 76 void wpa_bss_update_end(struct wpa_supplicant *wpa_s); 77 int wpa_bss_init(struct wpa_supplicant *wpa_s); 78 void wpa_bss_deinit(struct wpa_supplicant *wpa_s); 79 void wpa_bss_flush(struct wpa_supplicant *wpa_s); 80 struct wpa_bss * wpa_bss_get(struct wpa_supplicant *wpa_s, const u8 *bssid, 82 struct wpa_bss * wpa_bss_get_bssid(struct wpa_supplicant *wpa_s, 87 struct wpa_bss * wpa_bss_get_next_bss(struct wpa_supplicant *wpa_s,
|
D | rrm.h | 10 void wpas_rrm_reset(struct wpa_supplicant *wpa_s); 11 void wpas_rrm_process_neighbor_rep(struct wpa_supplicant *wpa_s, 13 int wpas_rrm_send_neighbor_rep_request(struct wpa_supplicant *wpa_s, 19 void wpas_rrm_handle_radio_measurement_request(struct wpa_supplicant *wpa_s, 22 void wpas_rrm_handle_link_measurement_request(struct wpa_supplicant *wpa_s, 26 int wpas_beacon_rep_scan_process(struct wpa_supplicant *wpa_s, 28 void wpas_clear_beacon_rep_data(struct wpa_supplicant *wpa_s);
|
D | wnm_sta.h | 56 int ieee802_11_send_wnmsleep_req(struct wpa_supplicant *wpa_s, 59 void ieee802_11_rx_wnm_action(struct wpa_supplicant *wpa_s, 62 void wpas_mbo_ie_trans_req(struct wpa_supplicant *wpa_s, const u8 *ie, 65 size_t wpas_mbo_ie_bss_trans_reject(struct wpa_supplicant *wpa_s, u8 *pos, 69 int wnm_send_bss_transition_mgmt_query(struct wpa_supplicant *wpa_s, 74 void wnm_deallocate_memory(struct wpa_supplicant *wpa_s); 75 int wnm_scan_process(struct wpa_supplicant *wpa_s, int reply_on_fail); 76 void wnm_bss_tm_connect(struct wpa_supplicant *wpa_s, 79 int wpa_is_bss_tmp_disallowed(struct wpa_supplicant *wpa_s,
|
D | ieee802_11_common.c | 195 static int ieee802_11_parse_vendor_specific(struct wpa_supplicant *wpa_s, const struct element *ele… in ieee802_11_parse_vendor_specific() argument 203 wpa_s->sae_pk_elems.sae_pk_len = elem->datalen - 4; in ieee802_11_parse_vendor_specific() 204 wpa_s->sae_pk_elems.sae_pk = (u8*)os_zalloc(sizeof(u8)*(elem->datalen-4)); in ieee802_11_parse_vendor_specific() 205 os_memcpy(wpa_s->sae_pk_elems.sae_pk, pos+4, elem->datalen-4); in ieee802_11_parse_vendor_specific() 226 static int ieee802_11_parse_extension(struct wpa_supplicant *wpa_s, const struct element *elem, con… in ieee802_11_parse_extension() argument 237 wpa_s->sae_pk_elems.fils_key_confirm_len = elem->datalen - 1; in ieee802_11_parse_extension() 238 wpa_s->sae_pk_elems.fils_key_confirm = (u8*)os_zalloc(sizeof(u8)*(elem->datalen - 1)); in ieee802_11_parse_extension() 239 os_memcpy(wpa_s->sae_pk_elems.fils_key_confirm, pos, elem->datalen - 1); in ieee802_11_parse_extension() 242 wpa_s->sae_pk_elems.fils_pk_len = elem->datalen - 1; in ieee802_11_parse_extension() 243 wpa_s->sae_pk_elems.fils_pk = (u8*)os_zalloc(sizeof(u8)*(elem->datalen - 1)); in ieee802_11_parse_extension() [all …]
|
D | wpa_supplicant_i.h | 161 int wpas_mbo_ie(struct wpa_supplicant *wpa_s, u8 *buf, size_t len, 167 void wpas_mbo_scan_ie(struct wpa_supplicant *wpa_s, struct wpabuf *ie); 168 void wpas_mbo_ie_trans_req(struct wpa_supplicant *wpa_s, const u8 *ie, 170 size_t wpas_mbo_ie_bss_trans_reject(struct wpa_supplicant *wpa_s, u8 *pos, 173 void wpas_mbo_update_cell_capa(struct wpa_supplicant *wpa_s, u8 mbo_cell_capa); 174 struct wpabuf * mbo_build_anqp_buf(struct wpa_supplicant *wpa_s, 176 void mbo_parse_rx_anqp_resp(struct wpa_supplicant *wpa_s, 179 void wpas_update_mbo_connect_params(struct wpa_supplicant *wpa_s); 181 int wpas_mbo_update_non_pref_chan(struct wpa_supplicant *wpa_s,
|
D | scan.h | 20 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec); 21 int wpa_supplicant_trigger_scan(struct wpa_supplicant *wpa_s,
|
D | ieee802_11_common.h | 40 int ieee802_11_parse_elems(struct wpa_supplicant *wpa_s, const u8 *start, size_t len);
|
D | sae_pk.c | 621 struct wpa_supplicant *wpa_s = &g_wpa_supp; in sae_check_confirm_pk() local 646 ieee802_11_parse_elems(wpa_s, ies, ies_len); in sae_check_confirm_pk() 648 elems = wpa_s->sae_pk_elems; in sae_check_confirm_pk()
|
/hal_espressif-latest/components/wpa_supplicant/src/drivers/ |
D | driver.h | 196 int wpa_drv_send_action(struct wpa_supplicant *wpa_s, 200 void wpa_supplicant_connect(struct wpa_supplicant *wpa_s,
|