Message ID | 20241220020818.478090-1-kieran.r.geary@gmail.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v2] Set `SDP_LARGE_MTU` flag for DS4 Rev. 2 product code | expand |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=919714 ---Test result--- Test Summary: CheckPatch PENDING 0.19 seconds GitLint PENDING 0.19 seconds BuildEll PASS 20.67 seconds BluezMake PASS 1587.12 seconds MakeCheck PASS 13.29 seconds MakeDistcheck PASS 159.70 seconds CheckValgrind PASS 215.45 seconds CheckSmatch PASS 274.95 seconds bluezmakeextell PASS 99.81 seconds IncrementalBuild PENDING 0.26 seconds ScanBuild PASS 848.94 seconds Details ############################## Test: CheckPatch - PENDING Desc: Run checkpatch.pl script Output: ############################## Test: GitLint - PENDING Desc: Run gitlint Output: ############################## Test: IncrementalBuild - PENDING Desc: Incremental build with the patches in the series Output: --- Regards, Linux Bluetooth
diff --git a/src/device.c b/src/device.c index 2b3d19f55..09121e1b9 100644 --- a/src/device.c +++ b/src/device.c @@ -6038,7 +6038,12 @@ static int device_browse_gatt(struct btd_device *device, DBusMessage *msg) static uint16_t get_sdp_flags(struct btd_device *device) { + size_t i; uint16_t vid, pid; + static const uint16_t device_sdp_flags[][3] = { + {0x054c, 0x05c4, SDP_LARGE_MTU}, + {0x054c, 0x09cc, SDP_LARGE_MTU} + }; vid = btd_device_get_vendor(device); pid = btd_device_get_product(device); @@ -6047,8 +6052,11 @@ static uint16_t get_sdp_flags(struct btd_device *device) * results in SDP response being dropped by kernel. Workaround this by * forcing SDP code to use bigger MTU while connecting. */ - if (vid == 0x054c && pid == 0x05c4) - return SDP_LARGE_MTU; + for (i=0; i<G_N_ELEMENTS(device_sdp_flags); i++) { + if (vid == device_sdp_flags[i][0] && + pid == device_sdp_flags[i][1]) + return device_sdp_flags[i][2]; + } if (btd_adapter_ssp_enabled(device->adapter)) return 0;