/hal_espressif-3.5.0/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 | rrm.c | 46 void wpas_rrm_reset(struct wpa_supplicant *wpa_s) in wpas_rrm_reset() argument 48 wpa_s->rrm.rrm_used = 0; in wpas_rrm_reset() 50 eloop_cancel_timeout(wpas_rrm_neighbor_rep_timeout_handler, &wpa_s->rrm, in wpas_rrm_reset() 52 if (wpa_s->rrm.notify_neighbor_rep) in wpas_rrm_reset() 53 wpas_rrm_neighbor_rep_timeout_handler(&wpa_s->rrm, NULL); in wpas_rrm_reset() 54 wpa_s->rrm.next_neighbor_rep_token = 1; in wpas_rrm_reset() 55 wpas_clear_beacon_rep_data(wpa_s); in wpas_rrm_reset() 65 void wpas_rrm_process_neighbor_rep(struct wpa_supplicant *wpa_s, in wpas_rrm_process_neighbor_rep() argument 73 if (report[0] != wpa_s->rrm.next_neighbor_rep_token - 1) { in wpas_rrm_process_neighbor_rep() 76 report[0], wpa_s->rrm.next_neighbor_rep_token - 1); in wpas_rrm_process_neighbor_rep() [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() 45 if (wpa_s->wnm_mode) { in wpa_supplicant_req_scan() 47 params->ssids[0].ssid = wpa_s->current_bss->ssid; in wpa_supplicant_req_scan() 48 params->ssids[0].ssid_len = wpa_s->current_bss->ssid_len; in wpa_supplicant_req_scan() 51 if (!is_zero_ether_addr(wpa_s->next_scan_bssid)) { in wpa_supplicant_req_scan() 53 params->bssid = wpa_s->next_scan_bssid; in wpa_supplicant_req_scan() 56 if (wpa_s->next_scan_chan) in wpa_supplicant_req_scan() 57 params->channel = wpa_s->next_scan_chan; in wpa_supplicant_req_scan() [all …]
|
D | bss.h | 69 void wpa_bss_update_start(struct wpa_supplicant *wpa_s); 70 void wpa_bss_update_scan_res(struct wpa_supplicant *wpa_s, 73 void wpa_bss_remove(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, 75 void wpa_bss_update_end(struct wpa_supplicant *wpa_s); 76 int wpa_bss_init(struct wpa_supplicant *wpa_s); 77 void wpa_bss_deinit(struct wpa_supplicant *wpa_s); 78 void wpa_bss_flush(struct wpa_supplicant *wpa_s); 79 struct wpa_bss * wpa_bss_get(struct wpa_supplicant *wpa_s, const u8 *bssid, 81 struct wpa_bss * wpa_bss_get_bssid(struct wpa_supplicant *wpa_s, 86 struct wpa_bss * wpa_bss_get_next_bss(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 | 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 | wpa_supplicant_i.h | 146 int wpas_mbo_ie(struct wpa_supplicant *wpa_s, u8 *buf, size_t len, 152 void wpas_mbo_scan_ie(struct wpa_supplicant *wpa_s, struct wpabuf *ie); 153 void wpas_mbo_ie_trans_req(struct wpa_supplicant *wpa_s, const u8 *ie, 155 size_t wpas_mbo_ie_bss_trans_reject(struct wpa_supplicant *wpa_s, u8 *pos, 158 void wpas_mbo_update_cell_capa(struct wpa_supplicant *wpa_s, u8 mbo_cell_capa); 159 struct wpabuf * mbo_build_anqp_buf(struct wpa_supplicant *wpa_s, 161 void mbo_parse_rx_anqp_resp(struct wpa_supplicant *wpa_s, 164 void wpas_update_mbo_connect_params(struct wpa_supplicant *wpa_s); 166 int wpas_mbo_update_non_pref_chan(struct wpa_supplicant *wpa_s,
|
D | ieee802_11_common.c | 185 int ieee802_11_parse_elems(struct wpa_supplicant *wpa_s, const u8 *start, size_t len) in ieee802_11_parse_elems() argument 198 os_memcpy(wpa_s->rrm_ie, pos, 5); in ieee802_11_parse_elems() 199 wpa_s->rrm.rrm_used = true; in ieee802_11_parse_elems() 203 os_memcpy(wpa_s->extend_caps, pos, 5); in ieee802_11_parse_elems()
|
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);
|
/hal_espressif-3.5.0/components/wpa_supplicant/esp_supplicant/src/ |
D | esp_scan.c | 27 struct wpa_supplicant *wpa_s = &g_wpa_supp; in scan_done_event_handler() local 30 wpa_s->scan_start_tsf = esp_wifi_get_tsf_time(WIFI_IF_STA); in scan_done_event_handler() 31 if (!wpa_s->scanning) { in scan_done_event_handler() 32 wpa_s->type &= ~(1 << WLAN_FC_STYPE_BEACON) & ~(1 << WLAN_FC_STYPE_PROBE_RESP); in scan_done_event_handler() 33 esp_wifi_register_mgmt_frame_internal(wpa_s->type, wpa_s->subtype); in scan_done_event_handler() 38 static void handle_wnm_scan_done(struct wpa_supplicant *wpa_s) in handle_wnm_scan_done() argument 40 struct wpa_bss *bss = wpa_bss_get_next_bss(wpa_s, wpa_s->current_bss); in handle_wnm_scan_done() 42 if (wpa_s->wnm_neighbor_report_elements) { in handle_wnm_scan_done() 43 wnm_scan_process(wpa_s, 1); in handle_wnm_scan_done() 44 } else if (wpa_s->wnm_dissoc_timer) { in handle_wnm_scan_done() [all …]
|
D | esp_common.c | 54 static void handle_rrm_frame(struct wpa_supplicant *wpa_s, u8 *sender, in handle_rrm_frame() argument 59 wpas_rrm_process_neighbor_rep(wpa_s, payload + 1, len - 1); in handle_rrm_frame() 62 wpas_rrm_handle_radio_measurement_request(wpa_s, NULL, in handle_rrm_frame() 66 wpas_rrm_handle_link_measurement_request(wpa_s, NULL, in handle_rrm_frame() 75 struct wpa_supplicant *wpa_s = &g_wpa_supp; in mgmt_rx_action() local 86 ieee802_11_rx_wnm_action(wpa_s, sender, payload, len); in mgmt_rx_action() 88 handle_rrm_frame(wpa_s, sender, payload, len, rssi); in mgmt_rx_action() 146 static void clear_bssid_flag(struct wpa_supplicant *wpa_s) in clear_bssid_flag() argument 168 static void register_action_frame(struct wpa_supplicant *wpa_s) in register_action_frame() argument 170 wpa_s->type &= ~(1 << WLAN_FC_STYPE_ACTION); in register_action_frame() [all …]
|
D | esp_scan_i.h | 19 void esp_scan_init(struct wpa_supplicant *wpa_s); 20 void esp_scan_deinit(struct wpa_supplicant *wpa_s);
|
/hal_espressif-3.5.0/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,
|