From 6bc256adb7b7df458f8dce228ede6de30fbffd27 Mon Sep 17 00:00:00 2001 From: Shyamal Khachane Date: Thu, 28 Dec 2023 20:48:50 +0530 Subject: [PATCH] fix(esp_wifi): Fix crash while stopping NAN Also fix inconsistent NAN macro values --- components/esp_wifi/lib | 2 +- components/esp_wifi/wifi_apps/include/esp_nan.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 98ccbbf9d06..673004a3c63 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 98ccbbf9d064886ba4f05697e50b4e27790c7001 +Subproject commit 673004a3c63c19e897a3e77eb26e259d20e76eba diff --git a/components/esp_wifi/wifi_apps/include/esp_nan.h b/components/esp_wifi/wifi_apps/include/esp_nan.h index 17c369f2425..e0e9d90d81b 100644 --- a/components/esp_wifi/wifi_apps/include/esp_nan.h +++ b/components/esp_wifi/wifi_apps/include/esp_nan.h @@ -26,8 +26,8 @@ extern "C" { #define NDP_STATUS_REJECTED 2 #define NAN_MAX_PEERS_RECORD 15 -#define ESP_NAN_PUBLISH 1 -#define ESP_NAN_SUBSCRIBE 2 +#define ESP_NAN_PUBLISH 2 +#define ESP_NAN_SUBSCRIBE 1 /** Parameters of a peer service record */ struct nan_peer_record {