HID: Update state to disconnected in virtual unplug
Usecase: 1.Pair and connect DUT with Remote device 2.Disconnect Remote device from DUT (Settings menu) 3.Connect to Remote device from settings menu when Remote will not be advertising. 4.With in 30 secs of connect command, delete the stored link key and then pair and connect again to Remote device from settings menu (when RD is advertising). Expected Result: Remote device should connect successfully. Observed Result: Remote device is shown in paired devices(settings menu)but not connected. Root cause: When virtual unplug happens device state is not cleared properly. So next time when we are trying to connect its going to connected state. Fix: Update the current device state to BTHH_CONN_STATE_CONNECTING to BTIF_HH_DEV_DISCONNECTED when virtual unplug happens. Test: Issue is not seen after above steps Fixes: 74082929 Change-Id: I8a325987ff5eb0a8e4f8708fc7c76b8a9ade6ccf
Loading
Please register or sign in to comment