Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4489513rwo; Tue, 25 Jul 2023 06:57:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlFazB2d4JAVEa+KWBb6EPfQA/8696ftsQArlFUP7q5ktFQ01sQ2Vup+L1vImJXGLr9Kk7EP X-Received: by 2002:a17:906:7a13:b0:993:eddd:6df9 with SMTP id d19-20020a1709067a1300b00993eddd6df9mr12065796ejo.2.1690293423394; Tue, 25 Jul 2023 06:57:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690293423; cv=pass; d=google.com; s=arc-20160816; b=ohSbEwhDSaz7OY/ZIo2qqgGwG/+U/t/uGgrUc309AwjIevwFQtgeCaxdCWuUPykyzq AJVh82GFqSx6MZva5JdIuO0+91SrOyiIKnACqywpZGLRmGLonQBtEQLzcTAfoMdJNwMC HkGzLBug8YQHrVQcd/0wRKxoqn19vF6GMS8mhoHcZQo/rif25xxXe0GT/1Q14GU0CNo/ a4oZ1DO+W2Gnm6WLv8HZwgrHeAl7zs/he6rP2NmFN5EbW+lSuKwqQBWDg/wPaV2u0V1O rVh3xqE76RZHeqjm3LFoZImqgEAq78cH+jukJwMstu2/KvxXe7fWN5UkSRnuq2YTHasL XYkQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s2o9oMMTBRzrlvzvqRH03A06HPrm1knS7PpN3p1pbOs=; fh=O7b9e/0FHf0lC36zxfkGCP11r7lJVOROe7GJbtvFS9U=; b=iRItHSMHVXwVsKJym+yDbTkMtDXudJ0pfj9MvNdxNWcrOtSTmGjC4FhUA8CCfioC5o pgDl7OhEXit31FqL/FrfgynkvVzi4zBC8ME08tbLfyjvOIXmhcPZ95CEDFz+UF/69aWO 5dpDfxVBn3BDcituCugkI4qCtQ8HgTaUbgSnS5TW3ogY+k9lfsg3DtvGK+KKfhknNbur Q1eSSlo3YO+ACRra8RIh9nUU2CIerkowp3RNMt8hUeBHuwygdRRot2WdNxJGbZZvKnIU A9oC2YGO2Xfd+lFLUGlfgpzDrL0dcaQDQbYCuk2CASH+nhYHJe7DNlUVVZGUzjF1Ak3m zVdQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="Ad/W2ujc"; 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 xo10-20020a170907bb8a00b00992b49a8f89si8039769ejc.650.2023.07.25.06.56.39; Tue, 25 Jul 2023 06:57: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="Ad/W2ujc"; 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 S231515AbjGYNsV (ORCPT + 99 others); Tue, 25 Jul 2023 09:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231766AbjGYNsP (ORCPT ); Tue, 25 Jul 2023 09:48:15 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2052.outbound.protection.outlook.com [40.107.15.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43C8DA1 for ; Tue, 25 Jul 2023 06:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QtHt7o+peW5kW9PCJ+ylq8jEIwQcZopKYdFeJZJf4bC4C0VGjDlELgkhkI+GWJ7h7hQN4O/232EEghugFYObg9ueIBMskV+JVXcZOQgycOrF3i5ujLO7yjLlPXzgK1RGQNzzrMjO9fc/ZWsyzQWBigG9wqS6PwOg7LuPT1locyLXmF6+IZxatuBpGTzsX9vaNkYva2J8t3MFb6v5KpLvIGUrxx95XF+lEMeXu9N25u0BFzDJtCuV8qX+tSmMn4sB9V1HVNWAZ4Cq4gkCr/xc8xQ3AlzkZVfMAPAjv7U2EqnaW3IUE4TSFSOEnT6jQ+CprM7ag9VcPOt0LmLtJbTqwQ== 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=s2o9oMMTBRzrlvzvqRH03A06HPrm1knS7PpN3p1pbOs=; b=kyPPz9DcZOXGZQNOLepLxJl/nEEhnlHChnR++nXDgZKmB2xnw8v+m4P9FFd9aD5QL6u1ZJ+zUYVUOvXc2wzezCU9mI6+wlnC3y7MQ/zX5B6ShSjrthKdHSWSGWGzYHMADJS1b6io//fJmFMsmBK1baDhuOTLhqcj07w9O4+aLx1FMMoIayteei35NBkT+1se7qfBGE7QiudRKUekvnObEKz8LNC/n3vPlaCFvItJ7ZfORy911axhVODC/Yd3+im5GE6tKbLABNci5UXVWbryTz3qTorRsEvackN3elXSCCoEQVMxniENhrCc8pd9rH+n4VRZLuNeTExZpZ34WnMQAQ== 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=s2o9oMMTBRzrlvzvqRH03A06HPrm1knS7PpN3p1pbOs=; b=Ad/W2ujch3L6HFyB1iKTvfwswoPFmvwkTqSatDJCbu/rJyuc0Qs/jAaxFWDPwZ7YZYQFf9E28qerWklEfvnpMkgjzDbJHOseNjnNLVNu2GEbypWPXl/2zIbLD9ESSNdboB5CASBuTAqMtiZsRfcw4MA1Z8Vm1MD1g4/EH4iQ6KU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB9126.eurprd04.prod.outlook.com (2603:10a6:20b:449::16) by PAXPR04MB9593.eurprd04.prod.outlook.com (2603:10a6:102:24f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Tue, 25 Jul 2023 13:48:12 +0000 Received: from AS8PR04MB9126.eurprd04.prod.outlook.com ([fe80::273d:f528:aaa9:288]) by AS8PR04MB9126.eurprd04.prod.outlook.com ([fe80::273d:f528:aaa9:288%4]) with mapi id 15.20.6609.032; Tue, 25 Jul 2023 13:48:11 +0000 From: Nitin Jadhav To: linux-bluetooth@vger.kernel.org Cc: devyani.godbole@nxp.com, pav@iki.fi, luiz.dentz@gmail.com, sathish.narasimman@intel.com, nitin.jadhav@nxp.com Subject: [PATCH BlueZ v4 3/3] shared/vcp: Reserve one more handle in VCS for VOCS Date: Tue, 25 Jul 2023 16:47:42 +0300 Message-Id: <20230725134742.51651-4-nitin.jadhav@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725134742.51651-1-nitin.jadhav@nxp.com> References: <20230725134742.51651-1-nitin.jadhav@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AS4P189CA0037.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::8) To AS8PR04MB9126.eurprd04.prod.outlook.com (2603:10a6:20b:449::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB9126:EE_|PAXPR04MB9593:EE_ X-MS-Office365-Filtering-Correlation-Id: 834ec679-f3c7-4de4-38ab-08db8d15c989 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qyghHJM+x7in9nwntfK/t0Y1acEDqqZ7MH6VKJl/eMxAHJMnDPiCpznJvVDLTdTjTFv1I17HjvaoklysNzJP51E3frP53cw1Q5oKB3bkFc3nhAlmVATBgeodejC0Vdfh+I3eUU/fARj2xib8PUlGPimrujK2OvpFUmH4gcXzX2SCibonSk8cOwzOXzSnL+i3jvcnNYeJLl69hM/Gtw0yZoHRL/8ICDvlc9zkVR1rvDdNNfFGUnmibVhCqCslHmJYovi6nZdpp6uYS0WJgPsIrQQzEgsqRpzEh9ZQqJba4XQtNYhm9J3UpByXa0D2d5DKWc5LrnUQEbcPBjeYYUuYquQdMbqzP066de1I1is3h5BdvGc9p8QPOx9Aqfc5q13IO70XIfGIOlvt91tmXd6BWlJdNh7b5nl4+jjtT4fUFUEmJt1DwrV00VbF7b8fOrsElZZbOJDX3gaOT+jHt7sdhBYVkzjAKgyoTDHlrbR7O/WsmBopWzOLaALCkH/JAF+4Trq1WUgIoap7B6XI7C7s9Jn3d2UtllkU0YACDtHOJQXSl2RM84wD4235J8NBpZufm+TtgZtEeIut3cGVz2WqCHtTWgPunB3UkWdhb2LA3HNi1etexSuVpVRRfW1AUUZM X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB9126.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(376002)(396003)(366004)(39860400002)(346002)(451199021)(36756003)(86362001)(2906002)(52116002)(4744005)(478600001)(38100700002)(38350700002)(186003)(1076003)(26005)(2616005)(6506007)(55236004)(5660300002)(8676002)(41300700001)(6666004)(6512007)(44832011)(66946007)(6486002)(66476007)(4326008)(83380400001)(316002)(66556008)(8936002)(6916009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?lRvVmE+qFUkDjHZckEwRfGsoVBy0WEZNaC5LKoaDStDLXj4bJvqQmww2Wraj?= =?us-ascii?Q?Cnp6Ng0LP2apoggGO1lI1uBffdlTCNbbWSemPEzkmLTJe4I6YMo46/BumAGV?= =?us-ascii?Q?PRZKRL0JFIoPSPeq1b3JeRmg6WtxKwrmlwhOZORFkAMQNv+VdqC0QLfXhZNR?= =?us-ascii?Q?mSyjvX1mAaDu1KzCxZrgCkxkTkpeNXq49ivmVtZbvtDpJTTDcMW61+RGcJJW?= =?us-ascii?Q?sRl3tSjGKTsypr/oc+GFNcdiYqQEJBq28Um25o7i4bg2Y2dz2yYQrgC908kV?= =?us-ascii?Q?+E58ynzGjDPjBMK4V+rpCOvSuY040GRbbOD/Ul1jxIAxt/wYIwctn+sDBCXR?= =?us-ascii?Q?7V5TVjUgFgFfvIC13TctstswEeql8BOiUwGa7l538ZNu1oXvGUt65tcBjavB?= =?us-ascii?Q?JXbpP7yylZmYZbML2dwQFcjn9aEEE91CY/mZ4soX+CGpuru/aPI0EBDAlW1O?= =?us-ascii?Q?pzZWrIWlT3r2aFDxeKhS0bCf5v0HuCIveRu7Stw/AaDhVC0WbH9T5IJxxlYZ?= =?us-ascii?Q?TZyvtA0lwg8yfO9N4nqa/uDGGcPDebkAm58D6J16Dz9Azmnh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ZJVcFBiy0VEGKx6ACUpP9F2uVaWfEo?= =?us-ascii?Q?+UT0oJ+ryOyeJfj9UaESwtnjZHkynNoIqDxFBuMVWReTDO0aUAkLDomfHdK+?= =?us-ascii?Q?TDh4haGKik77KvoAGecVCQTpF7KQRgwKJ6uaLNt4?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 834ec679-f3c7-4de4-38ab-08db8d15c989 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB9126.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 13:48:11.9159 (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: ZSD7gJh2eITAQUWwrREYIlwiHjKzLS2UKu/OpMIcb7a12jk1KoeYBBI0N+YnmkpqEv25o+lmYkxV47rwbzSIFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9593 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, URIBL_BLOCKED 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 Fix: As per specs, VOCS is a secondary service; hence it should be included under a primary service VCS. The current number of handles is increased to accommodate the included service --- src/shared/vcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/vcp.c b/src/shared/vcp.c index 0408531b2..263da4c30 100644 --- a/src/shared/vcp.c +++ b/src/shared/vcp.c @@ -998,7 +998,7 @@ static struct bt_vcs *vcs_new(struct gatt_db *db, struct bt_vcp_db *vdb) /* Populate DB with VCS attributes */ bt_uuid16_create(&uuid, VCS_UUID); - vcs->service = gatt_db_add_service(db, &uuid, true, 9); + vcs->service = gatt_db_add_service(db, &uuid, true, 10); gatt_db_service_add_included(vcs->service, vdb->vocs->service); gatt_db_service_set_active(vdb->vocs->service, true); -- 2.34.1