void l2cap_cleanup(void) { remove_proc_entry("bluetooth/l2cap", NULL); /* Unregister socket and protocol */ if (bluez_sock_unregister(BTPROTO_L2CAP)) BT_ERR("Can't unregister L2CAP socket"); if (hci_unregister_proto(&l2cap_hci_proto)) BT_ERR("Can't unregister L2CAP protocol"); }
void sco_cleanup(void) { int err; remove_proc_entry("bluetooth/sco", NULL); /* Unregister socket, protocol and notifier */ if ((err = bluez_sock_unregister(BTPROTO_SCO))) BT_ERR("Can't unregister SCO socket layer %d", err); if ((err = hci_unregister_proto(&sco_hci_proto))) BT_ERR("Can't unregister SCO protocol %d", err); }