Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4315267rwo; Tue, 25 Jul 2023 04:23:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlEvlL2E02apjcZBD1CLTeRDNcKFTTi8ZtisHivadiegqiJgHtODqjzedbew19RVdV4LqrAo X-Received: by 2002:a17:906:31da:b0:994:4f08:2bad with SMTP id f26-20020a17090631da00b009944f082badmr11460282ejf.69.1690284201822; Tue, 25 Jul 2023 04:23:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690284201; cv=pass; d=google.com; s=arc-20160816; b=C+U7IJL8e37I6Yf32chWqL0wpT6hJ9+0qQJiMrnomLid4bH8yjAjpFS8JuoITHea4+ Wv+RrEU3EdW/zWh+Oyet6AHOaxsPWCT8foHFeMhsW9bGr22Lu4l83YEoNLngwqi3SwHZ zflH8VkeYxf1zSthBG7ZwG7YgAdnJwTBfLovkEWgM5VVJ2CaXFQShgLcQGQO1KTxntm6 lQh+QZuscQfS1NatkZ+ldp1ivNHbxH9oRBVLB/wU2uZiDs9QsOT4NNPgRLs1xk+rrEWT bw60T9BDyIonpa4bYJACaAqtIwpv1yocUNKf2XRZjc47oz/hlQQWkxdJ9IWa8BxPfYuP eGHw== 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=kMN0ofOl+sZj5q0RLL6t0fC6AwkbZ99WnZfhN9SKEE0=; fh=O7b9e/0FHf0lC36zxfkGCP11r7lJVOROe7GJbtvFS9U=; b=ytT4nL19GzPf/nk9CyPDY4dVu9HHarA6i6Jm186YRnDtydeEw5+Dt2hR5HHrpWv4Im rY8mfqlSu3DllB8BRCmEj7RQDTC26ohpR/iEitr43w/lffitwgNW6BVWLQR11ItpxygG HEfL/LZD9QG4KX8wcJdh3Oe5DM8A+/+BGyajaJZATQB862kd4lIoTJMTIZHj72sW73xx 0rjzRKh5pB9CQnjb0i/P6yajPr2jC0TZJdR9nsGAiwZgrLtwspiL/wk3H3Cv0eF6YQr5 cELq8Xx2aVlPQx+bCYq9Z1mu2LgtpSP1kIYyx7Hnx/NabzR6LaLLPCgXqBb9iiRbvvWb RDzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=EV8R5qzh; 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 a15-20020a170906190f00b009787b15aa51si7904460eje.713.2023.07.25.04.22.41; Tue, 25 Jul 2023 04:23:21 -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=EV8R5qzh; 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 S234431AbjGYLWY (ORCPT + 99 others); Tue, 25 Jul 2023 07:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234447AbjGYLWX (ORCPT ); Tue, 25 Jul 2023 07:22:23 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2058.outbound.protection.outlook.com [40.107.8.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD6F9D for ; Tue, 25 Jul 2023 04:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SUIIAlpvSPV2DoJPzyjsHXLDO6UdFIuhtKxzBibHSkLTpeO6f0oiqZi7RERgRSGCRyYYvNRMzAiCBzgy5+/tq3vtshTkkquFX45NjCsESMlSet0/nXkVagk2B6VAhlCpw/BT1bSlFN9W4lMyuWody3j4G+b4esepi15nFoJ6mux5XgJV79FNxxU5VuZ0fvP5hlB0OEG8+fAgoTWuDmVQvDSyIYoQlR7A0cpPdfYsRCE24PV79kQ4zo+uYytn0nrBQKXkeBYJVV12JXC8aLC6ZhBfh1zqKuhwRUNWek6GgKrRG9uNWV5l5Ce3qaMVf18ItZMiZDV+sIS0qBRtNprj8w== 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=kMN0ofOl+sZj5q0RLL6t0fC6AwkbZ99WnZfhN9SKEE0=; b=nbqd1hW7LB8t9qcpmC0u9YuCzBBGwKexZG5KjffAkYI2oHgKQzQOwHJqN4qz+E2b8IHMXGqVyVfLfAzB7XR8U0nrdhP8nYf3w09Xz4Hoh2GiSp6N/6WqhknQxW6N5JohBYlzsQ8h5If6wmx4EM/dhTXdKdWmoeRAnVOwzRCG3xFoe3BSCGrgYHh8kB4p/3LofW67e7k0kOjJJGynmCFEZGbKLwsLLNICziIJmv2dJqSf+7eICS7vWi84V/2BK2kCvybHZOjnOAj2enwfn2KFXqZy7MJoCUtVgn0t5IAA3e39iUleSwftwdEXvrDUjobc8kH7kLLWWHzF8ibucOCWpg== 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=kMN0ofOl+sZj5q0RLL6t0fC6AwkbZ99WnZfhN9SKEE0=; b=EV8R5qzhTG/Bp9rb7mxX+gu/w3tj867RnibdjHXdAi2SI9xcqXrH+2iW2+P7yFOSPXymUCDVIXMI6rEVItli68qHLy6HJbhAMNoASHVMaW8jOaYk/q0lzT3Mc8My9prsWCelS1rggucX3OEEcxgvW9wCF5fkHX0+jM7cM3YhrP0= 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 DBBPR04MB7580.eurprd04.prod.outlook.com (2603:10a6:10:1f7::9) 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 11:22:18 +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 11:22:18 +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 v3 3/3] shared/vcp: Corrected handle size to accommodate included service Date: Tue, 25 Jul 2023 14:21:26 +0300 Message-Id: <20230725112126.49656-4-nitin.jadhav@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725112126.49656-1-nitin.jadhav@nxp.com> References: <20230725112126.49656-1-nitin.jadhav@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0185.apcprd01.prod.exchangelabs.com (2603:1096:4:189::19) To AS8PR04MB9126.eurprd04.prod.outlook.com (2603:10a6:20b:449::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB9126:EE_|DBBPR04MB7580:EE_ X-MS-Office365-Filtering-Correlation-Id: 89deb0ef-8bb0-458e-c39c-08db8d0167da X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2gX/sKz6h8NOPeENbL8lOa/DqymuRMG8RGuBgWXBDi97Z/HEgOR4a89+DrEuG+KjqnS3k46CxkXFth4LfsnVo/h4wN3JtfERDXCfBp8x5+yMAyLcFuReoVeeQjTsFV49rOXRgCLyNIT7e8mUX0YV1hj9qrOFpJTbtb41iyDpgPAG/u4rPvmjMhstIOu2edvXDG/fB6/YwLJLe3PuZ4u0EdWL15bJCHtzAX1wY7mILLsZbAbOdCOE7Uto39JdO0yuemoA78WF/+MRq6tKEWhWMQbWbGTFLnA6EMH6grdk6dREjGj11hRiwynHfDIii4nMTz7dOzNCX1dDLcpuvVIK1R2hiFrd2ozT1OxqLSvzaqFR/t0BxwCfFFyzBF2H0Aax2nv7zcLELMNYNLnZe8S7G2P2ybkPHHEGdUg7d60OXV4J7a+xpKjox1Bz2ktStU/B3WunXj1eAgVenNBJUA+M0o5e536Gopc0Q+1oY2judyzsw0e6YdXQu6Cg8g9xweJkSdezV0GXCBrcHkRFtOdhcjucTc6uGMRDYH9L6AcBl3MGJawE9cQb7u2QeGlgppTTPatfsYgDF56fNqzdfEcLOU1KGl/0EKWsh6UbTFnh9F+n7rl7xlRXsEKtcinKdFGa 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)(376002)(366004)(396003)(39860400002)(346002)(136003)(451199021)(86362001)(36756003)(2906002)(52116002)(4744005)(478600001)(38100700002)(38350700002)(26005)(186003)(2616005)(1076003)(6506007)(55236004)(41300700001)(44832011)(5660300002)(6486002)(8676002)(6666004)(6512007)(8936002)(66556008)(66476007)(316002)(66946007)(4326008)(83380400001)(6916009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ECw5szsJt6MYyQEpKL5v1iOjKP7Oa/riP9w9PoxP92F1FtX6WbW7f07+Hyui?= =?us-ascii?Q?iB1vVLvNb5SrnbHmI/rzXiSMTkqebbPySLCP7WM22LrMQKZxnL+3yHwPcfqD?= =?us-ascii?Q?HmjFCc4nYty2ZAVwRwXEN3zOuutsmmB40QYSfvXHNW9EtclTZ27FLrd3Uk0v?= =?us-ascii?Q?9KfRLsaTWej+edi+lOJIVBmdgqXzSehL3DFjc3KkoHfYTAuOnb1snRhTy5XZ?= =?us-ascii?Q?cFRjve/tmdcaVgOT7yh/uYX6ZHHcvnejYEMJ0Cg/oMDHc0r54fnBAuJua6n4?= =?us-ascii?Q?B34MB2uLlCKeMs2Kn653sIm3YQHZW2ce3wjFoW4SDVC/10HDllSHmJmcLNQ4?= =?us-ascii?Q?VIMfXVOPcTEXwlY60YCIuE2tHCmppuFD/Tp3DPFMSouAcf83YJJOyuN23geb?= =?us-ascii?Q?jZjciwQGh7WE/F+oEz6IhqLDT0FybKm70b8mLhrBa1eJ6GRfFtliBAwoxDRl?= =?us-ascii?Q?ukwQFRnmuQnmK/NI73E8HLVKnhIgX2UAp0v81PuoydntMBNYzpMzcEouo416?= =?us-ascii?Q?yN189pAhqDWzO146/MyanO+Q6QVtUTlTobbwdUKT56sOF14Slzj9fowMHRby?= =?us-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LWWAr4bBorIFNckQf2zdv?= =?us-ascii?Q?tEetNiQjd86M8/sAayV/J3e9h6/XcFCiiYgAdlcYkWfm8718cZfXMzpXE++r?= =?us-ascii?Q?qKvLpQ6c7VxB2hbcSS2HI4XMinurp8A53pda/tuf?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89deb0ef-8bb0-458e-c39c-08db8d0167da X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB9126.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 11:22:18.2856 (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: qIBYMOISFzu0GKYkY74L+Fb/X2IgJGyX5manLr7g0RxbvQ6N90fMQKO0tGi5plAcVDWdWTSJJ5dk1dbUuXOMQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7580 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 secondary services hence it should be included under a primary service VCS. Current number of handles should be increase 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