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

Skip to content
Commit 21e4fef7 authored by Hemant Gupta's avatar Hemant Gupta Committed by Gerrit - the friendly Code Review server
Browse files

SAP: Close RFCOMM connection immediately if access is denied.

Usecase
1) Pair with carkit and connect HF and A2DP/AVRCP.
2) Carkit sends SAP connect request. Reject this request from DUT.
3) Power off/on carkit.
4) Carkit sends SAP connection request to DUT.

Expectation:
SAP connection is rejected, but carkit can reconnect HF and A2DP/AVRCP

Observation:
Unable to connect any profiles after power cycling carkit.

Root Cause:
Even thought DUT rejects incoming SAP RFCOMM connection request whose access
was previously rejected by DUT, RFCOMM connection is not closed from DUT until
time out of 30 seconds. This prevents carkit from sending new connect request
for previously connected profiles like HFP, A2DP/AVRCP.

Fix:
Close RFCOMM connection in case request is from remote device whose access is
already denied by DUT in previous attempt.

CRs-Fixed: 1064006
Change-Id: I31bd2dfd862f7f69e46b8012924942e08e850c95
parent ee8eae96
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment