Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp141363rwb; Tue, 4 Oct 2022 01:43:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wbm2jA93cfBxn0nRxVg0XQbJqrI2p8xc4x/z0ncfM8XErl2Mnf7qeEVColx8y5kN3/d/o X-Received: by 2002:a05:6a00:2314:b0:546:ce91:89a3 with SMTP id h20-20020a056a00231400b00546ce9189a3mr26388326pfh.77.1664872992077; Tue, 04 Oct 2022 01:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664872992; cv=none; d=google.com; s=arc-20160816; b=k5UksNEoY2Qa8cugQYcNQnLJZRjJZEXPEy8Ty8GJj/ToZ+u7NEr1LK6PvGyefhF1ZB KotbuNiKT3VS1fLW9UNnpQpRAS2g2l/5+s/nQeYF9zMsxuLWRNnQUX8pMlzRixbQmu7J A1eLvapxb+nPx2GpjNvnk+G1oJyb6YDW9pU4WX/JNeoUuiuAGPKNUbd5BKc/I1n3xwvM 8w8jccnIgY0b6rCh0ciZGQ5IzKf3zPmqcOGbNXzwRAkFUw7E90Z6HquWAZv29aU1JWjk 3otCf2pZTrdvBERw4SeDSaWq9obe6W4Vd0ypu8Q+BJBngPHh3jN6n7062zW+Q4pzneNZ Yotw== 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=gx2es8yFb4mX1FOUsrS/jPZSGcX/sKWxiBKuRV1ZKCk=; b=fEZSDZzcMcD3sJ/JsuGC0R6cbrYbRsXTH0S3sbny3+XdgvAerl14AT0ufWjTosyh2T k5hMCVmcgHAyhBIIDm3LskWFEIY/Jj6vVV9o0E60SMKg9gXyH8pxs0Q3ADnMmgBAuvuZ d0LzB/lRAvMBpbtyV/zVnhZGUw+oMk+yVSkFL4qWwVXj6PwNQ4Y92C3fe6Xeb+oXqeLG YNyIJ1IT+l73LkuipfE/gGqI5B0l8KX7J8LZAGeLIT+kPBahxO6vf5VEyZC8X7s9xROK F2rGclZoEVUCf+tE0qtEFiPlz7WXDB4XjGp6k6kEizx4P8T0kc59EIeeLwvuj+jNib9r q1Eg== 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 e9-20020a17090a630900b00200aafea6d6si2029462pjj.171.2022.10.04.01.42.07; Tue, 04 Oct 2022 01:43:12 -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 S229944AbiJDIZz (ORCPT + 99 others); Tue, 4 Oct 2022 04:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiJDIZy (ORCPT ); Tue, 4 Oct 2022 04:25:54 -0400 Received: from voyager.loytec.com (voyager.loytec.com [88.198.4.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E3E622511 for ; Tue, 4 Oct 2022 01:25:54 -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 1ofdFQ-0002H1-NT for linux-bluetooth@vger.kernel.org; Tue, 04 Oct 2022 10:25:52 +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 2948PkTc2433476; Tue, 4 Oct 2022 10:25:50 +0200 From: Isak Westin To: linux-bluetooth@vger.kernel.org Cc: Isak Westin Subject: [PATCH BlueZ 3/4] mesh: Queue a friend update on IV Update change Date: Tue, 4 Oct 2022 10:25:29 +0200 Message-Id: <20221004082530.25719-4-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 A friend update should be queued when we receive a Secure Network beacon that changes the IV Update state. --- mesh/net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mesh/net.c b/mesh/net.c index a8a527c2f..577121f30 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -2703,6 +2703,7 @@ static bool update_iv_ivu_state(struct mesh_net *net, uint32_t iv_index, net->iv_index = iv_index; net->iv_update = ivu; + queue_friend_update(net); return true; } -- 2.20.1