adapter: Fix using case sensitive strncmp for pattern match addresses
Luiz Augusto von Dentz
maintainerPATCH 1/1 adapter: Fix using case sensitive strncmp for pattern match addresses
From: Luiz Augusto von Dentz <[email protected]>
When matching discovery filter pattern with addresses shall be considered case insensitive since its binary format that can be printed using either upper or lower case for the range a-f/A-F.
--- src/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/adapter.c +1 -1
@@ -7316,7 +7316,7 @@ static bool device_is_discoverable(struct btd_adapter *adapter,return true; } -if (!strncmp (filter->pattern, addr, pattern_len)) { +if (!strncasecmp (filter->pattern, addr, pattern_len)) { *auto_connect = filter->auto_connect;return true; }
Signature · 1 line
2.54.0
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=1106123
---Test result---
Test Summary:
CheckPatch PASS 0.39 seconds GitLint PASS 0.28 seconds BuildEll PASS 21.08 seconds BluezMake PASS 670.27 seconds CheckSmatch PASS 352.24 seconds bluezmakeextell PASS 185.15 seconds IncrementalBuild PASS 665.77 seconds ScanBuild PASS 1030.44 seconds
https://github.com/bluez/bluez/pull/2179
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 8 lines · On Thu, 4 Jun 2026 13:19:33 -0400 you wrote:
From: Luiz Augusto von Dentz <[email protected]>
When matching discovery filter pattern with addresses shall be considered case insensitive since its binary format that can be printed using either upper or lower case for the range a-f/A-F.
--- src/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [BlueZ,v1] adapter: Fix using case sensitive strncmp for pattern match addresses
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=c6bc42d69661
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html