From patchwork Fri Jun 23 07:38:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 13290096 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 87F0DEB64D7 for ; Fri, 23 Jun 2023 07:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230097AbjFWHjU (ORCPT ); Fri, 23 Jun 2023 03:39:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231393AbjFWHjQ (ORCPT ); Fri, 23 Jun 2023 03:39:16 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2061c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1a::61c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F15691BC1 for ; Fri, 23 Jun 2023 00:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T3SSN5jyxngraXWeT5Sf5BIin8oMCQ/gwbc7HQ1XEKo2/ZnLrx5bphacLtynV0T/RUJ0ZDZJECcVS0PxjaSQvFAvupuZgmkKVtD7ZCA+vjLc2QvqLgmo99gTeVhCQFAINuwMcHnHmrKx+KuFmRZBZP0ghPqtG8u4lKq0LYqqToBj1jk3oYYnr5zS3j4HijtMEhmfw/CsjcuMXyT96vQ4+cr0KzkuXCkwA2mL3u/IkU77Vct+a1ILI3K/UcKWlO/rMusfEEchhmTS3DN7BLjtWkbRN02EtubiM9GT9SU9rOTZVy3m2zeTWwb5064TbQtjdORbtSN8vCr5BjYs+zlmoQ== 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=OT0AdoYfj+zZBjPGeatU7V8QQyMkg2jiKoqUNadsfPI=; b=OcLviZ7Dpf5BhC/cT7Qx1boxRdWkHq3E5G7Pyr5kA/tU7UsnD2wF5oFd2wTruJHudSBTmoMcY+qIQSaxlKGUo9nG64CEtJs/2FyXTAXRoYseM6eT2CbBtekUGE06mil++OXSyvyQP1PkRDNCbGqEnnH9R0ciGCyQtblWX1Hs73NoFVYdScsydFOvzRXY6Nc4/o8i2ifae3+YfJyggw1U1Le7RVueRYbeg66SKlbnvsTQQTggEz+GWfk66xvpaHWaIHnHWkx2IeTGp0+Abk10kxmpfepiNFTtwXLcYQIKb+dzApXh+7Pv7ikqbRiMY5C9eYiYOznD37yLO84BUIV2+w== 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=OT0AdoYfj+zZBjPGeatU7V8QQyMkg2jiKoqUNadsfPI=; b=bCmzduizHD6pC7oOO8SjNxZogny3/97HqJj5zWYtW3Oh4ZYCBDovhYCJTGL1gMQ7DshMbEZ2XwRMWsSjH1JV7u2Mr+nDM1s8Hn0rw+DZn91pqnYrV8gsM9TrmiB7jyHyNvhmTYs/Vbesu0YmlUOEa0yPyZqIuCrBK5hxPf1XlwE= 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 PAWPR04MB9816.eurprd04.prod.outlook.com (2603:10a6:102:390::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Fri, 23 Jun 2023 07:39:10 +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.6521.026; Fri, 23 Jun 2023 07:39:10 +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 0/1] Bluetooth: ISO: Notify user space about failed bis connections Date: Fri, 23 Jun 2023 10:38:41 +0300 Message-Id: <20230623073842.16466-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: AM0PR02CA0193.eurprd02.prod.outlook.com (2603:10a6:20b:28e::30) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|PAWPR04MB9816:EE_ X-MS-Office365-Filtering-Correlation-Id: 06cad78f-02b3-4a82-a78f-08db73bcef26 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OHqajF27QDXbil9gP5bI66QuzxRh6Gi7s0Ywop/Q0V1GjJLdyk7ruMT2MOMzsI1jHNItTpcrekEzxCbFM3TQOH+ubkq6bd06UHFsHMxF9yZhuPvlLIRF4oEnMh/xjFu+L5iM962chGhmMUkiFA+G61uweqNfIxPzayy40QbNhgjrtSJEbOjHWnfGpmyQSUA8gmTC7XgrOkQuLTAYwHxWL0903q1jMRuLiibiEvunD34+8lXogQBcbcfi2aiWl+koCBUk4IpTNAFM4mIBUNVw9F7IdbZ1Y6um5PFOyEVLyibYbDnqDvTi9BDYN2pNz/AAT6dv7ozvEKNUPXsxh8ThR/tDMqxPkRHiZZrKqK4po9RvUbSvu/Casfz7RbvytTqYclHaDBYEmA2h3BchIFnPCxNRrebH9r5wREW3ownSvn7gBRAKRgXUXFgjmjReOdXfpled9gBWY7OqXwxpcdqQq2TzCIWHJNGfjzNxy0YQ/noce1oWuQpV+GG+tRHDPEb3Nlhi68RFcn/ag/Z8MovGG80eZO4dMdxzylpDlpsdskIOGXvwszbhvJ5e0GoK50/ZjONYQAY6jH34G4b1KW9HEj2mVLs3nC0LPyuuOm+z61H8RrIeiU+3sjX4Og7ErpGw 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)(366004)(376002)(136003)(396003)(39860400002)(346002)(451199021)(66946007)(66556008)(316002)(66476007)(4326008)(6916009)(6512007)(8676002)(8936002)(26005)(186003)(6506007)(2616005)(1076003)(41300700001)(6486002)(6666004)(52116002)(2906002)(478600001)(5660300002)(44832011)(38350700002)(38100700002)(83380400001)(36756003)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8kBfyM5ft1Tx0sLvx0Ydsr06ZqukWTJuyzWnV8Vh1QAqWQBZhWMYvTI0XXx8VB3c+C5WdVQCeqImVcqwYMNfVr7H7BHW5Uk6hgyyUqXf984OzxIgQra4hrGdr772iK1g+NUo0MjdeBgJq/JanGdu0vKbpLWLoCLN/jXPOF7jkoGeIf073TAUmX3oE1E6b9LDtTC/HSR+laLXA4Cf81f8uKS8+rWUEIGcCGnH2IsEjRn0hmKpb7XG3nJdvU2zGj+o+yioXqES+kGlxLGcy4ke7K/+Pd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ADhU9SBWy1iWA6Z40KFR/2u5LFRQPKQJ19NzBi6nn5TYow07DRuGYClTHxWY93hFz+b/AcCPkMVRWaXrYTNyXO4rhT2hvhsrDIO0CHLes2Qn1xZXZKgGNDC3twVbg13z5SBeYoyGlvb9+Msz08W1w6XJZCYQ/Lhn6lA51qQ1I7C4bGtSE4NZLoKHhCnI+mvJCUe60urVdTT2Q/piJYas6pqLE0wGnXj6jntU7HfPpXpjZI/vMM42UOw7kGA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 06cad78f-02b3-4a82-a78f-08db73bcef26 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2023 07:39:10.8821 (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: UlrKqu8Es7vj4ltebMnpsS09W83IDz0fjs94+LwfQ52gHuN+SzCT4oj7cjkAXYMXZLobU8Uy0bEq+bj0a8Kxlg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9816 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. Iulia Tanasescu (1): Bluetooth: ISO: Notify user space about failed bis connections include/net/bluetooth/bluetooth.h | 5 +- include/net/bluetooth/hci_core.h | 25 ++++++++++ net/bluetooth/hci_conn.c | 78 +++++++++++++++++++++++++++++-- net/bluetooth/hci_event.c | 21 +++++++-- net/bluetooth/iso.c | 37 ++++++++++----- 5 files changed, 145 insertions(+), 21 deletions(-) base-commit: 631016e6154d9bb1f992e1bd31615194cc5a872b