Example #1
0
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");
}
Example #2
0
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);
}
Example #3
0
int bnep_sock_cleanup(void)
{
	if (bluez_sock_unregister(BTPROTO_BNEP))
		BT_ERR("Can't unregister BNEP socket");
	return 0;
}