HID: Remove device from database in error case
Usecase: 1) Pair and connect with remote hid device. 2) Disconnect with remote hid device. 3) Unpair DUT from remote hid device. 4) Send connect request from hid device by pressing any button. 5) Try to pair and connect DUT with remote hid device. Expected Result 1) Connection should fail after step 4 if remote device does not initaite pairing. 2) Connection should succeed with remote device and hid device should be added to paired list and hid operations should work properly. Observed Result HID operations from remote device starts working without device added to paired list and UI stucked at pairing. Root Cause: After step 4, device should be removed from database when incoming connection is rejected. Fix: Perform virtual unplug for device when connection request for hid is received from unpaired device. Test: Issue is not reproducible after stress testing with above change Bug: 68176469 Change-Id: I9bc72ccc7a849c0d6acf3230a75e1fe95949b3fe
Loading
Please register or sign in to comment