* [PATCH hcidump 1/2] lib: Correct length name in write assoc struct
@ 2012-07-19 9:08 Andrei Emeltchenko
2012-07-19 9:08 ` [PATCH hcidump 2/2] Add decoding AMP Assoc data in write_remote_amp_assoc Andrei Emeltchenko
2012-07-19 12:16 ` [PATCH hcidump 1/2] lib: Correct length name in write assoc struct Johan Hedberg
0 siblings, 2 replies; 3+ messages in thread
From: Andrei Emeltchenko @ 2012-07-19 9:08 UTC (permalink / raw)
To: linux-bluetooth
From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Correct name from assoc_length to remaining_length.
---
lib/hci.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/hci.h b/lib/hci.h
index b68dbc2..3dbb221 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -1408,7 +1408,7 @@ typedef struct {
typedef struct {
uint8_t handle;
uint16_t length_so_far;
- uint16_t assoc_length;
+ uint16_t remaining_length;
uint8_t fragment[HCI_MAX_NAME_LENGTH];
} __attribute__ ((packed)) write_remote_amp_assoc_cp;
#define WRITE_REMOTE_AMP_ASSOC_CP_SIZE 253
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH hcidump 2/2] Add decoding AMP Assoc data in write_remote_amp_assoc
2012-07-19 9:08 [PATCH hcidump 1/2] lib: Correct length name in write assoc struct Andrei Emeltchenko
@ 2012-07-19 9:08 ` Andrei Emeltchenko
2012-07-19 12:16 ` [PATCH hcidump 1/2] lib: Correct length name in write assoc struct Johan Hedberg
1 sibling, 0 replies; 3+ messages in thread
From: Andrei Emeltchenko @ 2012-07-19 9:08 UTC (permalink / raw)
To: linux-bluetooth
From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Use amp_assoc_dump in write_remote_amp_assoc HCI command
---
parser/hci.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/parser/hci.c b/parser/hci.c
index 5b837e9..6ff30e3 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -1657,6 +1657,17 @@ static inline void le_set_scan_enable_dump(int level, struct frame *frm)
(cp->filter_dup == 0x00 ? "disabled" : "enabled"));
}
+static inline void write_remote_amp_assoc_cmd_dump(int level, struct frame *frm)
+{
+ write_remote_amp_assoc_cp *cp = frm->ptr;
+
+ p_indent(level, frm);
+ printf("handle 0x%2.2x len_so_far %d remaining_len %d\n", cp->handle,
+ cp->length_so_far, cp->remaining_length);
+
+ amp_assoc_dump(level + 1, cp->fragment, frm->len - 5);
+}
+
static inline void command_dump(int level, struct frame *frm)
{
hci_command_hdr *hdr = frm->ptr;
@@ -1934,6 +1945,9 @@ static inline void command_dump(int level, struct frame *frm)
case OCF_READ_CLOCK:
request_clock_dump(level + 1, frm);
return;
+ case OCF_WRITE_REMOTE_AMP_ASSOC:
+ write_remote_amp_assoc_cmd_dump(level + 1, frm);
+ return;
}
break;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH hcidump 1/2] lib: Correct length name in write assoc struct
2012-07-19 9:08 [PATCH hcidump 1/2] lib: Correct length name in write assoc struct Andrei Emeltchenko
2012-07-19 9:08 ` [PATCH hcidump 2/2] Add decoding AMP Assoc data in write_remote_amp_assoc Andrei Emeltchenko
@ 2012-07-19 12:16 ` Johan Hedberg
1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2012-07-19 12:16 UTC (permalink / raw)
To: Andrei Emeltchenko; +Cc: linux-bluetooth
Hi Andrei,
On Thu, Jul 19, 2012, Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
>
> Correct name from assoc_length to remaining_length.
> ---
> lib/hci.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Both patches have been applied. Thanks.
Johan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-19 12:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-19 9:08 [PATCH hcidump 1/2] lib: Correct length name in write assoc struct Andrei Emeltchenko
2012-07-19 9:08 ` [PATCH hcidump 2/2] Add decoding AMP Assoc data in write_remote_amp_assoc Andrei Emeltchenko
2012-07-19 12:16 ` [PATCH hcidump 1/2] lib: Correct length name in write assoc struct Johan Hedberg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.