From patchwork Mon Mar 20 14:37:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 13181334 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 3881DC7618A for ; Mon, 20 Mar 2023 14:38:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231861AbjCTOiw (ORCPT ); Mon, 20 Mar 2023 10:38:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231866AbjCTOif (ORCPT ); Mon, 20 Mar 2023 10:38:35 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2057.outbound.protection.outlook.com [40.107.21.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3934252A6 for ; Mon, 20 Mar 2023 07:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eRXom/yh7d6I3SCLBpjTcijloEq2Fr1L1QI2WPdKHeDaS5vatCB9r9SPPuUeAA0UoPrIU5gluEDaN+Q9JEdKOD7xDUmQMZrYh+LGaa3rN6gNaTuxAwj4No6B/EwxiRWqJaVuKBYxAUTfr9XMkzEcj4TaJTEVzlYd7dj96aUH2FsErmZ/Ru0WBSrsyhcdMFvoXG2lbq2wBgwfz3BAivoJjmlTLLdVq5aZDlpHOjruaaeSisKMX9kmGULHzxcqrw3PgMDJHrKNPuGHJ0fDrAWPxn+v3aSPDVty7paQ5SO/KXpst1+YdJisXBSS6eK4p9GNQcQV0CEPecg/fsvU6o0afQ== 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=WqmMZmWDKsZfMJW7NK5LGUZesJaZTR2T9i8SorsNixE=; b=DiT3H2dPzKfz8RYFroNfKMWnhn687FnMW0eZpxvWs41HkfNM5xEalzLXgVS9OvKGvfi1jhFv5waJtHaH3a2Th06joTyNO20wHN9Ag6Jx4f5M42qhZdDnjVkdzB0sGrQXPORt6RVLUSydjoRGqO5rkyFjBnyMsEZAj4IAbyUR7wch6jr+oHTKXgGMwIKA4LEAHlytlNPr0cmjrxrGcbbRcw+A/26o4KMLbEhSWBa4bCEyGFZs+vm7T80Se+mqJZR9xNUCd8LjMCMolp2N5RhsiftSxoryawPUBfT6Cy/KVGsC2dk4/bONTHNdVTYNSMuBY31y6Jcw49ioPF+7YRF4zw== 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=WqmMZmWDKsZfMJW7NK5LGUZesJaZTR2T9i8SorsNixE=; b=LqKyrQgH2oPvoSIl/DL4olWCH3KnZhhXwT9skfb2MjQTzCOA5ZUhWggJG7GC9zkYkoOYOPpGSoUGdgED91OJoqRloQH1scq1ToP+ddUSFaF2wXUu44cSSrKz2oyIuSrSjXu53SSO41KjpWQZioEq2Xj60H466bO3uWFK+3QcpfA= 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 VE1PR04MB7231.eurprd04.prod.outlook.com (2603:10a6:800:1a9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 14:37:35 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::e463:bd8b:f1cf:9a98]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::e463:bd8b:f1cf:9a98%8]) with mapi id 15.20.6178.037; Mon, 20 Mar 2023 14:37:35 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: Iulia Tanasescu Subject: [PATCH BlueZ 3/8] emulator/bthost: pass unicast QoS structure to bthost_set_cig_params Date: Mon, 20 Mar 2023 16:37:08 +0200 Message-Id: <20230320143713.25449-4-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230320143713.25449-1-iulia.tanasescu@nxp.com> References: <20230320143713.25449-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AM3PR07CA0147.eurprd07.prod.outlook.com (2603:10a6:207:8::33) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|VE1PR04MB7231:EE_ X-MS-Office365-Filtering-Correlation-Id: 362cdd58-35cc-492f-c5d5-08db2950a5ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7FYITG6NvLOUmPVT8GzzW3aYR7hfe+Dowky+WO5nmEHOLH3vaRlLnOVKHlj2PwTw+Wdt31CbqCPvanVe6aYcB1oQbQcUwvYoXIRe1IfGtSxdM3esJFAGrxaa/lrXz1QD4kM4Gy3ltre7+Nye0UJSlTbQg5mofmVpPMqEDs/8gKAoJwcz6xhJksFfAtmm3M6VHP45umVV8TqT20gghoVotYYJDSnYl8PvR4/q1bZv2sAMI56FPE3/BG/wUu8QV+bMBsqGUctgbG/S4EV6fz/Wtao9LcqWC1skA6IcgVxwR7dp6p/fauPNA+ZS/mrSMNvA3lFM3aQJ0f/BbpCKouruKqK9xxeRW0mHUCQaTCGTPXwR6h83MK/+QL09sCyfhh9kyxuFUxFIFt1PzyNMho1dldGA+oeWHiwk+nMtibU/II1sVxLnoik4+pHXW0Mnq//u1BALXhNDMnKAXMd34cuktesfucgcmq+f2u7VWOXtnE7H2Wiue/cqqJxt3FN2NMvt/3YRZSAQcYgQzfZmSN8wuYS8/NwbiujckZLDRuduznhliIQBXAqV0tQJnmOcH2ywGbu8OZ9TDUTQbZ7C6lbmYi+xRDuM03MDYkXDtLJNwWxO4LvPW/RUHfCtlgFuUx7YyY5ifWnLkBjHnmG2qQT3Gq4jJeSEUMCrheZRogU1VtlyR4EaU+zBlniVyVu6jGaxmgfExzwcrNoAgLm7SHegjg== 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:(13230025)(4636009)(39860400002)(396003)(366004)(136003)(376002)(346002)(451199018)(6506007)(2616005)(1076003)(55236004)(26005)(6512007)(6666004)(6486002)(8676002)(4326008)(83380400001)(52116002)(316002)(186003)(66476007)(478600001)(66946007)(6916009)(8936002)(5660300002)(44832011)(2906002)(41300700001)(38100700002)(38350700002)(86362001)(66556008)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CYqQEBINaqIslmtZKG5bp6qdQLVR27BlX1tyE21UystA4Kh77pgAWsIcbUfJ3IuKv5GSggqTlZbF8p7ywAlpVW2eDXxdHQkyqukfDt4iDaxT/QdeZVhHPPyQ5GvyxVPV1H3XOh/uMeoSu2zcoZeMw/CZqSc+lSe8RaMRH6rgAMHa4RS4K1fdXjc7IsEBWk/vKq40Tr2bbKiE5EtdCJ/pXyQ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P6s9O/piBaOtL+Kkh7PW0ZZH2jmcEVgb2S2Dsjis7STVAvmDdJfNgnjsDq556RVDaBJwWbzvYmBnEsJxqarQs8t2uC9jci/+8EGvbMHyIpuAwolH+vX1eXkGRkDZU+FPY2dLp4lnw7lMqzWZHENm+vnhhT2vApuAny2Dg63B4NQ42zPxEzmpYY92Bp/rxe2EEGmx1jeBI2FaV3zC26U1onqBNk+uePJjKAdpOLR3jUGfQKutlyenU8d5P5TeH//L6jEfQTZ73hKBX84itZDKQAWtL4LbGDEhkWB02ds1tancETGH9pZ/KnZTV+On5GqlOpmdkSqj/9Jg4rRwmyXJyOKK0qtCk6wnTg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 362cdd58-35cc-492f-c5d5-08db2950a5ae X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2023 14:37:35.7511 (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: Z9YsYajn+FvNA6fJ5j0J9k1ybfUKNVIDZQaE2pgWUhrWKGcRLHvyZxgkCTWtxjTZV9SAADRGs/co/MupExiftg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7231 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Update bthost_set_cig_params prototype to use the dedicated unicast QoS structure. --- emulator/bthost.c | 3 ++- emulator/bthost.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/emulator/bthost.c b/emulator/bthost.c index 4671fe17d..80e4a4963 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -5,6 +5,7 @@ * * Copyright (C) 2011-2012 Intel Corporation * Copyright (C) 2004-2010 Marcel Holtmann + * Copyright 2023 NXP * * */ @@ -3171,7 +3172,7 @@ bool bthost_search_ext_adv_addr(struct bthost *bthost, const uint8_t *addr) } void bthost_set_cig_params(struct bthost *bthost, uint8_t cig_id, - uint8_t cis_id, const struct bt_iso_qos *qos) + uint8_t cis_id, const struct bt_iso_unicast_qos *qos) { struct bt_hci_cmd_le_set_cig_params *cp; diff --git a/emulator/bthost.h b/emulator/bthost.h index 92182687f..68aef62be 100644 --- a/emulator/bthost.h +++ b/emulator/bthost.h @@ -5,6 +5,7 @@ * * Copyright (C) 2011-2012 Intel Corporation * Copyright (C) 2004-2010 Marcel Holtmann + * Copyright 2023 NXP * * */ @@ -106,7 +107,7 @@ void bthost_create_big(struct bthost *bthost, uint8_t num_bis); bool bthost_search_ext_adv_addr(struct bthost *bthost, const uint8_t *addr); void bthost_set_cig_params(struct bthost *bthost, uint8_t cig_id, - uint8_t cis_id, const struct bt_iso_qos *qos); + uint8_t cis_id, const struct bt_iso_unicast_qos *qos); void bthost_create_cis(struct bthost *bthost, uint16_t cis_handle, uint16_t acl_handle);