From 2e137ec0320702d49d1780954aef6d6090b14100 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 12 Aug 2013 20:30:19 -0700 Subject: [PATCH] monitor: Fix structures for LE long term key request commands --- monitor/bt.h | 4 ++-- monitor/packet.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/monitor/bt.h b/monitor/bt.h index 7f37bdd30..58ca25518 100644 --- a/monitor/bt.h +++ b/monitor/bt.h @@ -990,7 +990,7 @@ struct bt_hci_cmd_le_ltk_req_reply { uint16_t handle; uint8_t ltk[16]; } __attribute__ ((packed)); -struct bt_hci_cmd_le_ltk_req_reply_rsp { +struct bt_hci_rsp_le_ltk_req_reply { uint8_t status; uint16_t handle; } __attribute__ ((packed)); @@ -999,7 +999,7 @@ struct bt_hci_cmd_le_ltk_req_reply_rsp { struct bt_hci_cmd_le_ltk_req_neg_reply { uint16_t handle; } __attribute__ ((packed)); -struct bt_hci_cmd_le_ltk_req_neg_reply_rsp { +struct bt_hci_rsp_le_ltk_req_neg_reply { uint8_t status; uint16_t handle; } __attribute__ ((packed)); diff --git a/monitor/packet.c b/monitor/packet.c index 25c32ebd5..00643fa68 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -3817,7 +3817,7 @@ static void le_ltk_req_reply(const void *data, uint8_t size) static void le_ltk_req_reply_rsp(const void *data, uint8_t size) { - const struct bt_hci_cmd_le_ltk_req_reply_rsp *rsp = data; + const struct bt_hci_rsp_le_ltk_req_reply *rsp = data; print_status(rsp->status); print_handle(rsp->handle); @@ -3832,7 +3832,7 @@ static void le_ltk_req_neg_reply(const void *data, uint8_t size) static void le_ltk_req_neg_reply_rsp(const void *data, uint8_t size) { - const struct bt_hci_cmd_le_ltk_req_neg_reply_rsp *rsp = data; + const struct bt_hci_rsp_le_ltk_req_neg_reply *rsp = data; print_status(rsp->status); print_handle(rsp->handle); -- 2.47.3