From: Archie Pusaka <apusaka@xxxxxxxxxxxx> "central" is preferred, as reflected in the BT core spec 5.3. --- tools/parser/csr.c | 4 ++-- tools/parser/ericsson.c | 2 +- tools/parser/lmp.c | 2 +- tools/parser/parser.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/parser/csr.c b/tools/parser/csr.c index c112e138b1..36efc46332 100644 --- a/tools/parser/csr.c +++ b/tools/parser/csr.c @@ -564,13 +564,13 @@ void csr_dump(int level, struct frame *frm) switch (type) { case 0x0f: frm->handle = ((uint8_t *) frm->ptr)[17]; - frm->master = 0; + frm->central = 0; frm->len--; lmp_dump(level, frm); return; case 0x10: frm->handle = ((uint8_t *) frm->ptr)[17]; - frm->master = 1; + frm->central = 1; frm->len--; lmp_dump(level, frm); return; diff --git a/tools/parser/ericsson.c b/tools/parser/ericsson.c index 09b7cec68f..b2807eca59 100644 --- a/tools/parser/ericsson.c +++ b/tools/parser/ericsson.c @@ -29,7 +29,7 @@ void ericsson_dump(int level, struct frame *frm) raw_dump(level, frm); } - frm->master = !(buf[0] & 0x01); + frm->central = !(buf[0] & 0x01); frm->handle = buf[1] | (buf[2] << 8); buf[5] = (buf[5] << 1) | (buf[3] & 0x01); diff --git a/tools/parser/lmp.c b/tools/parser/lmp.c index e99902b0e6..8c5a228c03 100644 --- a/tools/parser/lmp.c +++ b/tools/parser/lmp.c @@ -1141,7 +1141,7 @@ void lmp_dump(int level, struct frame *frm) opcode += tmp << 7; } - printf("LMP(%c): %s(%c): ", frm->master ? 's' : 'r', + printf("LMP(%c): %s(%c): ", frm->central ? 's' : 'r', opcode2str(opcode), tid ? 's' : 'm'); if (opcode > 123) diff --git a/tools/parser/parser.h b/tools/parser/parser.h index c5d9cf9a6d..5f65f16894 100644 --- a/tools/parser/parser.h +++ b/tools/parser/parser.h @@ -26,7 +26,7 @@ struct frame { uint32_t len; uint16_t dev_id; uint8_t in; - uint8_t master; + uint8_t central; uint16_t handle; uint16_t cid; uint16_t num; -- 2.33.0.rc1.237.g0d66db33f3-goog