From patchwork Wed Aug 30 13:29:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 718685 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 435E7C83F1C for ; Wed, 30 Aug 2023 18:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245644AbjH3Sxu (ORCPT ); Wed, 30 Aug 2023 14:53:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244614AbjH3N3f (ORCPT ); Wed, 30 Aug 2023 09:29:35 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2071.outbound.protection.outlook.com [40.107.8.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D54521B0 for ; Wed, 30 Aug 2023 06:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KzdzdRQshFYff4MegqniloSxIDtIfX+M/8u79Z9WyL5cTf/jScbRpB6+lD1DEPoKhFW1upYjIsj50LM7YWuTwIvk0BUDAXpkD+WzMtdeUpNEcjdunnXPa9JcaEaktp1iNqhobUhqpSvckJUb4ojZjZw0VsGLpW5mPgINjcc/cE1MWKbWlif+ZEdtf+IpStLT1sLzrY0cidUwjHN7r1ztK1g07L8IPNjcbdSxKaF98k6P+hK+pkQKoDMKmfwmItza3Ku0ZmrdBjU0apcHtz+0NBvNz/0yfw4kCuMNtWC/EvpPFEdtDF/kS6AFE+hmxdPqdOf6CRH2h5kDr0hQ8cCBJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9XEtmuGwrcOlVekMN5ijOgZ6nuLOzB1f7LLAkFG+/cU=; b=CuDSu6hYVD74Vs3ZWY7FxjlhOjULb5LI7T8/x+PjzTWVgCLTf6y8YpGP0BPNofsyGyaENFqUOfd5mbKQSTRayAlyP6773iXyvLh2NKH++bRiyxgDfGBSdZfbv5Op4t++MzXkE99wh4VNyVeq8sIG4aDhEabkiQYx9mRHUUXGI+ndLQrphjWWotZNuC+LdsiCu44vPVKmj4EOe2+dUnqa7vrn+sgg49r4/sfbZcCtqWnE+vRg+Y14c4wxovMtCjkn84rMJH26Yl/WTE6ePslPOEA1H/4S3gdfUAhEIlUVzXPvkZ69qf8LadA9EYk/bvFeGuRt3oHwY+++rW/l02/t+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9XEtmuGwrcOlVekMN5ijOgZ6nuLOzB1f7LLAkFG+/cU=; b=cUvUl/hxso649iUAzGOb9ynDsNWkP7ePvFTz/NZq4YydgSv4tj4+Aqpyu/4dr5slET5/XstXUEtBD2DFmL3MU9zFiVlSu8gne+FaXCW8oVglg/MbCIXvW+kSGt+pJr6fqJnab0DEChKAlV1Zq2BpbRb9g0ry5rIkaeHs3y/jT9A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) by DBAPR04MB7334.eurprd04.prod.outlook.com (2603:10a6:10:1aa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.35; Wed, 30 Aug 2023 13:29:31 +0000 Received: from VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::6831:19af:f6c0:5512]) by VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::6831:19af:f6c0:5512%3]) with mapi id 15.20.6745.020; Wed, 30 Aug 2023 13:29:31 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, iulia.tanasescu@nxp.com Subject: [PATCH 1/2] Set temp if device is bcast source even if addr is private Date: Wed, 30 Aug 2023 16:29:14 +0300 Message-Id: <20230830132915.72153-2-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230830132915.72153-1-silviu.barbulescu@nxp.com> References: <20230830132915.72153-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AM0PR03CA0102.eurprd03.prod.outlook.com (2603:10a6:208:69::43) To VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5344:EE_|DBAPR04MB7334:EE_ X-MS-Office365-Filtering-Correlation-Id: 89ae8457-0b58-41ba-bffa-08dba95d244a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 145rMsy0D5VlQEWHFI9LrdqUBkwOgHGQbhlUo1UCEb6Gbc2H6n2kVdLSvlEoVqby9ZqIFD8by8EZvzaQFyuHah7ioBTsmwM3pUmFwWBp9mwWkabu5nlfUkDj2A2b8mxWot3smnK/6Fgib8MWhAVV4VM43G6+ljYIr5hhVRjYWAt6FE1/MAwIG8Mq+I6nfCKQuFW04TZFaTg7wAETGJTzuhbtFRr6r88fIh10xrYPY+Qu1945R90Wl9dAsPPPOhCVgLE6/u4IL5yIQMrQXd8H8vYhKzMaL5039Vq6Vzvl/JjvQsJ4zNTvWgQGb+eP85Zz+n2FxyezpFu4+M3akKpvGuqWHfrJSaq1r59pQGctdpQIXiKArGznOGhA1+vClWfDg3lkhVjZlVvykkuUp1DoxB1tgBy9wQiX07w4RVZ9Ywa8EZ04qRFf7hsq+f0NE8jz5uxj4+OhlYXsFuljpX1Uo/J4qvIcVcghDntZKHDdOn6Xyt1M9TgFAqTF1ByBG779vfjgoQYxg8yR4zpbC6r3tqF0QMLOXerTvx2ctxs5bOqXqaPFhlmKj1HJasPiuFds6eBVoH0PRZzIYyoaKWE0GYNQR9Z582jeFmwpLwImC8CmE8N4zVHYbjGCcTATQYZx X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5344.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(396003)(346002)(136003)(39860400002)(366004)(1800799009)(186009)(451199024)(8936002)(6666004)(52116002)(66946007)(478600001)(6506007)(66556008)(66476007)(6486002)(316002)(38100700002)(41300700001)(38350700002)(6512007)(5660300002)(8676002)(26005)(36756003)(1076003)(2906002)(83380400001)(2616005)(6916009)(86362001)(4744005)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FwRNQXWgiJ2J2K6QFF3ZbbbXFpfz+xboJfJ/I7gzaRBh59SFcXU7fvZcEUu22GE5TnvgP6SKtVOJ0NiB0UoOEn83mMYGaIZcVpDxdxRUrbcBTR+CHHVfZuJ5QcZODPMsqDaJ8cibU9AHaUbyYUlV9vgYOYnXlGW29D8y1Ag9P8xy55rfRULZVAVhBWZy+sKvT+ggaRXOAiX9ADAz7IxKBd0PaOxdMpH5b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YvqqEdVzoa45hR61zXH+GrXKTIzF4WZAlMSlL31jthbvMw/3hR27PcMP3BFBplsKwyulVSF+2LMWUK2KnB3AVzQ5oM6w5VxH7EYMyNc7Ri0ThB6G4L5nwrX+PDzuIPURL5NXVabXwd0gHLM4gep9y1rtN39h+K/ZCRZDndavLDhARzNs+7a+9DJzXsL8YDhZU+rjCWfUrRmEZcBf5x9kNXnCoEirrmAAyellTYUnhYD+sfrK8r+cOkbpclqC7Uf4UQYdHTx5DsuydniWJAmowPWRJrgK56anq3CGLzTdAnIp7RAQSlcNaXTQQkDd17Q== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89ae8457-0b58-41ba-bffa-08dba95d244a X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5344.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2023 13:29:31.4028 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rrydS08U+wuw7k3TkkB4aot6RQLBKi4B5iStczWuMgrDp58vJOigObwa+IpjDP8CIhXPisoQsgWmJYhn6TBQVhEOnWWViSpNY6jQGgy2u/M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7334 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org For audio LE broadcast we need to set the device temporary flag eaven if the address is private --- src/device.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/device.c b/src/device.c index 9b58e0c4e..9ceffa118 100644 --- a/src/device.c +++ b/src/device.c @@ -5945,8 +5945,17 @@ void btd_device_set_temporary(struct btd_device *device, bool temporary) if (device->temporary == temporary) return; - if (device_address_is_private(device)) - return; + if (device_address_is_private(device)) { + /* For audio LE broadcast, we need to set the device + * temporary flag even if the address is private. + * If the device that is temporarily set on + * has BCAA_SERVICE_UUID (is a broadcast source) + * will set the temporary flag even if the address + * is private. + */ + if (!btd_device_has_uuid(device, BCAA_SERVICE_UUID)) + return; + } DBG("temporary %d", temporary); From patchwork Wed Aug 30 13:29:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 719195 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44621C83F17 for ; Wed, 30 Aug 2023 18:55:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245612AbjH3Sxp (ORCPT ); Wed, 30 Aug 2023 14:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244615AbjH3N3i (ORCPT ); Wed, 30 Aug 2023 09:29:38 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2050.outbound.protection.outlook.com [40.107.7.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7A06198 for ; Wed, 30 Aug 2023 06:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iXEjyTgHkr5JpYRW4/GurrscoBNEY7udEZt7E3dyE+938rW3aNNV8MIMuZHEyBCuP/uzUrymx5sDohQkQFuSub8DjQAd9AT5l2SI7WcX+AEtOJ+Qcqi4CxJpfns7wGUPJKufjMpZUwXccqu+4jeLLQ9aqBOg9spVT0EyamWNzd4c6hDdd77FqgXWFMrfmVi5nbNo+QLGXiE5ngYpjzHlwvsk1myRCMn0ZYXMUcgEw776FPTVvnfnjfFRtk9lyycTgGKGqVgirx+kAlcRCX3shJbsqVoELDNvEkR41FezqMRVGKYY01tSj2ZzQxTLGhZl/ryW5zi3xC6oJFjQUY99gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cPHBw3tUDplRgQ1rA/ev4YoSYJfFWiipUvJRCAN+ijQ=; b=CSsQmFx5yVu7e9bACOGPaX14p3NPFVJV9i0a8D351oIltbGbNoRsdd2H25pvc7ZMkPwi+7FkVmAOdzA616e49Rhg2yHeNhzrcWsUCLjKDWT8SlkxoEaJU5FTCc8H5nSl6TAjP3beeTIWYGGJ8KcklBQ8boydE1xkw19fM0nyOcJJUVOMGtYZAX4XqUnUT6d+EuOSRWX2E42Skc7+OjK6TGNO4C45d2IVAfOh+bF0z57ddeoFkWB3/61zKX0vQ6cnbDlOH3fvMs7dSxgVhF3sdEDfyBeBzCjN77a/AkwCuQqQYS8+nWNaoJtJyD0d4Ndpez7A5Y8h+uxC5/gcj2c31g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cPHBw3tUDplRgQ1rA/ev4YoSYJfFWiipUvJRCAN+ijQ=; b=odA9jJbngAPs69JJ5sC/dG+tlbuXOTca0J/oUucf7dgwlye5+INnzBaXUjoAmO49dIs40dlZq7ZU7oPJaIIc/3kD8vfXlUnuUzbNVsHgvCQd6CeYXRXh2CJUgiYGspK+k3JL7TD4F1xug2ZKMThUx4PDqDPuLisBCSpUwUkfIGQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) by DBAPR04MB7334.eurprd04.prod.outlook.com (2603:10a6:10:1aa::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.35; Wed, 30 Aug 2023 13:29:33 +0000 Received: from VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::6831:19af:f6c0:5512]) by VI1PR04MB5344.eurprd04.prod.outlook.com ([fe80::6831:19af:f6c0:5512%3]) with mapi id 15.20.6745.020; Wed, 30 Aug 2023 13:29:33 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, iulia.tanasescu@nxp.com Subject: [PATCH 2/2] Set the device temp false when sync with a bcast source Date: Wed, 30 Aug 2023 16:29:15 +0300 Message-Id: <20230830132915.72153-3-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230830132915.72153-1-silviu.barbulescu@nxp.com> References: <20230830132915.72153-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AM0PR03CA0102.eurprd03.prod.outlook.com (2603:10a6:208:69::43) To VI1PR04MB5344.eurprd04.prod.outlook.com (2603:10a6:803:4b::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5344:EE_|DBAPR04MB7334:EE_ X-MS-Office365-Filtering-Correlation-Id: 4683882f-252d-47d1-ac86-08dba95d2580 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: muey+HB14LaxiNex5lJyG6pxQhaykJ18QFEIyE+X2JoSvFaYyGbzjG8AiNOaAIWb/Msaxvx5Hz5oQoc/5jA+Ys2WrPYtYKPNayM+QavHTiAuX9i2KPFGHdEv2VHb+1n6Yazwf+Hljkb22BErrTLdahPqYy09q5zZiTJDyyBdp2CNZt0VRZ0nd7k3EWlM7vJSqmEvq1X3QBd+8ES22dnqLaK+yRL04qh834eL0QdYr0NrG0zy8GHqj3JOnf2Y5cdeliXgPsAFWhOW9Z+bRRXhbKqn7GGpgXucsGNmSPNwWkenFcTDimsFjlqDRM9BmqkbDSw0Ur2rAtbWEE28JYwBF/ZsvgNQS9ykVxFX6bg5rIXl1BwNQPN4Hdm70pGQUUYODu1t+V22Z7odBnVEfBQ1Lz+2xd+KtROibqGvdQwK8eVGGNCJE1HH2u1qxmX5xMgGLGRQZEifGmwWyRHYkFoaMoXtPsF43qwhD1kuLdjfgbOHj7FRHl03rptyqpSe3F4n6IJf7auN8+gMkaf7BLUUXJPor2bXkPoSb+xwyhjmKDpmLSA4YBCHRip9uxeFkwY5z1bQToN5UnwrOXgYEYxWNTW6uPqPLYp4MEaN+0Ue6XO2IHwg+V4rvCOalZGnxZ+v X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5344.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(396003)(346002)(136003)(39860400002)(366004)(1800799009)(186009)(451199024)(8936002)(6666004)(52116002)(66946007)(478600001)(6506007)(66556008)(66476007)(6486002)(316002)(38100700002)(41300700001)(38350700002)(6512007)(5660300002)(8676002)(26005)(36756003)(1076003)(2906002)(83380400001)(2616005)(6916009)(86362001)(4744005)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Z+uOVWLw08NpamSjvfSMtNGkPl8PjIwNtjvKr2Ljanc/uM3QTgVdsyRxbmSXai3CkrZYJdV3lDaO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cDfWKGPlXLf8Rnm/hJFWQ2pcpMhfcDIK1jVYz/j/ra+pi4P4+x/VNgDVSxNjpPw1IGN1FSu4ZdKv0ON/a182rYfJBcJbN8YXfkBEujl2I59Wh3PqoxobhMRcID61u3IU/zud8WdVeF4HMW7Oyqt7OHbPiEggie+f77qHU9oGUwed1QumiTAJ+P4z49K9aC0n/TcuggwQJfq8RtfgY8A/laLGuYEnBthwCW5P6L4jpoISHZgmwhiVwWMxw10p7GB1Pys/9ui/PUrOITJNsDWASRY5epBaotBR1ILOCP3A+p0eVoAeAZ3YUPZo6n/asWtroTOJnFx3l/nI4togspEwMfLvZPwx8+r5VaLSAE1SZneeUXGs9HcFq9eZeKbJUptabaAAtIL3fr0+01feSogUkiEG11DoVPIkj54sCJNPkT9SbVQhljBgDyoHosjkxmrzgSBFqPB4lA84LJmVHsiHO9UdaA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4683882f-252d-47d1-ac86-08dba95d2580 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5344.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2023 13:29:33.1204 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Do8k6hIKcb93ye+yBeysj7OB2KwR/x7YcGU76gGVQIiNCmnjFCDIvkhLuz2Y05JlGH31g0b99VuiIQNsiharXOLvaHL0sbjaogQzbSSCHzg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7334 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Set the device temporarily false when sync is done with a broadcast source so the device will not be removed on the temporary timer --- profiles/audio/bap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index dfc71edf6..ab0b2c22b 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -658,6 +658,9 @@ static void bap_io_close(struct bap_ep *ep) g_io_channel_unref(ep->io); ep->io = NULL; ep->cig_active = false; + + if (bt_bap_pac_get_type(ep->lpac) == BT_BAP_BCAST_SINK) + btd_device_set_temporary(ep->data->device, true); } static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg, @@ -797,6 +800,8 @@ static void iso_bcast_confirm_cb(GIOChannel *io, GError *err, void *user_data) goto drop; } + btd_device_set_temporary(data->device, false); + g_io_channel_ref(io); btd_service_connecting_complete(data->service, 0); DBG("BCAST ISO: sync with %s (BIG 0x%02x BIS 0x%02x)",