Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25754500rwd; Mon, 3 Jul 2023 00:05:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/l3wBhWKMroNo7ALbuxvpYBD1X6RcLlzv3uAOdKCKuE9a0szOmaUHTpYE1RgNrU8uPyHt X-Received: by 2002:a05:6808:23c6:b0:3a1:e3d9:17ed with SMTP id bq6-20020a05680823c600b003a1e3d917edmr11164527oib.51.1688367903394; Mon, 03 Jul 2023 00:05:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688367903; cv=pass; d=google.com; s=arc-20160816; b=riTy09OmzMdxuhv2Vx/3AlxlVicOmEftqf4FDunaYpOHNg3o4BL1km1sT3ttzeUnKv 8X17J85wwEY+vheoVhVC3BTAfJ1YFRldGDUXRjiKXAkI/7BcUdj+fFWYne6ds//y0c3I U0gu7lL1tnzLqpjL5lFkGuPft1T0DK5TybrjM7aTA7XdBlBnMDv1LNQW6Q/3eNK5P2gr gbzI/BB7wFoict47Q9LFPRCsr4SSUshyLhPKIaaKrgRFVnZsqNNsmqNF87GUzoC6FLTn G17QCPaT9ZyT5H3oKEB4WJJt1+/nVTImCwRa3n7rjueJR4J7jd3bNW4c+1zbywlA0yGU 5gZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=KRAloPdDOaB6PP+z0ljCOa7AerfmJwGsEMeg569ZWPc=; fh=7NShbLCpgA4MAoc/3RKF3JfzHHbQfez6RTbaxMVvxwE=; b=t6jNOkVH5+7UYLB70CtWqFI64EvHlAP5Tl+NXuluOuPxnAfmfZi0Ere1W0GInpwRCU fGKouYXNrVUcSql+5RqocBzqjgP1X/viLAepnkrvkTSr1A172TAVIaCkOeIxnJJtYECC 5+VYZmYf7nf6ZFU9I/1hfLcWXbndsL4DGqn+CfLHNuFZh+0TP9zfER5C2tRT5j9LQxGZ cDgoTvJEJ9x9wyx31SMG0l3ZyzkJyc80pqNi37lUsqF2oCqwLFPBFb1ANNEJ6hrRlg4a 5NTMX57TTdNU9uOO3c5HzsFlXoMcRu/2fUa47TLDTNCtRnRyrXvt230beksZQAMKHYSX /IrQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=jCjPBl6p; 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-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca9-20020a056a00418900b0066cc86468c5si16692819pfb.26.2023.07.03.00.04.38; Mon, 03 Jul 2023 00:05:03 -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; dkim=pass header.i=@nxp.com header.s=selector2 header.b=jCjPBl6p; 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-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbjGCHDD (ORCPT + 99 others); Mon, 3 Jul 2023 03:03:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbjGCHDB (ORCPT ); Mon, 3 Jul 2023 03:03:01 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2087.outbound.protection.outlook.com [40.107.8.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5435898 for ; Mon, 3 Jul 2023 00:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dFZ3sRFjgHuSoAxjhhh0QVZTGOOKFRRzrd5amF75F2JHeVLfPNuCXgOxXwxuux+DEyr411LN6v0mIRH+FosJwdG/xJoZBjwT2hfq1QuXiSng5dJismBd6z+5CZit2n76iz0vYlAtxpttqaU34XeoGNJc6uGV2S1gv01GxKWXy+TGWqMNrJV7/8/aDrWe/KtRJDXDjvSyVpqcks/QdqRplDiVelabezuHXr3sp18yRStQ/waO/DHA24VNgqkNV3SAma1NTvHJKqAA38APd0TGATn8ZK90hiUwUYTLJzGypSsdm1igbVCao4xscZKsBXXVHpcpzclt42s3AiyjfBLfkw== 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=KRAloPdDOaB6PP+z0ljCOa7AerfmJwGsEMeg569ZWPc=; b=MDTU8wPJqXiMNB8EyGC8fMJJ2WlK81HpgM+hfdDSTGocVJ/gZNS6A2e60GRJ2L0mNUi6O4UFPcxmkarTJ9ahpeFyBemC7u9e1W9lI+dv5eeB3skND1gJ7vOFGNBUlvULmFkrKZ7SdS1mg7DCrRLtHCpcWV2BP8Z3ZVD7j5C53AZ1CaUzZdBNxHk+UkXfHWuoOlfWEOwsjxC4SHdw2TxNBucUsgTDMyiBURfnY077dj7zNtfEACAQM37VUSYO/qvoJNt1bSQzWZMm0YwMcEP8zChPb3b4D+60DpUCQnr6AxG14G5qCFM/9LOXZv8SidruEJODaWlEhA2uQMbgQmDRzQ== 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=KRAloPdDOaB6PP+z0ljCOa7AerfmJwGsEMeg569ZWPc=; b=jCjPBl6p/u9UA6Fj5pWP2+XPOHA/M2v7o1kFPwIKV4xj81BA/Fg/+/zJwm9IcBzYS1+vfyOZgb9y+59JqLmAQYKap1fuEHtpDuM1/h/Fl1IuWtefdw7mcnk34R468kPL+aY/kDgbwn0qqCAcRjANQZbo3SR8GpWnSW85Wdw6Gu8= 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 DBAPR04MB7317.eurprd04.prod.outlook.com (2603:10a6:10:1b3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Mon, 3 Jul 2023 07:02:56 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7526:7510:9b32:e1fe]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7526:7510:9b32:e1fe%7]) with mapi id 15.20.6544.024; Mon, 3 Jul 2023 07:02:56 +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, Iulia Tanasescu Subject: [PATCH v4 0/1] Bluetooth: ISO: Notify user space about failed bis connections Date: Mon, 3 Jul 2023 10:02:37 +0300 Message-Id: <20230703070238.4193-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM8P189CA0006.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:218::11) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|DBAPR04MB7317:EE_ X-MS-Office365-Filtering-Correlation-Id: b0d794b9-692c-4e33-382f-08db7b93878d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s28twvfEuJ0Ib7xiUZAtO953S5+7BurIRizXxu0nzjDrvxDuteZqpTZDxlJ5yCLRUUqrO284MrhA+FZWqZHSFR09khbL+kqLtekpVeLBYEdWDSjl66jupT48dNP+isuttuH6JDzPY8gYyd9BCdPn+oc04HQQ3I0IW3Oidt+J8NguYg196uZQwFhXcmJQbrTQv9Vb6rskO4x/M+Ku1acs8bpHSVTAFRZp2cVp82k7ZABEFxioTQ7SLiCuih/XLk+XJKa8SGwCMoz2WsUYWuEh4rEym/8WwwHFRTCy7o+d8Hu5HiLIJpxTr2VLrhoyXdkJjlnEExBq48Dmk3NewJ4cd8yn7F11KsdgSHKUwZ8v8urtvRLVAk6Tv+GHPpLkAigOkR7oVKn3nMO49GKYzrLrWun/zJ768doJlxGtHCkmbwLO3z2lz6MRarjK7H0Bj7jaL60kMup6OCBfbdqGPPQqjRKqkwXcQMSdTZO2C6jZix8habXnfCMD/i/c05yxA984DmjGd9eClbRfkSdYqzxckDkySLUUyf8kzGX1sy7cW/lXq1RO1E19GBALgqWzY9Oxr/THufohfVlX+Wwta6kw8U5e23Hj+r4M0ZHGdp/2vtFxQ2gx+V+b336kv+624zVY 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:(13230028)(4636009)(346002)(136003)(396003)(376002)(39860400002)(366004)(451199021)(2906002)(41300700001)(5660300002)(44832011)(8936002)(8676002)(36756003)(86362001)(6512007)(52116002)(6486002)(478600001)(6666004)(83380400001)(186003)(26005)(55236004)(2616005)(66556008)(1076003)(6916009)(66476007)(4326008)(66946007)(6506007)(316002)(38100700002)(38350700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?QMEYvnoSTctoP28VMeTqCWMtnJv2j5j5j2ZH66O7wu8rXvdRiSyMIsjDZmTk?= =?us-ascii?Q?ApBRL5CGpNUtSHfUmjAu5on2R9AmeXrIA78ThkdczjRJcanzLHytuJGYAnXH?= =?us-ascii?Q?XIp5dqSbUicLTRQQ6BcMdBRlVyA8R81lCkoDzM6W6kP9RQ2J3jvM6E3hTEVh?= =?us-ascii?Q?crgjXMM6leHcBZqlff9t6u8UsQ19Qxk5V4Bll4toCIH3EDrn2OcpOJQ6bDov?= =?us-ascii?Q?2xQcLyseMl2wKH/CmcdgwBgQqo60n4MWC0rTai+co5uQfsIc7NNB+5TGuU8X?= =?us-ascii?Q?KDtmES3NBLvF/DBS07WM8b3YmFQYdniOTZ3GBasTBn43UHau1u89OsdDSSwC?= =?us-ascii?Q?QdDOVi2uHIt/hNHOzuXRK/1JJy7Krs23X+C4jO42wI2+YE18dOgwHy60rIwE?= =?us-ascii?Q?IGeMPQ4zuzqffw77qJEIIMS65qssEiiaoMr8bmV7aEM2PzNaLIdfTlfv9x0e?= =?us-ascii?Q?VoXNf54IQ4TZyuVBf1+U17hkOa7ptxEvA7/c/Zf3YYSOslx6dmna0tN88uRZ?= =?us-ascii?Q?J89sm9Fb4+lUgPE2bjrbXO3z1z3WzXIfGD0iqQTfNOrVf9m0wUQ3LXkyBZTc?= =?us-ascii?Q?Fn6o+NR5pYRoWvbtR6hp5B/CTKx5SgTAi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xudjBMWIY+08qeANEy9+pD1VWMb++gD/rn+889LHmyCrVafFIZPt?= =?us-ascii?Q?/i0IFCCLZTotwQIVTKoxcnshzT9/5C8jp9h8XLWz/oIWvzP47mU2KJngGpZF?= =?us-ascii?Q?Ew=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0d794b9-692c-4e33-382f-08db7b93878d X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2023 07:02:56.8738 (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: OY3qhcDj+mAoogukMfJiUSz5ppJc2lKHNl3g6JyqoleKQjzZazlL8x6up2T6MBie7A7seD/qP6YiceXZF0vjvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7317 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 This patch makes it possible for the user to be informed if BIG sync has failed. There are situations when certain procedures must be started in this case, like it is, for example, when a BASS Server fails to synchronize to a Broadcast source, as a result of a BASS Client writing the Add Source opcode to the control point characteristic. The BASS server should be able to detect if the sync was unsuccessful and it should send an appropriate GATT notification to the BASS client. Currently, only successful bis connections are notified to the user, using the listen and accept socket procedures. This patch proposes an implementation so that unsuccessful bis connections are also added in the accept list of a listening socket. The connection error is marked by setting the sk_err field and generating POLLERR on the child socket. This way, the user can detect if an incoming connection is successful or not. This patch version fixes review comments. Iulia Tanasescu (1): Bluetooth: ISO: Notify user space about failed bis connections include/net/bluetooth/hci_core.h | 25 ++++++++++++++++++++ net/bluetooth/hci_conn.c | 37 +++++++++++------------------ net/bluetooth/hci_event.c | 21 +++++++++++++---- net/bluetooth/hci_sync.c | 8 +++++++ net/bluetooth/iso.c | 40 +++++++++++++++++++++++--------- 5 files changed, 93 insertions(+), 38 deletions(-) base-commit: fd859b4a38153b4d9e1942ade471f4fdcd8d224b -- 2.34.1