diff options
author | Andre Eisenbach <eisenbach@google.com> | 2015-09-17 15:16:20 -0700 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-09-17 15:32:52 -0700 |
commit | ef7d8cb8b012e77c9b0c596c5ad4b0ffb7e5dde9 (patch) | |
tree | c22fb15081ec9974e435d07fc4e9fb0c5d2db41a /btif/include | |
parent | 03ca189412e3f8ec7c5963339af172c9276b3b9b (diff) | |
download | android_system_bt-ef7d8cb8b012e77c9b0c596c5ad4b0ffb7e5dde9.tar.gz android_system_bt-ef7d8cb8b012e77c9b0c596c5ad4b0ffb7e5dde9.tar.bz2 android_system_bt-ef7d8cb8b012e77c9b0c596c5ad4b0ffb7e5dde9.zip |
Change UHID socket to be non-blocking
On some platforms, the logs indicate that the BTU task is stalled by
UHID driver when writing the HID descriptor to the kernel. This patch
converts the UHID socket to non-blocking to avoid stalling the main
BTU task.
Bug: 23978964
Change-Id: I5a7a3e106fb2c967d68f077faedcd4fe62bbd912
Diffstat (limited to 'btif/include')
-rw-r--r-- | btif/include/btif_hh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/btif/include/btif_hh.h b/btif/include/btif_hh.h index dc34d653c..1088c53bf 100644 --- a/btif/include/btif_hh.h +++ b/btif/include/btif_hh.h @@ -64,6 +64,7 @@ typedef struct UINT8 sub_class; UINT8 app_id; int fd; + BOOLEAN ready_for_data; pthread_t hh_poll_thread_id; UINT8 hh_keep_polling; BOOLEAN vup_timer_active; |