| 3b211282 |
sdpd-request: Fix build errors due to unaligned memory access
This fix number of build errors on ARM similar to one below.
CC src/bluetooth-sdpd-request.o
src/sdpd-request.c: In function extra_des:
src/sdpd-request.c:181:5: error: cast increases required alignment
of targettype [-Werror=cast-align] |
Szymon Janc |
13 years ago |
1 file, +33, -29 |
| f25ca542 |
adaptername: Refactor handle_inotify_cb
Refactor handle_inotify_cb to avoid unaligned memory access.
Instead of reading whole events buffer and cast to event struct when
iterating over it, read data directly to struct inotify_event one
event at time.
This fix following build error on ARM.
CC plugins/bluetoothd-adaptername.o
plugins/adaptername.c: In function handle_inotify_cb:
plugins/adaptername.c:244:34: error: cast increases required alignment
of target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [plugins/bluetoothd-adaptername.o] Error 1
make: *** [all] Error 2 |
Szymon Janc |
13 years ago |
1 file, +24, -24 |
| 26f55a40 |
sap: Fix compilation errors due to unaligned memory access
This fix following build errors on ARM.
CC profiles/sap/bluetoothd-server.o
profiles/sap/server.c: In function connect_req:
profiles/sap/server.c:317:8: error: cast increases required alignment
of targettype [-Werror=cast-align]
profiles/sap/server.c: In function sap_connect_rsp:
profiles/sap/server.c:676:16: error: cast increases required alignment
of target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [profiles/sap/bluetoothd-server.o] Error 1
make: *** [all] Error 2 |
Szymon Janc |
13 years ago |
1 file, +3, -6 |
| f00bdeb2 |
scotest: Fix compilation errors due to unaligned memory access
This fix following build errors on ARM.
CC test/scotest.o
test/scotest.c: In function send_mode:
test/scotest.c:272:4: error: cast increases required alignment of
target type [-Werror=cast-align]
test/scotest.c:273:4: error: cast increases required alignment of
target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [test/scotest.o] Error 1
make: *** [all] Error 2 |
Szymon Janc |
13 years ago |
1 file, +3, -2 |
| 9139fc4e |
rctest: Fix compilation errors due to unaligned memory access
This fix following build errors on ARM.
CC test/rctest.o
test/rctest.c: In function do_send:
test/rctest.c:539:4: error: cast increases required alignment of target
type [-Werror=cast-align]
test/rctest.c:540:4: error: cast increases required alignment of target
type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [test/rctest.o] Error 1 |
Szymon Janc |
13 years ago |
1 file, +3, -2 |
| 89cb3354 |
l2test: Fix compilation errors due to unaligned memory access
This fix following build errors on ARM.
CC test/l2test.o
test/l2test.c: In function recv_mode:
test/l2test.c:826:9: error: cast increases required alignment of target
type [-Werror=cast-align]
test/l2test.c:834:8: error: cast increases required alignment of target
type [-Werror=cast-align]
test/l2test.c: In function do_send:
test/l2test.c:893:4: error: cast increases required alignment of target
type [-Werror=cast-align]
test/l2test.c:894:4: error: cast increases required alignment of target
type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [test/l2test.o] Error 1 |
Szymon Janc |
13 years ago |
1 file, +5, -4 |
| 4ac4e80f |
sdp: Use bt_get_be* helpers instead of bt_get_unaligned
This fix number of compilation errors on ARM similar to one below.
lib/sdp.c: In function 'sdp_uuid_extract':
lib/sdp.c:1019:27: error: cast increases required alignment
of target type [-Werror=cast-align]
lib/sdp.c:1019:27: error: cast increases required alignment
of target type [-Werror=cast-align]
lib/sdp.c:1026:27: error: cast increases required alignment
of target type [-Werror=cast-align]
lib/sdp.c:1026:27: error: cast increases required alignment
of target type [-Werror=cast-align] |
Szymon Janc |
13 years ago |
1 file, +18, -18 |
| eb4ef469 |
sdp: Fix compilation errors due to unaligned memory access
This fix number of build errors on ARM similar to one below.
lib/sdp.c: In function 'sdp_set_seq_len':
lib/sdp.c:625:3: error: cast increases required alignment of target
type [-Werror=cast-align]
lib/sdp.c:625:3: error: cast increases required alignment of target
type [-Werror=cast-align]
lib/sdp.c:631:3: error: cast increases required alignment of target
type [-Werror=cast-align]
lib/sdp.c:631:3: error: cast increases required alignment of target
type [-Werror=cast-align] |
Szymon Janc |
13 years ago |
1 file, +15, -15 |
| 51df8587 |
lib: Add unaligned put helper functions
These functions are similar to bt_get_* functions. |
Szymon Janc |
13 years ago |
1 file, +61, -0 |
| 546fee06 |
mgmt: Implement support for Passkey Notify event |
Johan Hedberg |
13 years ago |
4 files, +49, -3 |
| 97b93087 |
core: Refactor authentication handling |
Johan Hedberg |
13 years ago |
3 files, +119, -42 |
| 60706d6e |
simple-agent: Update to match correct DisplayPasskey API |
Johan Hedberg |
13 years ago |
1 file, +4, -3 |
| a70760e8 |
mgmt-api: Add event for passkey notification |
Johan Hedberg |
13 years ago |
1 file, +11, -0 |
| e86fe268 |
agent: Add missing parameter to DisplayPasskey |
Johan Hedberg |
13 years ago |
2 files, +3, -2 |
| 6a394b2c |
agent-api: DisplayPasskey: D-Bus doesn't have a uint8 type |
Johan Hedberg |
13 years ago |
1 file, +2, -1 |
| 1ab43f63 |
audio: Handle error in gateway_request_stream()
gateway_request_stream() should check if the call to get_records() has
succeeded, and fail otherwise. |
Mikel Astiz |
13 years ago |
1 file, +4, -3 |
| 5d143ba3 |
audio: Fix gateway in connecting state forever
If bt_search_service() fails the state should be left unchanged.
Otherwise the gateway state is set forever to GATEWAY_STATE_CONNECTING.
This issue can be easily reproduced if a connection attempt is done
very soon after startup. |
Mikel Astiz |
13 years ago |
1 file, +10, -3 |
| 10f9408e |
audio: Remove unused function
gateway_config_stream() is now unnecessary after the removal of the unix
socket support in commit 1d9d0527cfb6d96a976ede56bd43a2bc16bb5f21. |
Mikel Astiz |
13 years ago |
2 files, +0, -18 |
| bc54a084 |
audio: Fix gateway probe always failing
Commit 813b674bce1aab009e7f2d14d1825f603330563d introduced this trivial
bug which causes the failure of the gateway profile probe. |
Mikel Astiz |
13 years ago |
1 file, +1, -1 |
| 57c6030c |
core: Fix calling profile remove callbacks
The device_remove callback for profiles applies to the entire profile so
it should only be used if no matching UUIDs are left or the device
object itself is removed. |
Johan Hedberg |
13 years ago |
1 file, +15, -18 |
| 67a00c87 |
input: Use bt_uuid_strcmp where is makes sense |
Johan Hedberg |
13 years ago |
1 file, +1, -2 |
| beecc514 |
gatt: Translate Characteristic names
Translate Characteristic UUID's to name. This list was taken from
the Bluetooth SIG developer site. |
Chen Ganir |
13 years ago |
1 file, +72, -3 |
| 49d22d01 |
core: Use bt_uuid_strcmp where it makes sense |
Johan Hedberg |
13 years ago |
1 file, +6, -9 |
| 6de2e1e1 |
gatt: Fix whitespace in UUID definitions |
Andrzej Kaczmarek |
13 years ago |
1 file, +2, -2 |
| a28c4994 |
thermometer: Fix indentation |
Andrzej Kaczmarek |
13 years ago |
1 file, +1, -1 |
| 86a2831d |
network: Fix bnep setup failure handle bug
This patch initializes rsp varialbe again for the remain failure
procedure. |
Chan-yeol Park |
13 years ago |
1 file, +3, -1 |
| 7e583e88 |
core: replace NULL by dbus invalid arguments
This patch replaces NULL with dbus invalid arguments return if dbus
method call gets invalid arguments from the peer. This will avoid dbus
peer coommander's infinite wait. |
Chan-yeol Park |
13 years ago |
7 files, +14, -14 |
| 0dc67c07 |
audio: Remove unused enum values |
Chan-yeol Park |
13 years ago |
1 file, +0, -17 |
| 869ba2f8 |
audio: remove redundant Media API option
BlueZ supports only Media API. So option handler's are useless. |
Chan-yeol Park |
13 years ago |
3 files, +3, -13 |
| d5f658b5 |
proximity: Remove unnecessary check for GATT enabled
Proximity plugin won't be loaded if GATT is disabled so there's no point
in checking this once more when adapter is probed. |
Andrzej Kaczmarek |
13 years ago |
1 file, +0, -5 |
| 2aea5183 |
proximity: Simplify DBusConnection object usage
DBusConnection object can be obtained at any time by
get_dbus_connection() call so there is no need to pass and store it
across profile code. Also there's no need to ref/unref this object as by
design it will live for entire lifetime of plugin. |
Andrzej Kaczmarek |
13 years ago |
10 files, +29, -68 |
| 522791fb |
proximity: Remove unused definitions |
Andrzej Kaczmarek |
13 years ago |
2 files, +0, -4 |
| 4c71137c |
proximity: Change adapter driver function names
The probe and remove suffixes better describe what these functions
actually do. |
Andrzej Kaczmarek |
13 years ago |
3 files, +6, -6 |
| 813b674b |
Add profile abstraction (replaces btd_device drivers)
This patch removes the btd_device_driver concept and replaces it with
btd_profile. The new construct also contains the necessary parts for
adapter drivers, so btd_adapter_driver is only needed for non-profile
related functionality (most of which is in plugins/*).
The main purpose of this new construct is to facilitate a centralized
connection creation mechanism for profiles, ultimately enabling the
addition of a Device.Connect() method instead of requiring a UI to know
to call e.g. Input.Connect or Audio.Connect.
This feature will also be extended to externally implemented profiles
once the internal implementation gets more stable, such as OBEX (obexd)
and HFP (oFono). The new D-Bus interface will also partially restore
functionality which was previously available through the Serial
interface. |
Johan Hedberg |
13 years ago |
49 files, +516, -536 |
| c7c092bc |
uuid: Add string-format UUID comparison helper function |
Johan Hedberg |
13 years ago |
2 files, +7, -0 |
| 6d73ad9a |
core: Add D-Bus disconnect function for easier detection |
Johan Hedberg |
13 years ago |
1 file, +8, -0 |
| 76a712da |
TODO: Add entry for converting storage format for BlueZ 5 |
Johan Hedberg |
13 years ago |
1 file, +3, -0 |
| 4db85fe8 |
rctest: fix typo
recevied -> received |
Gustavo Padovan |
13 years ago |
1 file, +1, -1 |
| b6436234 |
btio: Remove BT_IO_L2ERTM
There's no need to have a separate type for ERTM. The mode parameter
takes care of most needs and if necessary a "reliable" parameter can be
added later which will map to SOCK_STREAM usage. |
Johan Hedberg |
13 years ago |
1 file, +6, -43 |
| 5dd93fc1 |
Update code base to use the new BtIO API |
Johan Hedberg |
13 years ago |
21 files, +109, -144 |
| a0d52c9a |
btio: Make BtIOType private
Since the socket type can be inferred from the socket itself or from the
PSM/Channel/CID/etc parameters provided to listen() and connect() it
doesn't make sense to expose this in the BtIO API. |
Johan Hedberg |
13 years ago |
2 files, +119, -35 |
| 84bc0d0e |
btio: Remove unneeded L2CAP raw socket support
Now that pairing is done through mgmt this support is no-longer needed. |
Johan Hedberg |
13 years ago |
2 files, +0, -25 |
| a9b567a9 |
sdp: Fix error reporting in sdp_service_search_attr_req
This function reports error code via errno not return value. |
Szymon Janc |
13 years ago |
1 file, +2, -1 |
| 0dc3e3e3 |
sdp: Fix redundant NULL checks in convert_raw_attr_to_xml_func
Param data can't be NULL and was already dereferenced before check. |
Szymon Janc |
13 years ago |
1 file, +1, -4 |
| 7e561c91 |
TODO: Add a few more items for BlueZ 5 |
Johan Hedberg |
13 years ago |
1 file, +6, -0 |
| 985d8ac3 |
core: Fix not updating storage when mode changes
With mgmt interface bluetoothd is no longer requesting mode change for
things like DiscoverableTimeout as the kernel will do that automatically
when the timer expires. |
Chan-yeol Park |
13 years ago |
1 file, +5, -9 |
| 78889501 |
Fix trivial coding style issues on pointer declarations and casting
Avoid using C++ style pointer declarations like "char* ptr", as most
BlueZ code uses "char *ptr". |
Anderson Lizardo |
13 years ago |
9 files, +29, -25 |
| 58d04ad2 |
input: Add Nordic Semiconductor copyright |
Claudio Takahasi |
13 years ago |
3 files, +3, -0 |
| 15784659 |
core: Fix memory leak
When ignoring a LE device that is not in a discoverable state 'alias'
is leaking. |
Vinicius Costa Gomes |
13 years ago |
1 file, +3, -1 |
| 94f6e7b1 |
input: Fix signedness issue on POSIX error code usage
By convention, error variables containing POSIX error code (usually
called "err") are negative. This commit fixes a couple of places where
positive values are expected. |
Anderson Lizardo |
13 years ago |
2 files, +2, -2 |