Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1550988rwb; Wed, 26 Jul 2023 14:32:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0t5e1fN937utt8441BtZiQbaCn4Dp6IkH+RwN1W/8PdS6On68UAg8fLpiu0M0ZZysfKRC X-Received: by 2002:a19:505a:0:b0:4fe:df7:bcf1 with SMTP id z26-20020a19505a000000b004fe0df7bcf1mr205073lfj.57.1690407145072; Wed, 26 Jul 2023 14:32:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690407145; cv=pass; d=google.com; s=arc-20160816; b=r8ZwkvtGNiytTPqdOVvDGNBwuVfZ0rjMzH47uxpVVlPV/3Hhv29ddSxK672idtW4Oi u723nakdeqYmg37uQCU/sLL77dZNAWIg1SU/CsgOqkFz0v8XCxUiLiUEF9CH0IT2G6of KSrxQfJDWLZnK0c+P547uDC9X+Wd+0udv0bVGeXZ1fR2dX0+yvRbgyUtGj5dhB6x1YAp ZIamOjvZr1Xh8kckHJViiKrjgP32q5ZzwZScOa/75H/2UfT2HdHNmkTz9do+oFiVhcvZ B9tRHMKFvKuJVb2MIhud9ptWFynXqgPA2OgmNJcinRfw01ZmGseAio/KwTf1yzLM7s7S dxrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LDRbDxhcmxM6TQltf1ltJPpCenY7pRNdxtB1Zgs1JwE=; fh=raBgKoRsHCwQLc6ReOhmOoEQ+DtSaNc74fugaHBwryI=; b=u89uxtyJKfwwsdcQwbEwW1e5HZkTrJX4fhbBI95wVMmJJq3dK4xHvJz+YxMP7dWiXw NkYdUkrVzGRQner2nln+V/XtGoZiqBl4Kmofh5btKvosgny7UYgFaAjl56LjXX7gLY4y jXiaCHlqK+o/s5J9k74xCinL0jOwDNej2IdfdlGnvZ7VkiNaA80gM7xOuXiLUvVbJk0M /cL0nI41S3tFLpNIr7nM9ddU4HUO4MEx+H+m+6M8YC0py/rRPUUusVBiExxKODqbEM3j HeH3C6kJ32UzGl6TsiIIlfYtGN3l+/QVeU3jgsg0LJPSEsxi5jtSisjnNnTUkBmrMesf vwsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=jWM72t0v; arc=pass (i=1); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k20-20020a1709061c1400b0099845f657a8si9848616ejg.616.2023.07.26.14.31.55; Wed, 26 Jul 2023 14:32:25 -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=@iki.fi header.s=lahtoruutu header.b=jWM72t0v; arc=pass (i=1); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbjGZVZi (ORCPT + 99 others); Wed, 26 Jul 2023 17:25:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231345AbjGZVZf (ORCPT ); Wed, 26 Jul 2023 17:25:35 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AABCE2685 for ; Wed, 26 Jul 2023 14:25:34 -0700 (PDT) Received: from monolith.lan (91-152-120-101.elisa-laajakaista.fi [91.152.120.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pav) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4RB6Pd0n89z49QC8; Thu, 27 Jul 2023 00:25:25 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1690406725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LDRbDxhcmxM6TQltf1ltJPpCenY7pRNdxtB1Zgs1JwE=; b=jWM72t0vUKmsvJxbHzklGFVXRhVIzlnUf868If+/G4NNaHWgFynNtjdFnA0s4vaSbuqNiI GZZ2YCcZsggM4Xp406Qm+0da1FWaTvbR3NaEqdyOvo9Vn4iedec9VtDMLL4kFIwQtnI1ug e8yU9ej5Xwyj2g2G3ugIOrLMlErOhwXNU62+xaSwMCO+4X4PcgZ3If0AuJgoqRTIgF2U89 rKKWz+KwcJ4/qJsxEQtkcLi94MrYuOX5XRv/2QasXIfJrOo/52lyBsTTpZjMZjh3Kdf+WS 5hyDI5Q+/U/d7M/ARi8SBW6vxOCuwaE0KCZMnGBneUR8p4Es6IFXHGIaKTCaEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1690406725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LDRbDxhcmxM6TQltf1ltJPpCenY7pRNdxtB1Zgs1JwE=; b=GzTJPQmHFph8hElQpaocHBgbGYjJ7FfImNA7GLMPCZxs9wDCdI/anQDBS1FZFsmCaxlgR9 k4Ywd7Vp3MI0LvSPyLQiR2XnqUyvQQ5Zpcm+I2LhIsHAADxWIN24oKxWKTQSdBM7neInQ9 pvtvQ+I7EaQfUY6p8Tu8NL0uYGq8rtdpVCjQi5SAh/n3ONERlTGn8qh8G/yENOBC/mlz4a RbAeSFZux9ZDYSYAvEHvWSUDUI9Dv6YhK2YGk5uOIQQb9lH4Oxa+M86HxNS/N6Ol4HKe8B 8j+P1faHmsUex4HdclR0fUepyPAWbAWWCtXNhFx1ny/KnumUF+x0x6Ph33TbvA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav smtp.mailfrom=pav@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1690406725; a=rsa-sha256; cv=none; b=a6jYeC0LLhfx8xTmBXEfCUF77C8mviuKriP5b9kvYSqzr4QJRrrR0zWNiDpWXFVkpwsqzj RWUWpF5OBTgJupDxP411q3uSa35/PegbbZ8ukDadQ/BpzmeOAo1UJPqbitL8ls9/e7jK91 7oM5tZx3wqldH2JTk1d0aF2BfatQTg2OBvyZCWRV+4LZ57WlCLIVMRyT/Yt2NChPGTsAOp 6zV5NW0gRarImpaWAv52D06ge35a9qwDsH6X7TO9mj+ngcfByNPbTmFoBKOxwpZD/RNr/t JqMV3voRJexX345L1nxLJFoQcKwSzV/uLK9PXchZTl8bFiYYHpbxKv5X8/kocA== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ 5/5] btdev: fix Command Status command opcodes for Setup Sync Conn Date: Thu, 27 Jul 2023 00:25:19 +0300 Message-ID: <0cba38cb79fc6d940af00d599be6d9d72ef86020.1690405564.git.pav@iki.fi> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, 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 The command opcode should be the CMD, not EVT. --- emulator/btdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 0c75e71c0..2483a35c5 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -2681,7 +2681,7 @@ static int cmd_enhanced_setup_sync_conn(struct btdev *dev, const void *data, if (cmd->tx_coding_format[0] > 5) status = BT_HCI_ERR_INVALID_PARAMETERS; - cmd_status(dev, status, BT_HCI_EVT_SYNC_CONN_COMPLETE); + cmd_status(dev, status, BT_HCI_CMD_ENHANCED_SETUP_SYNC_CONN); return 0; } @@ -2727,7 +2727,7 @@ done: static int cmd_setup_sync_conn(struct btdev *dev, const void *data, uint8_t len) { - cmd_status(dev, BT_HCI_ERR_SUCCESS, BT_HCI_EVT_SYNC_CONN_COMPLETE); + cmd_status(dev, BT_HCI_ERR_SUCCESS, BT_HCI_CMD_SETUP_SYNC_CONN); return 0; } -- 2.41.0