BT HAL H4 write flow
If to send type and data separately for one HCI packet, it will cause two system call context switch to kernel space, which will introduce software overhead on data path. Plus, if vendor does not use pure UART interface, it causes different data behavior on BUS and may not adapt to all vendors as legacy HAL did. Considering backward-compatibility, to use writev to send type and data together once as legacy BT HAL did. Bug: 63391357 Test: H4 UTTest, BT VTS test, Bluetooth on/off Change-Id: I2d93085fe0c01b48d0e3729a3fa85b5b27335b2c (cherry picked from commit 92afd74a)
Loading
Please register or sign in to comment