From 3e1b174c530f84b6247925bcdbea9f2b0cb86834 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 6 Jul 2021 13:41:14 +0800 Subject: [PATCH] esp_supplicant: Make esp_rrm_send_neighbor_rep_request return proper error Current code always return 0 even though wpas_rrm_send_neighbor_rep_request() fails. Return proper error so the caller can know what's wrong. Signed-off-by: Axel Lin Signed-off-by: Sagar Bijwe Merges https://github.com/espressif/esp-idf/pull/7233 --- components/wpa_supplicant/src/esp_supplicant/esp_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/wpa_supplicant/src/esp_supplicant/esp_common.c b/components/wpa_supplicant/src/esp_supplicant/esp_common.c index 85989c1189..a2e35d679f 100644 --- a/components/wpa_supplicant/src/esp_supplicant/esp_common.c +++ b/components/wpa_supplicant/src/esp_supplicant/esp_common.c @@ -281,9 +281,7 @@ int esp_rrm_send_neighbor_rep_request(neighbor_rep_request_cb cb, struct wifi_ssid *ssid = esp_wifi_sta_get_prof_ssid_internal(); os_memcpy(wpa_ssid.ssid, ssid->ssid, ssid->len); wpa_ssid.ssid_len = ssid->len; - wpas_rrm_send_neighbor_rep_request(wpa_s, &wpa_ssid, 0, 0, cb, cb_ctx); - - return 0; + return wpas_rrm_send_neighbor_rep_request(wpa_s, &wpa_ssid, 0, 0, cb, cb_ctx); } int esp_wnm_send_bss_transition_mgmt_query(enum btm_query_reason query_reason,