Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3140362 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Increase RFC_MCB_RELEASE_INACT_TIMER to 20 seconds

Say we first connect to a remote device using RFCOMM.  The remote
decides to bond with us before we establish a channel.  This could take
longer than 2 seconds.

In the past we handle this before we create L2cap channel.  However,
re-bond can happen during RFCOMM session, because security requirement
might have changed.

Test: cert/run
Tag: #gd-refactor
Bug: 141555841
Change-Id: I7d5618b37d5414b10abe7497c3ea6819fb802db7
parent 46c6bbdb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -258,7 +258,7 @@ extern std::unordered_map<uint32_t /* scn */, uint16_t /* sec_mask */>
#define RFC_MCB_INIT_INACT_TIMER 60 /* in seconds */

/* Timer running on the multiplexor channel after last DLCI is released */
#define RFC_MCB_RELEASE_INACT_TIMER 2 /* in seconds */
#define RFC_MCB_RELEASE_INACT_TIMER 20 /* in seconds */

#ifdef RFCOMM_PRECALC_FCS