mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
hfp/hsp: don't call l2cap_init
This commit is contained in:
parent
3cef842b65
commit
827ced6014
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user