* [PATCH 1/2] Implement dump for event LE Read Remote Used Features Complete.
@ 2011-01-31 19:09 Andre Dieb Martins
2011-01-31 19:09 ` [PATCH 2/2] Add missing const to utility functions Andre Dieb Martins
2011-02-01 9:12 ` [PATCH 1/2] Implement dump for event LE Read Remote Used Features Complete Johan Hedberg
0 siblings, 2 replies; 3+ messages in thread
From: Andre Dieb Martins @ 2011-01-31 19:09 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Andre Dieb Martins
From: André Dieb Martins <andre.dieb@signove.com>
---
parser/hci.c | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/parser/hci.c b/parser/hci.c
index 6f9e2a3..8b45376 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -3546,6 +3546,26 @@ static inline void evt_le_conn_update_complete_dump(int level,
btohs(uevt->supervision_timeout) * 10.0);
}
+static inline void evt_le_read_remote_used_features_complete_dump(int level, struct frame *frm)
+{
+ int i;
+ evt_le_read_remote_used_features_complete *revt = frm->ptr;
+
+ p_indent(level, frm);
+ printf("status 0x%2.2x handle %d\n", revt->status, btohs(revt->handle));
+
+ if (revt->status > 0) {
+ p_indent(level, frm);
+ printf("Error: %s\n", status2str(revt->status));
+ } else {
+ p_indent(level, frm);
+ printf("Features:");
+ for (i = 0; i < 8; i++)
+ printf(" 0x%2.2x", revt->features[i]);
+ printf("\n");
+ }
+}
+
static inline void le_meta_ev_dump(int level, struct frame *frm)
{
evt_le_meta_event *mevt = frm->ptr;
@@ -3569,6 +3589,9 @@ static inline void le_meta_ev_dump(int level, struct frame *frm)
case EVT_LE_CONN_UPDATE_COMPLETE:
evt_le_conn_update_complete_dump(level + 1, frm);
break;
+ case EVT_LE_READ_REMOTE_USED_FEATURES_COMPLETE:
+ evt_le_read_remote_used_features_complete_dump(level + 1, frm);
+ break;
default:
raw_dump(level, frm);
break;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] Add missing const to utility functions.
2011-01-31 19:09 [PATCH 1/2] Implement dump for event LE Read Remote Used Features Complete Andre Dieb Martins
@ 2011-01-31 19:09 ` Andre Dieb Martins
2011-02-01 9:12 ` [PATCH 1/2] Implement dump for event LE Read Remote Used Features Complete Johan Hedberg
1 sibling, 0 replies; 3+ messages in thread
From: Andre Dieb Martins @ 2011-01-31 19:09 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Andre Dieb Martins
From: André Dieb Martins <andre.dieb@signove.com>
---
parser/hci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/parser/hci.c b/parser/hci.c
index 8b45376..183fa66 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -704,7 +704,7 @@ static char *authentication2str(uint8_t authentication)
}
}
-static char *eventmask2str(uint8_t mask[8])
+static char *eventmask2str(const uint8_t mask[8])
{
int i;
@@ -733,7 +733,7 @@ static char *eventmask2str(uint8_t mask[8])
}
}
-static char *lefeatures2str(uint8_t features[8])
+static char *lefeatures2str(const uint8_t features[8])
{
if (features[0] & 0x01)
return "Link Layer supports LE Encryption";
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] Implement dump for event LE Read Remote Used Features Complete.
2011-01-31 19:09 [PATCH 1/2] Implement dump for event LE Read Remote Used Features Complete Andre Dieb Martins
2011-01-31 19:09 ` [PATCH 2/2] Add missing const to utility functions Andre Dieb Martins
@ 2011-02-01 9:12 ` Johan Hedberg
1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2011-02-01 9:12 UTC (permalink / raw)
To: Andre Dieb Martins; +Cc: linux-bluetooth
Hi André
On Mon, Jan 31, 2011, Andre Dieb Martins wrote:
> ---
> parser/hci.c | 23 +++++++++++++++++++++++
> 1 files changed, 23 insertions(+), 0 deletions(-)
Both patches have been pushed upstream. Thanks.
Johan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-01 9:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-31 19:09 [PATCH 1/2] Implement dump for event LE Read Remote Used Features Complete Andre Dieb Martins
2011-01-31 19:09 ` [PATCH 2/2] Add missing const to utility functions Andre Dieb Martins
2011-02-01 9:12 ` [PATCH 1/2] Implement dump for event LE Read Remote Used Features Complete Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox