l2cap: don't call gap_connectable_control if Classic is not used

This commit is contained in:
Matthias Ringwald 2016-10-19 15:39:31 +02:00
parent 09e9d05bab
commit be005ed60d

View File

@ -187,7 +187,9 @@ void l2cap_init(void){
hci_register_acl_packet_handler(&l2cap_acl_handler);
#ifdef ENABLE_CLASSIC
gap_connectable_control(0); // no services yet
#endif
}
void l2cap_register_packet_handler(void (*handler)(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)){