fix(esp_wifi): Fix some compilation issues in examples

This commit is contained in:
Kapil Gupta
2025-09-26 12:59:30 +05:30
parent 7b665b6512
commit 552a8653ad
3 changed files with 4 additions and 5 deletions

View File

@@ -373,13 +373,13 @@ static void roaming_app_neighbor_report_recv_handler(void* arg, esp_event_base_t
wifi_event_neighbor_report_t *neighbor_report_event = (wifi_event_neighbor_report_t*)event_data; wifi_event_neighbor_report_t *neighbor_report_event = (wifi_event_neighbor_report_t*)event_data;
ESP_LOGD(ROAMING_TAG, "Received cb for Neighbor Report Request"); ESP_LOGD(ROAMING_TAG, "Received cb for Neighbor Report Request");
uint8_t *pos = (uint8_t *)neighbor_report_event->report; uint8_t *pos = (uint8_t *)neighbor_report_event->n_report;
if (!pos) { uint8_t report_len = neighbor_report_event->report_len;
if (!report_len) {
ESP_LOGE(ROAMING_TAG, "Neighbor report is empty"); ESP_LOGE(ROAMING_TAG, "Neighbor report is empty");
return; return;
} }
uint8_t report_len = neighbor_report_event->report_len;
/* dump report info */ /* dump report info */
ESP_LOGD(ROAMING_TAG, "rrm: neighbor report len=%d", report_len); ESP_LOGD(ROAMING_TAG, "rrm: neighbor report len=%d", report_len);
ESP_LOG_BUFFER_HEXDUMP(ROAMING_TAG, pos, report_len, ESP_LOG_DEBUG); ESP_LOG_BUFFER_HEXDUMP(ROAMING_TAG, pos, report_len, ESP_LOG_DEBUG);

View File

@@ -571,7 +571,6 @@ static int wifi_cmd_ftm(int argc, char **argv)
wifi_ftm_initiator_cfg_t ftmi_cfg = { wifi_ftm_initiator_cfg_t ftmi_cfg = {
.frm_count = 32, .frm_count = 32,
.burst_period = 2, .burst_period = 2,
.use_get_report_api = true,
}; };
if (nerrors != 0) { if (nerrors != 0) {