Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp141330rwb; Tue, 4 Oct 2022 01:43:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mpMyExChXEol8eIoKLpXeZgdX+/z1BsYSp134WpH3UK3Czljw59EoFtOSJ0XGnLjKsQ0J X-Received: by 2002:a17:90b:1c12:b0:200:b623:455d with SMTP id oc18-20020a17090b1c1200b00200b623455dmr16072080pjb.88.1664872989364; Tue, 04 Oct 2022 01:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664872989; cv=none; d=google.com; s=arc-20160816; b=x8VHmUeDyzDzrpqmAiWVZZiayr2GmdeCbIp35dGKO/lrAUwwNObyOl7pNV+NE1+CrI Zhrmqx6itMCNh2YDLQwLrTnz3wAIPNv1UNAUV83gDWijinAmvp/nY6pscD1i8M8vcBU8 s3k68+tC/zYXTftbGnx3x6afTcCZYvIjkSBmfHNgov0B7YkCzxdvHSvO9i1l4gSckLOo Xs4AxtmVa75iPRJrsjm3gMRLxNOjcBDNvh0ZkhcUsIAjIM8Rks7xD3ycAPCgMGv6W9rG o5cMYoURSUqhBHESevjNkQcXcaRbJBYosidelwFxZXRf39ik+CSnFh3/l6FVkk8yVDTD ZfmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hUdMo9im39sZFCVIvXqcfcxYD6/OKv0EiAHJ1dp4vxc=; b=SJBxvflCX8ryRe7DtYYjilOUsuQMLOG9NDUBRxiRPb2zT1njJ+qoJrepxz9f+/rEvd JnyCRvOcoQZo43e6F2QpwfXHrVLoBZGHEsvXj3oyJHe1OHIHHefNr3t7gKSPa2OIZjhW H5en//EuD9Z0Gu3ABEeN6AXOBmQ7qK05wTgHjjPqOZ+4mdPkTSk0ldxVjwvxYu3FInqJ 2vAQS9krmmivSY52ZznCm/EaHA0wPXDp9HU5AR9a6oNyCidwVymLtjQm3das1XTpgZ9A +uFzdFcUA/0UrrgwUOYytkR2AE1aB3ux2IGgexatmsYU0Pc2Er2E2gGK9ZQ/g7tHjg7n 5cuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020a17090301d000b0016e00409f22si14484268plh.20.2022.10.04.01.42.07; Tue, 04 Oct 2022 01:43:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbiJDIZy (ORCPT + 99 others); Tue, 4 Oct 2022 04:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbiJDIZx (ORCPT ); Tue, 4 Oct 2022 04:25:53 -0400 Received: from voyager.loytec.com (voyager.loytec.com [88.198.4.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE22C2252E for ; Tue, 4 Oct 2022 01:25:52 -0700 (PDT) Received: from 212-17-98-152.static.upcbusiness.at ([212.17.98.152] helo=lexx.office.loytec.com) by voyager.loytec.com with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofdFP-0002Gr-1r for linux-bluetooth@vger.kernel.org; Tue, 04 Oct 2022 10:25:51 +0200 Received: from loytec-dev-vm.delta.corp ([10.101.25.21]) by lexx.office.loytec.com (8.15.2/8.15.2/Some OS 1.2.3-4.5) with ESMTP id 2948PkTa2433476; Tue, 4 Oct 2022 10:25:49 +0200 From: Isak Westin To: linux-bluetooth@vger.kernel.org Cc: Isak Westin Subject: [PATCH BlueZ 1/4] mesh: Correct size of friend cache Date: Tue, 4 Oct 2022 10:25:27 +0200 Message-Id: <20221004082530.25719-2-isak.westin@loytec.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221004082530.25719-1-isak.westin@loytec.com> References: <20221004082530.25719-1-isak.westin@loytec.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 212.17.98.152 X-SA-Exim-Mail-From: isak.westin@loytec.com X-SA-Exim-Scanned: No (on voyager.loytec.com); SAEximRunCond expanded to false X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The cache size communicated to the Low Power node should be the same as the cache size actually used. --- mesh/friend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/friend.c b/mesh/friend.c index 6c63032ac..5b73da689 100644 --- a/mesh/friend.c +++ b/mesh/friend.c @@ -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 */ -- 2.20.1