@@ -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;
@@ -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);
@@ -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)
@@ -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;
From: Archie Pusaka <apusaka@chromium.org> "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(-)