Changed dcid to cid to make it sound generic as this function is called with both dcid and scid. --- monitor/l2cap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor/l2cap.c b/monitor/l2cap.c index 0b6f752..a09bbbc 100644 --- a/monitor/l2cap.c +++ b/monitor/l2cap.c @@ -421,7 +421,7 @@ static struct { }; static void print_config_options(const struct l2cap_frame *frame, - uint8_t offset, uint16_t dcid, bool response) + uint8_t offset, uint16_t cid, bool response) { const uint8_t *data = frame->data + offset; uint16_t size = frame->size - offset; @@ -496,7 +496,7 @@ static void print_config_options(const struct l2cap_frame *frame, break; case 0x04: if (response) - assign_mode(frame, data[consumed + 2], dcid); + assign_mode(frame, data[consumed + 2], cid); switch (data[consumed + 2]) { case 0x00: -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html