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

Don't set MTU on socket #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Don't set MTU on socket #4

wants to merge 1 commit into from

Conversation

fraca7
Copy link
Contributor

@fraca7 fraca7 commented Sep 13, 2020

I have spent some time debugging this :) I was trying to use the proxy between a PS4 and a Dual Shock. Everything seemed to be fine, except that after the PS4 sent its "big" SDP packet (797 bytes), nothing happened and the outgoing connection to the PS4 on HID PSMs timed out.

Removing the MTU option fixed this. My guess (I'm no BT expert) is that the PS4 did not like a "fragmented" packet that wasn't actually fragmented (since the MTU was 1024, ace_send_data only had to call writev once). Now everything works fine. This is only a problem the first time the proxy is used with a given BTADDR of course, since subsequent connexions do not trigger the PS4 -> DS SDP stuff.

@matlo
Copy link
Owner

matlo commented Sep 22, 2020

Thanks for sharing! Is the acl_send_data hack still necessary after removing the MTU option?

@fraca7
Copy link
Contributor Author

fraca7 commented Sep 22, 2020

Yes it is. On the other hand, removing the acl_send_data hack and setting the MTU doesn't work; write() still errors out with "invalid packet size" or something. So the only combination that works is acl_send_data + default MTU

This was referenced Nov 15, 2020
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

Successfully merging this pull request may close these issues.

2 participants