L2CAP socket: Stop L2CAP server by ID instead of PSM
* There could be multiple L2CAP socket control blocks with the same PSM * The unique identifier for a L2CAP socket control block should be the unique ID allocated during control block initialization * Use this ID to track L2CAP socket control block instead of PSM ensure that we close the correct socket * Reset GAP handle and L2CAP socket ID to 0 when calling bta_jv_free_l2c_cb() so that disconnected L2CAP control blocks does not count Test: CtsVerifier Bug: 147997447 Bug: 144148429 Change-Id: Ideb428bc73aa0b36b8deb20fac280e44c8fe7db1 (cherry picked from commit 2960d1dd)
Loading
Please register or sign in to comment