|
|
@@ -1,16 +1,8 @@
|
|
|
-// Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD
|
|
|
-//
|
|
|
-// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
-// you may not use this file except in compliance with the License.
|
|
|
-// You may obtain a copy of the License at
|
|
|
-
|
|
|
-// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
-//
|
|
|
-// Unless required by applicable law or agreed to in writing, software
|
|
|
-// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
-// See the License for the specific language governing permissions and
|
|
|
-// limitations under the License.
|
|
|
+/*
|
|
|
+ * SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
|
|
|
+ *
|
|
|
+ * SPDX-License-Identifier: Apache-2.0
|
|
|
+ */
|
|
|
|
|
|
#ifndef __ESP_MESH_INTERNAL_H__
|
|
|
#define __ESP_MESH_INTERNAL_H__
|
|
|
@@ -107,6 +99,9 @@ typedef struct {
|
|
|
mesh_chain_layer_t chain;
|
|
|
} __attribute__((packed)) mesh_chain_assoc_t;
|
|
|
|
|
|
+/* mesh max connections */
|
|
|
+#define MESH_MAX_CONNECTIONS (10)
|
|
|
+
|
|
|
/**
|
|
|
* @brief Mesh PS duties
|
|
|
*/
|
|
|
@@ -117,7 +112,7 @@ typedef struct {
|
|
|
bool used;
|
|
|
uint8_t duty;
|
|
|
uint8_t mac[6];
|
|
|
- } child[ESP_WIFI_MAX_CONN_NUM];
|
|
|
+ } child[MESH_MAX_CONNECTIONS];
|
|
|
} esp_mesh_ps_duties_t;
|
|
|
|
|
|
/*******************************************************
|