Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 13 Limit max MTU to 515 #744

Open
phatpaul opened this issue Nov 18, 2022 · 0 comments
Open

Android 13 Limit max MTU to 515 #744

phatpaul opened this issue Nov 18, 2022 · 0 comments

Comments

@phatpaul
Copy link
Contributor

From: dariuszseweryn/RxAndroidBle#808

since Android 13 the real maximal supported MTU by Android is 515.

Even though in Android source code the GATT_MAX_MTU_SIZE is still set to 517, the data buffer size GAT_MAX_ATTR_LEN is now capped at 512 bytes.

It leads to the situation when Android allows you to negotiate MTU 517, but it drops all the packets with data larger then 512 bytes

Here is the commit where google engineers did this amazing change

This broke my app. I suggest to cap the MTU request to 515, not 517. (or at least add a note to the readme)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant