Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp660395ybl; Wed, 8 Jan 2020 03:50:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxwVnw8KbQSbZcKymArqxhE8V8tFn7JEt7HIuS6dhIXh8GlKZ+lD/asvNt3KGszyp+AXWNt X-Received: by 2002:aca:1b19:: with SMTP id b25mr2768683oib.24.1578484210585; Wed, 08 Jan 2020 03:50:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578484210; cv=none; d=google.com; s=arc-20160816; b=mqp6gO3K2699BqRbgBtkyKWhcVZIxTcBxMEGoBUC146pJzDTZxBDvys0eD9uv6yDvh BbtVGZR+2XHt2wyUdE8gpjJvJa++eNLTZ5QZveRIwv3vzzFljXhmbEaxLsP3JCC+enD9 PLO+HJ/pfY05i8a/pMYGlxSUFhUK9Mi1KvrG5GZdF58xtGJEYFmyXyLwIpjRuGKqUFw8 nmlCaFHrEYyEIPc586SakbCnKWiTURjxBZhIZKJ8aP4QkrE0a5k8tI6JHLAoHBIArhbm zaehGOSiOsCwT+jLqCDfEC7oTk8jZ9Qy1VrMIVmyhbOyMAJbYmucqb8MSuXIPHwtog53 GtPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NUG4NUiKisBmNULT+8vMhSDE5VM67LNm/WmLM8NesA0=; b=BBrgInB1n2nCY3IfTuCFvOkKiW1W5mEtq8K8bNbk4MolcD+jEpkYTHeM97koEwUxxW Xjq/G9+Owq5Q9vbSQyPziKn0APjgpg7xK+oigvAjcXqnNGDv/j+F7blGqjM1+8npkWg3 chbsy4x8q8wxmxDaXi2o+sYVRsxQeE6zROOPBmwsAABAa6tbZfUQU/AWHSwtAzTSn4LX o4NU6kwtqRlgbfoAxu+dqWprjLJo+jxB8uQa3wEvR3hSo+VSEk9fAq7a26IT7ZDieImD N2Sac2kj4GTdRdRy/0nMbXoT4wxhi+dO/dSuP7hznX0FKd44zM9/LO0TgVtSsk3RW2Q3 R3SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=kH9WlUMF; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si1612966oin.93.2020.01.08.03.49.59; Wed, 08 Jan 2020 03:50:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=kH9WlUMF; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727212AbgAHLsK (ORCPT + 99 others); Wed, 8 Jan 2020 06:48:10 -0500 Received: from mail-lj1-f178.google.com ([209.85.208.178]:39451 "EHLO mail-lj1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbgAHLsJ (ORCPT ); Wed, 8 Jan 2020 06:48:09 -0500 Received: by mail-lj1-f178.google.com with SMTP id l2so2991393lja.6 for ; Wed, 08 Jan 2020 03:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NUG4NUiKisBmNULT+8vMhSDE5VM67LNm/WmLM8NesA0=; b=kH9WlUMF+uHoILn6c6AAJuL0Y9GhqyJPXPnAMSB2ljRqt2ru2Z80u2QVt3LfQ0wnV2 LzJpuTmtGctzW+o89U622PlkSWFcATiOlZGIscljLHj4zquHKbhGnAM+oSXgQnCjiCyx C5gwZ4YsPaid5zzeefYNc7T+B06VpPGiyVTse0EMPkCEafum9T6jWpEcl/Z46kTKypuH E4+snptiSbEdT9YvLdmYSD5uyX422W+1+SaLX+gbKXLy+NBDt1n5WcgT6abJU25Z1+KY hpVEXLJe6iI5Mx384OHHtUVqE1nYEJCuusvCrkJPRGzObNt39fD7G9vO3YJTxZ3a0ICu HJAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NUG4NUiKisBmNULT+8vMhSDE5VM67LNm/WmLM8NesA0=; b=bUxgSU8PA2/d6qSDcEYTdb+yxwB1uSWYAMPPwCYzSGfT7pojH5Obh8grKBCRp31pUF nNgig1Am6t8LKgTPg5N7dzmeecZe43oxae0p3fhNhz+2C525djidzgsCoHgq9mlBw1r5 oTXsaRf6ZEcBX9/B5TFJlzDjid5ImQ2dvmEj4uQqw9q4HU5Uic9Bs/gGle0E6fAMyHpV jPNh1/3Iy6R/B4Sfgd6RoMVhKpdXY6xqew+jmUisrMzFt25/9AaysOHhdDVDkhT62w7c njFuati22DQidZnqF4xcR6OjIatIs3kz6ltsIJb45Z52eQJ18y2304QT6FU60HvVL8rO caTQ== X-Gm-Message-State: APjAAAXf0qyZuV+fk1zL/vubb9g+UQXC8y3EVhmVfW5YcOzbAG0Lfv2K +lzhkt+1jMjqULRFhmr44R846xeWpF4= X-Received: by 2002:a2e:580c:: with SMTP id m12mr2702311ljb.252.1578484085781; Wed, 08 Jan 2020 03:48:05 -0800 (PST) Received: from tp480.int.codecoup.pl ([95.143.243.62]) by smtp.gmail.com with ESMTPSA id e17sm1130645ljg.101.2020.01.08.03.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 03:48:05 -0800 (PST) From: Szymon Czapracki To: linux-bluetooth@vger.kernel.org Cc: Szymon Czapracki Subject: [PATCH v2 8/8] monitor: Decode LE CTE Request Failed event Date: Wed, 8 Jan 2020 12:47:52 +0100 Message-Id: <20200108114752.133076-8-szymon.czapracki@codecoup.pl> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200108114752.133076-1-szymon.czapracki@codecoup.pl> References: <20200108114752.133076-1-szymon.czapracki@codecoup.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --- monitor/bt.h | 6 ++++++ monitor/packet.c | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/monitor/bt.h b/monitor/bt.h index 1859dfb21..b31e6c5c5 100644 --- a/monitor/bt.h +++ b/monitor/bt.h @@ -3177,6 +3177,12 @@ struct bt_hci_evt_le_chan_select_alg { uint8_t algorithm; } __attribute__ ((packed)); +#define BT_HCI_EVT_LE_CTE_REQUEST_FAILED 0x17 +struct bt_hci_evt_le_cte_request_failed { + uint8_t status; + uint16_t handle; +} __attribute__ ((packed)); + #define BT_HCI_EVT_LE_PER_ADV_SYNC_TRANS_REC 0x18 struct bt_hci_evt_le_per_adv_sync_trans_rec { uint8_t status; diff --git a/monitor/packet.c b/monitor/packet.c index 9d22dfc15..415a6abfa 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -9886,6 +9886,14 @@ static void le_chan_select_alg_evt(const void *data, uint8_t size) print_field("Algorithm: %s (0x%2.2x)", str, evt->algorithm); } +static void le_cte_request_failed_evt(const void *data, uint8_t size) +{ + const struct bt_hci_evt_le_cte_request_failed *evt = data; + + print_status(evt->status); + print_field("Connection handle: %d", evt->handle); +} + static void le_per_adv_sync_trans_rec_evt(const void *data, uint8_t size) { const struct bt_hci_evt_le_per_adv_sync_trans_rec *evt = data; @@ -9987,6 +9995,8 @@ static const struct subevent_data le_meta_event_table[] = { le_scan_req_received_evt, 8, true}, { 0x14, "LE Channel Selection Algorithm", le_chan_select_alg_evt, 3, true}, + { 0x17, "LE CTE Request Failed", + le_cte_request_failed_evt, 3, true}, { 0x18, "LE Periodic Advertising Sync Transfer Received", le_per_adv_sync_trans_rec_evt, 19, true}, -- 2.24.1