summaryrefslogtreecommitdiff
path: root/monitor/sdp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-07-31 13:58:29 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-07-31 15:35:04 +0300
commit3b8d6b19e647501133124c02350d85e5c29525cb (patch)
tree012f71acc933d4bfbef69cd15d4b04e712452694 /monitor/sdp.c
parent5f432163133e64d248cc0ec209c08f5c8a2af1b5 (diff)
downloadbluez-3b8d6b19e647501133124c02350d85e5c29525cb.tar.gz
monitor: Add mode and channel to struct l2cap_frame
This make it simpler to pass it around.
Diffstat (limited to 'monitor/sdp.c')
-rw-r--r--monitor/sdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor/sdp.c b/monitor/sdp.c
index 8acc8bd2d..1b904eee1 100644
--- a/monitor/sdp.c
+++ b/monitor/sdp.c
@@ -686,7 +686,7 @@ static const struct sdp_data sdp_table[] = {
{ }
};
-void sdp_packet(const struct l2cap_frame *frame, uint16_t channel)
+void sdp_packet(const struct l2cap_frame *frame)
{
uint8_t pdu;
uint16_t tid, plen;
@@ -737,7 +737,7 @@ void sdp_packet(const struct l2cap_frame *frame, uint16_t channel)
print_indent(6, pdu_color, "SDP: ", pdu_str, COLOR_OFF,
" (0x%2.2x) tid %d len %d", pdu, tid, plen);
- tid_info = get_tid(tid, channel);
+ tid_info = get_tid(tid, frame->chan);
if (!sdp_data || !sdp_data->func || !tid_info) {
packet_hexdump(frame->data + 5, frame->size - 5);