Skip to content

Conversation

lylezhu2012
Copy link
Contributor

The MTU of HFP HF or AG is fixed value. It cannot be configured.

Fix the issue to make the MTU of RFCOMM is consistency with the MTU of L2CAP.

The MTU of HFP HF or AG is fixed value. It cannot be configured.

Fix the issue to make the MTU of RFCOMM is consistency with the MTU
of L2CAP.

Signed-off-by: Lyle Zhu <[email protected]>
@zephyrbot zephyrbot added area: Bluetooth area: Bluetooth Classic Bluetooth Classic (BR/EDR) size: XS A PR changing only a single line of code labels Oct 16, 2025
Copy link

*/

#define BT_HFP_MAX_MTU 140
#define BT_HFP_MAX_MTU (BT_L2CAP_RX_MTU - BT_RFCOMM_HDR_MAX_SIZE - BT_RFCOMM_FCS_SIZE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to consider TX direction? maybe it need to MAX(TX, RX)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MTU of rfcomm is same value for TX and RX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Bluetooth Classic Bluetooth Classic (BR/EDR) area: Bluetooth size: XS A PR changing only a single line of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants