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

Skip to content
Commit e084f239 authored by Yun-Hao Chung's avatar Yun-Hao Chung
Browse files

Floss: Increase the cleanup timeout on ChromeOS

When the kernel executes close() on a HCI socket, it calls a
vendor-specific shutdown routine. Some vendors implement this routine by
first performing an HCI reset and waiting up to 10 seconds. This delay
means that stopping the HciHalHost module requires a timeout of at least
10 seconds to prevent premature cleanup due to the timeout, which could
lead to an unexpected sequence of operations and ultimately a crash.

This patch increases the cleanup timeout to 11 seconds on ChromeOS and
enabling other platforms to set their own value.

Bug: 365936141
Tag: #floss
Test: mmm packages/modules/Bluetooth
Test: modify the kernel to create a delay in close socket and observe no
crash on disabling the adapter on ChromeOS.
Flag: EXEMPT, Floss-only changes

Change-Id: I81bfa791e594f1b1c747bb9bcfa32dd2e281f822
parent 535a6b8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment