aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Dieb Martins <andre.dieb@signove.com>2011-01-31 16:09:31 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-02-01 11:10:39 +0200
commit0766d9adeddb57249388421cf1138e3aace45265 (patch)
tree4597e45efe800a794e854c8dcdeb02706e20d77a
parentb426956e64104a0561d8e6b10e4cc66ffee3cb9b (diff)
downloadbluez-hcidump-0766d9adeddb57249388421cf1138e3aace45265.tar.gz
bluez-hcidump-0766d9adeddb57249388421cf1138e3aace45265.tar.xz
bluez-hcidump-0766d9adeddb57249388421cf1138e3aace45265.zip
Implement dump for event LE Read Remote Used Features Complete
-rw-r--r--parser/hci.c23
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;