|
From: Anders J. <and...@us...> - 2003-11-05 21:27:46
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
bluetooth.c 1.241 1.242=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added BT_DISCONNECT_ALL IOCTL to disconnect all connections.
The diff of the modified file(s):
--- bluetooth.c 2003/11/05 17:03:14 1.241
+++ bluetooth.c 2003/11/05 19:03:12 1.242
@@ -651,6 +651,20 @@ __bt_ioctl(struct tty_struct *tty, struc
return lp_disconnect(con_str->hci_hdl, 1);
}
=20
+ case BTDISCONNECT_ALL:
+ {
+=09=09
+ /* Disconnect all connections */
+ s32 i;
+ for (i =3D 0 ; i < MAX_NBR_OF_CONNECTIONS ; i ++) {
+ if (hci_ctrl.con[i].state !=3D NOT_CONNECTED) {
+ lp_disconnect(hci_ctrl.con[i].con_hdl, 1);
+ }
+ }
+ return 0;
+ }
+=09
+
case BTWAITFORCONNECTION:
{
s32 line;
|