Commit Graph
7 Commits
Author SHA1 Message Date
mohammedrattia a309dd6890 bluetooth: adding a functioning cancel button to the Inquiry Panel
- This is a mandatory feature in HCI Implementation Conformance Statement (ICS).
- The inquiry cancel logic was implemented in Haiku, but wasn't linked to the inquiry panel.

Change-Id: Ic827b0a09979a078bed5b9f99a8541dc319ac449
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11106
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-06-17 17:47:53 +00:00
mohammedrattia 1613469e57 bluetooth: fix "Invalid Arguments" error while pairing from Haiku
- Running the function RemoteDevice::Authenticate() caused "Invalid
Arguments" error because packetType had both ACL and SCO types while
the command parameter require only ACL packet types.
- Thus, bits 5, 6, and 7 should be 0 becuase they're for reserved for
future use.
- This was tested on Haiku to pair with an Android phone.

Change-Id: I24a338a2494bfaaab056abf73f1c946179d6b606
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11105
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-06-13 08:09:27 +00:00
mohammedrattia efce1b942a bluetooth: Add text field to change the friendly name in preferences
- The feature was tested in Haiku Nightly
- Users now can type a new friendly name in settings then the name will be updated in the local devices menu, the device view, and the Bluetooth device

Change-Id: I367512ceba8e798327c7b28fa4ea5a2f63c3f383
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11076
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-06-10 15:42:53 +00:00
mohammedrattia c3bd18778b bluetooth: Adding support for the HCI Read Local Supported Commands command
- The added command is mandatory under the HCI Implementation Conformance Statement (ICS).
- The command was tested through running the bluetooth_server and Bluetooth preferences and tracking the output logs.

Change-Id: I471766233dee5b24b3fe424fe6724e4378b5927b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11075
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-06-10 15:42:53 +00:00
mohammedrattia cc14954ea8 bluetooth: fixing L2capClient testing Jamfile
- L2capClient SimpleTest couldn't compile because "bluetooth" isn't available library its correct name is "libbluetooth.so"
- I testing this on Haiku and it compiled normallly with only this change
- before the edit it was giving me error "-lbluetooth is unknown"

Change-Id: I88e59b0c1867c202d3e9916e5fa3964da22cb9e1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10524
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-03-16 12:25:36 +00:00
mohammedrattia 01d996da1a bluetooth: Refactoring LocateDelegateFromMessage() function
- This is just small refactoring edit. LocateDelegateFromMessage() and LocateLocalDeviceImpl() are doing exactly the same thing except for looking for hci_id in the first one, so I used the second in the first to enhance readability.
- I didn't test this specifically but bluetooth server compiles and do its functions normally.

Change-Id: Ic687f219e407a262155aaceed95176edb5c6ce70
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10525
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-03-16 12:20:08 +00:00
mohammedrattia 2e00deeaa0 MediaPlayer: making Next() in support/FileReadWrite.cpp more efficient
This commit should fix: "TODO: Adding one char at a time is very inefficient!"
- Add data to string in bulk using memchr instead of char-by-char.
- Added some unit tests for FileReadWrite::Next in UnitTester
- Created Jamfile to make libmediaplayertest.so

Change-Id: I2916bd10c142609a8a64273f9b1eac9b98fcb260
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10397
Reviewed-by: Máximo Castañeda <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-03-09 20:42:11 +00:00