|
From: Peter K. <pk...@us...> - 2001-10-02 13:40:58
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
hci.c 1.182 1.183=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Disable interrupts while update_ncp() is updating the counters.
The diff of the modified file(s):
--- hci.c 2001/10/02 11:00:25 1.182
+++ hci.c 2001/10/02 13:40:56 1.183
@@ -716,7 +716,13 @@
update_ncp(u8 nbr_of_hdl, u8 *pkt)
{
s32 i;
+#ifdef __KERNEL__
+ unsigned long flags;
=20
+ save_flags(flags);
+ cli();
+#endif
+
D_REC(__FUNCTION__ ": acl_num before: %d\n", hci_ctrl.hc_buf.acl_num);
=20=09
/* FIXME */
@@ -744,12 +750,15 @@
queue_task(&send_data_task, &tq_immediate);
mark_bh(IMMEDIATE_BH);
#endif
-
}
+
#ifdef USE_NCPTIMER
hw.acl_num_count +=3D hci_ctrl.hc_buf.acl_num;
#endif
+
bt_feedstack();
+
+ restore_flags(flags);
#else
if (buf_count())
send_acl_data_task();
@@ -1048,11 +1057,9 @@
break;
=20
case NBR_OF_COMPLETED_PACKETS:=20
-
D_CMD(__FUNCTION__ ": NUMBER_OF_COMPLETED_PACKETS\n");
=20
update_ncp(buf[0], buf + 1);
-
break;
=20
case MODE_CHANGE:
|