|
From: Mats F. <ma...@us...> - 2001-07-06 06:46:56
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
rfcomm.c 1.114 1.115=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Increased the amount of credits
The diff of the modified file(s):
--- rfcomm.c 2001/06/19 06:13:01 1.114
+++ rfcomm.c 2001/07/06 06:46:54 1.115
@@ -132,7 +132,8 @@
=20
#define RFCOMM_MAX_HDR_SIZE 5
=20
-#define MAX_CREDITS 6
+#define MAX_CREDITS 20
+#define START_CREDITS 7
#define MIN_CREDITS 3
=20
#define DEF_RFCOMM_MTU 127
@@ -1608,11 +1609,11 @@
credit =3D pn_pkt->credit_flow;
nbrof_credits =3D pn_pkt->credits;=09=09=09
if (credit) {
- D_CTRL(FNC"Using credit flow control, initiating credits are %d on dlc=
i %d\n", nbrof_credits, tmp_dlci);
+ DSYS(FNC"Using credit flow control, initiating credits are %d on dlci =
%d\n", nbrof_credits, tmp_dlci);
rfcomm->credit_flow =3D TRUE;
rfcomm->dlci[tmp_dlci].local_credits =3D nbrof_credits;
D_CTRL(FNC"Local credits:%d\n", rfcomm->dlci[tmp_dlci].local_credits);=
=20
- rfcomm->dlci[tmp_dlci].remote_credits =3D MAX_CREDITS;
+ rfcomm->dlci[tmp_dlci].remote_credits =3D START_CREDITS;
D_CTRL(FNC"Remote credits: %d\n",rfcomm->dlci[tmp_dlci].remote_credits=
);
send_pn_msg(rfcomm, pn_pkt->prior, frame_size
, credit ^ 1, MAX_CREDITS,=20
|