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

Commit 117b269d authored by Casper Bonde's avatar Casper Bonde Committed by Andre Eisenbach
Browse files

Unpair HID device cleanup



When unparing HID devices, the attr_mask was not cleared.
By not clearing this data, some HID device will never be able
to connect again. (E.g. the Apple Magic Mouse)

Bug: 15566403
Change-Id: Ic80909dcecdf48d967c1a936b31554653761fa42
Signed-off-by: default avatarCasper Bonde <c.bonde@samsung.com>
parent aae42a45
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -397,7 +397,7 @@ tHID_STATUS HID_HostRemoveDev ( UINT8 dev_handle )
    hh_cb.devices[dev_handle].in_use = FALSE;
    hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED;
    hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0;

    hh_cb.devices[dev_handle].attr_mask = 0;
    return HID_SUCCESS;
}