mesh: Correct size of friend cache
authorIsak Westin <isak.westin@loytec.com>
Tue, 4 Oct 2022 08:25:27 +0000 (10:25 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
The cache size communicated to the Low Power node should be the same as
the cache size actually used.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
mesh/friend.c

index 6c63032..5b73da6 100644 (file)
@@ -25,7 +25,7 @@
 
 #define MAX_FRND_GROUPS                20
 #define FRND_RELAY_WINDOW      250             /* 250 ms */
-#define FRND_CACHE_SIZE                16
+#define FRND_CACHE_SIZE                FRND_CACHE_MAX
 #define FRND_SUB_LIST_SIZE     8
 
 #define RESPONSE_DELAY         (100 - 12)      /*  100  ms - 12ms hw delay */