|
From: Alain P. <apa...@us...> - 2002-08-09 07:15:55
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
rfcomm.c 1.134 1.135=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Inform Proc file of deconnection even if on dlci 0.
I added that because otherwise if the remote device uses BlueZ stack, the p=
roc file is not informed of the deconnection.
FIXE ME : I can't get the server channel number that will be disconnected.
The diff of the modified file(s):
--- rfcomm.c 5 Aug 2002 15:38:11 -0000 1.134
+++ rfcomm.c 9 Aug 2002 07:15:53 -0000 1.135
@@ -1243,6 +1243,16 @@
=20
DSYS("RFCOMM control ch disconnected (remotely) [line:%d]\n",=20
rfcomm->line);
+#ifdef CONFIG_BLUETOOTH_PROC
+ /* Fix me : channel 0 is not the right channel. How to get the channel */
+ /* number that will be disconnected ? */
+ new_con_srv_channel =3D tmp_dlci >> 1;
+ new_con_line =3D rfcomm->line;
+ new_con_connected =3D 0; // Disconnection
+ /* Wake up if someone reads the proc file */
+ wake_up_interruptible(&channel_con_wq);=09=09
+#endif
+
send_ua(rfcomm, 0);
} else {
rfcomm->dlci[tmp_dlci].state =3D DISCONNECTED;
|