Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "input/hog: Remove HID device after HoG device disconnects"
This reverts commit d6cafa1. In commit d6cafa1 ("input/hog: Remove HID device after HoG device disconnects"), the bt_hog structure is destroyed in order to fix a bug where the UHID connection is not destroyed. This fix has the cost of increasing reconnection time because every reconnection would need to re-read the report map again. An improvement to this fix is, instead of removing the bt_hog structure, we can just destroy the UHID with UHID_DESTROY event and use the existing bt_hog structure to keep the cache of the report map to avoid re-reading the report map at reconnection.
- Loading branch information