From 19dcf2f6418950ae68da046281e4a022817f9d4e Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 15 Mar 2016 16:02:57 +0100 Subject: [PATCH] migration: remove connection from l2cap create service and channel --- tool/conversion_to_v1.0/convert.cocci | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tool/conversion_to_v1.0/convert.cocci b/tool/conversion_to_v1.0/convert.cocci index 7d530efd3..59011fae2 100644 --- a/tool/conversion_to_v1.0/convert.cocci +++ b/tool/conversion_to_v1.0/convert.cocci @@ -168,6 +168,19 @@ expression E1, E2; - sdp_register_service(E1, E2) + sdp_register_service(E2) +// L2CAP - just drop connection param +@@ +expression E1, E2, E3, E4, E5; +@@ +- l2cap_create_channel(E1, E2, E3, E4, E5) ++ l2cap_create_channel(E2, E3, E4, E5) + +@@ +expression E1, E2, E3, E4, E5; +@@ +- l2cap_create_service(E1, E2, E3, E4, E5) ++ l2cap_create_service(E2, E3, E4, E5) + // RFCOMM // track calls to rfcomm_register_packet_handler @@ -222,7 +235,7 @@ expression E1, E2, E3, E4; + hsp_hs_create_sdp_record(E1, 0x10002, E2, E3, E4) @@ -expression E1, E2, E3, E4; +expression E1, E2, E3; @@ - hsp_ag_create_sdp_record(E1, E2, E3) + // MIGRATION: using 0x10002 as Service Record Handle. Please fix if using multiple services