From 827ced601492012208b772af46bb699edb4418e1 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 21 Apr 2016 16:17:03 +0200 Subject: [PATCH] hfp/hsp: don't call l2cap_init --- src/classic/hfp_ag.c | 2 -- src/classic/hfp_hf.c | 2 -- src/classic/hsp_hs.c | 3 --- 3 files changed, 7 deletions(-) diff --git a/src/classic/hfp_ag.c b/src/classic/hfp_ag.c index 023107ce0..6cc14e70e 100644 --- a/src/classic/hfp_ag.c +++ b/src/classic/hfp_ag.c @@ -2052,8 +2052,6 @@ void hfp_ag_init(uint16_t rfcomm_channel_nr){ hci_event_callback_registration.callback = &packet_handler; hci_add_event_handler(&hci_event_callback_registration); - l2cap_init(); - rfcomm_register_service(&packet_handler, rfcomm_channel_nr, 0xffff); hfp_ag_response_and_hold_active = 0; diff --git a/src/classic/hfp_hf.c b/src/classic/hfp_hf.c index 2aca9eb4b..878a3292b 100644 --- a/src/classic/hfp_hf.c +++ b/src/classic/hfp_hf.c @@ -1083,8 +1083,6 @@ void hfp_hf_init(uint16_t rfcomm_channel_nr){ hci_event_callback_registration.callback = &packet_handler; hci_add_event_handler(&hci_event_callback_registration); - l2cap_init(); - rfcomm_register_service(packet_handler, rfcomm_channel_nr, 0xffff); hfp_set_packet_handler_for_rfcomm_connections(&packet_handler); diff --git a/src/classic/hsp_hs.c b/src/classic/hsp_hs.c index 4ee77e2b8..ab1f2813e 100644 --- a/src/classic/hsp_hs.c +++ b/src/classic/hsp_hs.c @@ -276,9 +276,6 @@ void hsp_hs_init(uint8_t rfcomm_channel_nr){ hci_event_callback_registration.callback = &packet_handler; hci_add_event_handler(&hci_event_callback_registration); - // init L2CAP - l2cap_init(); - rfcomm_init(); rfcomm_register_service(packet_handler, rfcomm_channel_nr, 0xffff); // reserved channel, mtu limited by l2cap