|
From: Fredrik S. <fre...@us...> - 2002-03-15 14:45:36
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
hci.c 1.196 1.197=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Fixed problem with send task stopping to send data after a client has disco=
nnected ungracefully.
The diff of the modified file(s):
--- hci.c 14 Mar 2002 14:25:03 -0000 1.196
+++ hci.c 15 Mar 2002 14:45:34 -0000 1.197
@@ -949,9 +949,18 @@
hci_ctrl.hc_buf.acl_num +=3D hci_ctrl.acl_buf_count[hci_hdl];
hci_ctrl.acl_buf_count[hci_hdl] =3D 0;
=20
- /* get_bt_buf removes flushed buffers if located in=20
- queue head */
- get_bt_buf();
+#ifdef __KERNEL__
+ /* Trigger the send task to start sending data. */
+ if (buf_count()) {=09=20=20=20=20=20
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)
+ queue_task(&send_data_task, &tq_scheduler);
+#else
+ queue_task(&send_data_task, &tq_immediate);
+ mark_bh(IMMEDIATE_BH);
+#endif
+ }
+#endif
+
}
=20
/* FIXME: No more NBR_OF_COMPLETE_PACKETS will arrive for this
|