|
From: Anders J. <and...@us...> - 2001-12-03 11:31:32
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
rfcomm.c 1.129 1.130=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* Decrease length by one when sending creditinformation to keep=20
the l2cap payload constant.
The diff of the modified file(s):
--- rfcomm.c 2001/11/22 14:02:41 1.129
+++ rfcomm.c 2001/12/03 11:31:31 1.130
@@ -1861,6 +1861,11 @@
send_credit =3D 1;
newcredits =3D MAX_CREDITS - rfcomm->dlci[dlci].remote_credits;
rfcomm->dlci[dlci].remote_credits +=3D newcredits;
+ /* Decrease length by one to compensate for the creditfield and
+ keep the l2cap payload size constant */
+ if(len) {
+ len -=3D 1;
+ }
}
=20=09
if (len > SHORT_PAYLOAD_SIZE) {
|