Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/wifi/esp32/src/
Desp_wifi_drv.c164 wifi_ap_record_t *ap_list_buffer; in scan_done_handler() local
173 ap_list_buffer = k_malloc(aps * sizeof(wifi_ap_record_t)); in scan_done_handler()
174 if (ap_list_buffer == NULL) { in scan_done_handler()
179 if (esp_wifi_scan_get_ap_records(&aps, (wifi_ap_record_t *)ap_list_buffer) == ESP_OK) { in scan_done_handler()
182 int ssid_len = strnlen(ap_list_buffer[k].ssid, WIFI_SSID_MAX_LEN); in scan_done_handler()
185 strncpy(res.ssid, ap_list_buffer[k].ssid, ssid_len); in scan_done_handler()
186 res.rssi = ap_list_buffer[k].rssi; in scan_done_handler()
187 res.channel = ap_list_buffer[k].primary; in scan_done_handler()
189 memcpy(res.mac, ap_list_buffer[k].bssid, WIFI_MAC_ADDR_LEN); in scan_done_handler()
192 switch (ap_list_buffer[k].authmode) { in scan_done_handler()
[all …]