Home
last modified time | relevance | path

Searched refs:ap_list_buffer (Results 1 – 1 of 1) sorted by relevance

/Zephyr-Core-3.5.0/drivers/wifi/esp32/src/
Desp_wifi_drv.c188 wifi_ap_record_t *ap_list_buffer; in scan_done_handler() local
197 ap_list_buffer = k_malloc(aps * sizeof(wifi_ap_record_t)); in scan_done_handler()
198 if (ap_list_buffer == NULL) { in scan_done_handler()
203 if (esp_wifi_scan_get_ap_records(&aps, (wifi_ap_record_t *)ap_list_buffer) == ESP_OK) { in scan_done_handler()
206 int ssid_len = strnlen(ap_list_buffer[k].ssid, WIFI_SSID_MAX_LEN); in scan_done_handler()
209 strncpy(res.ssid, ap_list_buffer[k].ssid, ssid_len); in scan_done_handler()
210 res.rssi = ap_list_buffer[k].rssi; in scan_done_handler()
211 res.channel = ap_list_buffer[k].primary; in scan_done_handler()
213 if (ap_list_buffer[k].authmode > WIFI_AUTH_OPEN) { in scan_done_handler()
228 k_free(ap_list_buffer); in scan_done_handler()