Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4706463rdh; Wed, 29 Nov 2023 08:28:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzJjDIlQvdY/Zjg1TQCtazvOqEEUaLhGU6tOIHs4SKdDvI+MVUn+Tf1lFxkoz6BBCOVfoO X-Received: by 2002:a0c:ed47:0:b0:67a:27c4:31f9 with SMTP id v7-20020a0ced47000000b0067a27c431f9mr16188345qvq.11.1701275338340; Wed, 29 Nov 2023 08:28:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701275338; cv=pass; d=google.com; s=arc-20160816; b=swOcRxx8zILl5bmlR+Nj7ORwDOArWfTp8XoMDPbl2ke+8ZZMmanJ9EysuHt5aCd0hf 3IJ+7iXu/ukY00NC/yc5geqC0QvmHQaigvnpg0trI/rk5/1ug3QlDiiCbk7w9HubfxN/ M3BMaeV8LEQqndKAmEN5bGxdMl01I1V8DuJ0F5hR9PXwOEi0Y+DLcC7RzBJnTSPeMBqh tTgQq+G0Ihr8PDVj6I0osBSSWj48OdhLhc/1HWNwJP3dSA1KZiZHrQH0Plb/K4qeNeeA QUbZyDj0sv9mFjcQac8zVN4N2GZQLN1R/Dlq+QGaecovGaJvU2fSTs2Ynhd6/IjgO4sY Etzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=Ki/0l0YXHZj1ymn7SHBdxEPBP0HzW8tYpy+QlRkmtfw=; fh=gOZmdXQWWYi2KI/CDlaL8bHElbVrtxjT8kPXxzTdvp8=; b=AqCOytWALQ6JFevKBOAsQ7VCGJmg3lM74MPQfqfYFia9ZZ8RVn+yk1X6fAp18ApBe5 Q8t2fQYw7eTuDie7vlRuOQ7TxR1VFBgeMWCKFGKiIidTXSv4VED4rMLzZ4KlJeSv/otm nq2OP+mJlKr9XBV6GwaZrXo1cIU+unsuwEVFN/LyU5nHFD4Z0vlT/V3Jy/8BFxVfFhgM /Wi9jsfwmSD2WzD4nsBqxf6aozysIEKWRG+O62m6DU5nNkyj2IQQSVyW/N9T2EPiplfB S1zIU6bgGg2Ffa/DbznJUeEBaIVipvSM88So2jMPirD8eJUDgtuxuHmAo9eSovYSqrIb rg/g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=SkmqTOt+; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ct6-20020a056214178600b0067a395ef2d2si7815314qvb.223.2023.11.29.08.28.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 08:28:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=SkmqTOt+; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 83D3E1C20AF5 for ; Wed, 29 Nov 2023 16:28:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A09B3AC39; Wed, 29 Nov 2023 16:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="SkmqTOt+" X-Original-To: linux-bluetooth@vger.kernel.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2068.outbound.protection.outlook.com [40.107.105.68]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E9D610CE for ; Wed, 29 Nov 2023 08:28:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WH9Hxcs5n/KUGNo2aj8AOD1sICGKsKgBirFE5nu7/Am3IufYkxLUvaJBLqJI4zHun64/hObukU7MCiZXVZkf1VN8UoN82C89OFJeOKOQOqoJoZKzITlV6HEcKm9vQcPe9IsYrFmNN+AsWgqGmBaq2WKOpe6rfI3aZI/QXTScmDr3YWrCmugMkP7EXAPcM1y1XxOKgpuyj5gGrgmnH9i+8TYR26DaOVMeQADn/OL1+7ZzSuaOqRkykHEjpZsZuW40rnHHsE1P0R/TFQueSkUb3MSoKqpqMD/zowDT7OGTrNDDlQUl9dwZrxJoFZxbl4cTE4rd8Bfp6Ddai+lv46Jc2Q== 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=Ki/0l0YXHZj1ymn7SHBdxEPBP0HzW8tYpy+QlRkmtfw=; b=UTg6Vw7cHPsomv6I769O11ZxGgl2uxIW4PI00Z/w8pYVRuUvzpP7QGJgz8/OH+43dV1Nx1hh+mOAfx1vIQxv8AyZOJJmZZ9jUiuWaZc/SSbW6ox9qERJ3zJXO5umaHZoQEmY99cmZdhgDyIXcsOwVzuYycvZrrrq3prviT4BR5Mgv+8wbtOeCYc4etBXn9MvGGbGUJrbQvw2qvF7VyoYD7BZZqWDI9Q49SLubH6V8qhIGg6uqXeGdjMSiCYuAG27zFBp0/+Bur/931vl5E2VySa0EdpUySQOJ9e0TFkeaoPTZEU9WqCqz6738LTHmekX69SbonkTsZPiWr4qYiGZtA== 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=Ki/0l0YXHZj1ymn7SHBdxEPBP0HzW8tYpy+QlRkmtfw=; b=SkmqTOt+2oQNwj0xlqfAVPt1blUWjF4LbQFyH7tzlllC3Nu8oZ++jGPl/KUyF1NYTzEq+K+RUf1agNeYm0BiLi60NKBaIirmOWOAHuiIFcxdNRzkmwqXMqyna9PpwJLGtKco6NsPVrVmqlI2qc4dCLdSef5eTNdkkhQMhdJXyU0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by PAXPR04MB8302.eurprd04.prod.outlook.com (2603:10a6:102:1ca::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.23; Wed, 29 Nov 2023 16:28:46 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::25a:e1cd:f957:6e7d]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::25a:e1cd:f957:6e7d%3]) with mapi id 15.20.7046.015; Wed, 29 Nov 2023 16:28:46 +0000 From: Iulia Tanasescu 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, luiz.dentz@gmail.com, Iulia Tanasescu Subject: [PATCH 0/1] Bluetooth: ISO: Avoid creating child socket if PA sync is terminating Date: Wed, 29 Nov 2023 18:28:41 +0200 Message-Id: <20231129162842.3596-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BEXP281CA0016.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10::26) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|PAXPR04MB8302:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f1f177c-96ec-43a1-3b43-08dbf0f842ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y9oHtDCVLEm7sRafFpvk+EybvkVbNdHRHZSSa3NNhwzqY1PzFjSa9ohUvAGLX0EE4/m0tgdb6+YYrLxSUcn+emdrHIwby1JwRTkvfzNpQuLYYjStoBEyQVes89VBOU7L+ab9Ige13ERTpEMnOzKG0fFUNl6xI7RVxPZHbb4fOuAhav01g5Tb6rFFt/J+kihfp8GH3jhMZqedsPqdW0KunP7wKOlcaU4Q+3jFozONfTtcoJGPDhaJJCozSzXQ/jzAPw0jNInxPGpFqabj9+zdNEJ6RKVaY2A0rcU45UUJwKq9v0LqfzNLBbjejXYMurQ53k/RP95DILo9YVrwXIFNmPNSmM9JzOpksxk6AReHJw1F+S4AC3UfrYkukp+49bZOhS/8fZbSlndeIUemsjBJYrRIKk86LB0Eim/1TG4wG8OkRSGegjnIWWBO6X+cz91IZr+22+jZj/faIJrwtlMV9PGQ7orQjwvSZePCPlSQ549IlBsGL3gJh7Qf4QV3TGo9gyeLBSlDjBYEnehj9pL48sxb/PnyGLlOLyc3T2mg2b2VaHEiY5a37Cfoqn4bSOXO X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8898.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(346002)(39860400002)(366004)(136003)(376002)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(44832011)(6666004)(6506007)(86362001)(4744005)(2906002)(6512007)(36756003)(478600001)(6486002)(5660300002)(41300700001)(83380400001)(38100700002)(2616005)(1076003)(26005)(66556008)(66946007)(6916009)(316002)(66476007)(4326008)(8936002)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?aHpfKA8ZoFtjn+iQMI2eNRe8m0XnjrNkd/vbwrvZdWPZo1Y9p49V5OJat+2p?= =?us-ascii?Q?Y6aE66zI6ED0WgRmxu/JPtzC4GwJzwamJ4U1ctwNJiEl3uGHDrWjQAFXyzoc?= =?us-ascii?Q?lRMR2RsRKSq/c+MXyN37Ndw/Igrj0v3ToqksqE5tIU9du0YWyMIxfcdUkZ6P?= =?us-ascii?Q?uaHNi3cRKY4+V7IHR6YiRP0eZUJHaIj9J9dpJ5t0wzLjqEo0XDVIucBh4QOk?= =?us-ascii?Q?7OcmTO6na4PaC/0jiINq9rAplgt7C6YTca2raWhcrxoxHQZDxCF2xT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NL+NOBXMMDU1FroTYBPcvrJOxPfyk?= =?us-ascii?Q?2aL/Fboqi73jHThh1waQ1U7Zs970WVIXl2nzQF7vWq5tkjSJq2YT5LMLpVwA?= =?us-ascii?Q?0Zunwo3E6qEtbpiDr8asf8Kr8F7ybub5f2As9cgsUEGg0g7y5NXX2NUdXAPa?= =?us-ascii?Q?epL/+iJwse7OiDPFsWMab2veW7oK2BVm/+YuwAx9p/DBP/ogDc+xk/+y+YYo?= =?us-ascii?Q?dCO05OdI00ntabbzuD/MHGJcsSVCW2mrmlIewCJTcLqexTVPxGjXWheBtflG?= =?us-ascii?Q?S/NPyRCqAoJXCH+WEv3MA7qotiR2N0Sx9j8zAeBW1KzBse44Biva+FzY2sjY?= =?us-ascii?Q?A0Fr2LiflDqSSn8Iozj3BLlJvyrBbH4mEjWG/j3JFBGH3yTEqxsrrIL6T0ul?= =?us-ascii?Q?5d3KT/Ut/hOCY0AdeeVrz/+I6bf6tB1mu5uHmNDoHln2FCHMJUl+RZxaUKg+?= =?us-ascii?Q?yg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f1f177c-96ec-43a1-3b43-08dbf0f842ce X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2023 16:28:46.7726 (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: aPyy0e9iw0q/fXneL57NlrDcmx5v7E8zrjWcuyrX08Xki6qJqe+fYxQVEMr7PMeGONmRVE2yOJwp7QkmtwfTew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8302 When a PA sync socket is closed, the associated hcon is also unlinked and cleaned up. If there are no other hcons marked with the HCI_CONN_PA_SYNC flag, HCI_OP_LE_PA_TERM_SYNC is sent to controller. Between the time of the command and the moment PA sync is terminated in controller, residual BIGInfo reports might continue to come. This causes a new PA sync hcon to be added, and a new socket to be notified to user space. This commit fixs this by adding a flag on a Broadcast listening socket to mark when the PA sync child has been closed. This flag is checked when BIGInfo reports are indicated in iso_connect_ind, to avoid recreating a hcon and socket if residual reports arrive before PA sync is terminated. Iulia Tanasescu (1): Bluetooth: ISO: Avoid creating child socket if PA sync is terminating net/bluetooth/iso.c | 51 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 3 deletions(-) base-commit: ab3d463ded5dfd81227fc998910c40913ce17616 -- 2.39.2