From 0ce0e4d5697b3c2c421b108cf7497378f2364def Mon Sep 17 00:00:00 2001 From: shenjun Date: Tue, 16 Mar 2021 14:17:13 +0800 Subject: [PATCH] mesh: support for chain topology --- components/esp_wifi/include/esp_mesh_internal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/esp_wifi/include/esp_mesh_internal.h b/components/esp_wifi/include/esp_mesh_internal.h index 87f6a5f57a..e967dbaafb 100644 --- a/components/esp_wifi/include/esp_mesh_internal.h +++ b/components/esp_wifi/include/esp_mesh_internal.h @@ -97,6 +97,16 @@ typedef struct { uint8_t toDS; /**< toDS state */ } __attribute__((packed)) mesh_assoc_t; +typedef struct { + uint16_t layer_cap; + uint16_t layer; +} mesh_chain_layer_t; + +typedef struct { + mesh_assoc_t tree; + mesh_chain_layer_t chain; +} __attribute__((packed)) mesh_chain_assoc_t; + /** * @brief Mesh PS duties */