summaryrefslogtreecommitdiff
path: root/emulator
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-02-09 15:41:16 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-02-09 15:43:03 -0800
commitbfc6cf43c83f9b088c13ce727976e4c73245fcee (patch)
tree4f9ba4d1590f8b363c95105167f8954e68586ccb /emulator
parent9f081972cbaf1f1c4802a86aab769e300358dcd9 (diff)
downloadbluez-bfc6cf43c83f9b088c13ce727976e4c73245fcee.tar.gz
bthost: Increase number of credits
This increase the number of credits so bigger packets can be sent by the likes of rfcomm-tester.
Diffstat (limited to 'emulator')
-rw-r--r--emulator/bthost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emulator/bthost.c b/emulator/bthost.c
index bb1219d28..d751e7dd4 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -2322,7 +2322,7 @@ static void rfcomm_pn_recv(struct bthost *bthost, struct btconn *conn,
pn_cmd.ack_timer = pn->ack_timer;
pn_cmd.max_retrans = pn->max_retrans;
pn_cmd.mtu = pn->mtu;
- pn_cmd.credits = pn->credits;
+ pn_cmd.credits = 255;
rfcomm_uih_send(bthost, conn, l2conn, RFCOMM_ADDR(1, 0),
RFCOMM_MCC_TYPE(0, RFCOMM_PN), &pn_cmd, sizeof(pn_cmd));