Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/wifi/esp32/src/
Desp_wifi_drv.c221 wifi_ap_record_t *ap_list_buffer; in scan_done_handler() local
230 ap_list_buffer = k_malloc(aps * sizeof(wifi_ap_record_t)); in scan_done_handler()
231 if (ap_list_buffer == NULL) { in scan_done_handler()
236 if (esp_wifi_scan_get_ap_records(&aps, (wifi_ap_record_t *)ap_list_buffer) == ESP_OK) { in scan_done_handler()
239 int ssid_len = strnlen(ap_list_buffer[k].ssid, WIFI_SSID_MAX_LEN); in scan_done_handler()
242 strncpy(res.ssid, ap_list_buffer[k].ssid, ssid_len); in scan_done_handler()
243 res.rssi = ap_list_buffer[k].rssi; in scan_done_handler()
244 res.channel = ap_list_buffer[k].primary; in scan_done_handler()
246 memcpy(res.mac, ap_list_buffer[k].bssid, WIFI_MAC_ADDR_LEN); in scan_done_handler()
249 switch (ap_list_buffer[k].authmode) { in scan_done_handler()
[all …]