| 91744cb5 |
Replace att_get_u16() by get_le16() |
Claudio Takahasi |
11 years ago |
13 files, +76, -69 |
| 3f03ab57 |
Replace att_get_uuid16() by get_le16() |
Claudio Takahasi |
11 years ago |
4 files, +15, -8 |
| 0461b9d9 |
Replace att_put_uuid16() by put_le16() |
Claudio Takahasi |
11 years ago |
1 file, +2, -1 |
| 8ba454be |
Replace att_put_u32() by put_le32() |
Claudio Takahasi |
11 years ago |
1 file, +1, -1 |
| a60d6832 |
Replace att_get_u32() by get_le32() |
Claudio Takahasi |
11 years ago |
2 files, +4, -2 |
| 5842f1b6 |
attrib: Use LE helpers defined in src/shared/util.h |
Claudio Takahasi |
11 years ago |
1 file, +13, -13 |
| 60685751 |
unit: Fix 128-bit UUID format
No matter the system, 128-bit UUID must use big endian byte order format
(similar to human-readable format). |
Claudio Takahasi |
11 years ago |
1 file, +5, -4 |
| 0086e34f |
lib: Fix UUID 16/32-bits to 128-bit conversion
16 and 32-bit UUIDs are always created using host order. However,
no matter the system type, 128-bit UUID must use big-endian byte
order format (similar to human-readble format). |
Claudio Takahasi |
11 years ago |
1 file, +18, -16 |
| 05a9545a |
lib: Remove hton128() from bt_uuid_to_string()
bt_uuid_to_string() helper should get the raw UUID value. Caller should
convert the 128-bit UUID before call this helper (if applicable).
bt_uuid_t stores 128-bit UUID using big-endian format (human-readable
format), swapping byte order is not necessary. |
Claudio Takahasi |
11 years ago |
1 file, +1, -4 |
| 3c3d0a8a |
lib: Remove ntoh128() from bt_string_to_uuid128()
No matter the system, 128-bit UUIDs should not be converted to any byte
order when creating the UUID. Conversion to big/little endian should be
performed when transfering the data over-the-air only. bt_uuid_t should
handle 128-bit UUID on big-endian format (human-readable format). |
Claudio Takahasi |
11 years ago |
1 file, +2, -4 |
| 99e7a4bd |
Replace bt_put_be64() by put_be64() |
Claudio Takahasi |
11 years ago |
1 file, +4, -4 |
| c729b661 |
Replace bt_put_be32() by put_be32() |
Claudio Takahasi |
11 years ago |
5 files, +9, -9 |
| a515e9e0 |
Replace bt_put_be16() by put_be16() |
Claudio Takahasi |
11 years ago |
6 files, +26, -26 |
| 7da5efed |
Replace bt_get_be64() by get_be64() |
Claudio Takahasi |
11 years ago |
3 files, +5, -6 |
| fbf2103d |
Replace bt_get_be32() by get_be32() |
Claudio Takahasi |
11 years ago |
7 files, +26, -25 |
| 2c34d922 |
Replace bt_get_be16() by get_be16() |
Claudio Takahasi |
11 years ago |
7 files, +55, -47 |
| 6b7df0c1 |
attrib: Remove unneeded sdp.h header include |
Claudio Takahasi |
11 years ago |
2 files, +0, -2 |
| 26bef422 |
android/bluetooth: Always send known properties in new device event
This fix not updating property if EIR value was same as cached one. |
Szymon Janc |
11 years ago |
1 file, +9, -2 |
| 958f2565 |
tools: Fix coding style checking boolean
This patch fixes tools/gatt-service.c coding style, using !foo instead
of foo == FALSE. |
Claudio Takahasi |
11 years ago |
1 file, +3, -3 |
| b42c1118 |
gatt: Fix coding style when testing pointers
Use !ptr instead of ptr == NULL |
Claudio Takahasi |
11 years ago |
2 files, +9, -9 |
| 0e464ba8 |
gatt: Fix read callback description |
Claudio Takahasi |
11 years ago |
1 file, +13, -7 |
| 0893c165 |
gatt: Minor coding style fix |
Johan Hedberg |
11 years ago |
1 file, +4, -2 |
| a3c32f0f |
tools: Emit property changed when Value changes
This patch extends gatt-service tool, emitting PropertiesChanged for
"Value" when a new value is set. This flow represents the handling of
ATT Write Command or Write Request which is translated to a GDBusProxy
set property. PropertiesChanged will be tracked by the characteristic
GDBusProxy in order to detect "Value" changes. |
Claudio Takahasi |
11 years ago |
1 file, +18, -15 |
| 4987c5bc |
tools: Add setting Value property of gatt-service
This patch extends the gatt-service.c example adding a generic callback
to allow set the characteristic Value. It doesn't check for
characteristic properties yet. |
Alvaro Silva |
11 years ago |
1 file, +32, -1 |
| bbee29a9 |
tools: Add reading Value property of gatt-service
This patch extends the gatt-service.c example adding the callback to
allow reading the Value property. At the moment, it is a generic
callback and it doesn't consider characteristic value property
restrictions. |
Alvaro Silva |
11 years ago |
1 file, +53, -6 |
| 2c71dcff |
tools: Add Alert Level characteristic to gatt-service
This patch registers the Alert Level characteristic object related to
Immediate Alert Service. It adds the characteristic UUID property only. |
Alvaro Silva |
11 years ago |
1 file, +50, -1 |
| 36e19749 |
gatt: Add Write Request handling for GDBusProxy
When the characteristic requires Write Request, the ATT response should
be sent after receiving the reply for the Set method call. |
Claudio Takahasi |
11 years ago |
1 file, +61, -6 |
| f9378270 |
gatt: Add result callback for Write Request
This patch adds a callback to allow the service implementation to inform
the core (ATT layer) the result of the write operation. Used to handle
ATT Write Request procedure, which requires ATT response. |
Claudio Takahasi |
11 years ago |
2 files, +18, -2 |
| 9f30381f |
gatt: Assign write callback for external services
This patch adds the callback for writing the external characteristic
value. Internally, GDBusProxy implementation calls Set method of the
"Value" property. At the moment, potential errors returned by the
external service implementation are being ignored.
The ATT operation (Write Command or Request) is not exposed to the
external service implementation. GATT/GDBusProxy handles possible
DBus errors returned, and notify the core using the callbacks informed.
Write Command doesn't have callback since it doesn't return ATT errors. |
Claudio Takahasi |
11 years ago |
1 file, +26, -1 |
| fb449723 |
gatt: Add write callback to btd_gatt_add_char helper
This patch adds a function callback for write operations. When a remote
device writes to a given attribute, the core calls the specified write
callback informing the attribute server the new characteristic value. |
Claudio Takahasi |
11 years ago |
3 files, +18, -5 |
| 3843e182 |
android/bluetooth: Fix handling of BREDR, LE and dual mode devices
This includes fix for storage format so that dual mode devices are
handled correctly. Unfortunatelly this change is not backward
compatible so wiping out /data/misc/bluetooth/ is recommended.
Also correct device type is passed to bonding commands. For create_bond
we fallback to BDEDR if device is not known. This can happen eg. with
OOB. For cancel_bond and remove_bond we require device to be known.
For dual mode device currently only BREDR type is used.
Storage change details:
Instead of storing bdaddr type of device as "Type", now two variables
are used. Boolean "BREDR" if device supports BREDR. Address type is
stored in "AddressType" only if device supports LE and is either
LE random or LE public type. |
Szymon Janc |
11 years ago |
1 file, +104, -22 |
| 919a803b |
android/bluetooth: Add support for new long term key mgmt event |
Szymon Janc |
11 years ago |
1 file, +86, -2 |
| 809ca0b6 |
android/bluetooth: Add support for loading LTKs |
Szymon Janc |
11 years ago |
1 file, +111, -6 |
| 6890109d |
android/bluetooth: Filter out not discoverable LE devices
Filter out unknown LE devices that do not have Discoverable flag or
Limited Discoverable flag set. |
Szymon Janc |
11 years ago |
1 file, +13, -5 |
| 914c394e |
android/gatt: Restart scan after connection
With this patch we make sure that scan is restarted if it was holded for
connection purpose. |
Lukasz Rymanowski |
11 years ago |
1 file, +6, -0 |
| 0a783f11 |
android/gatt: Fix scan handling
Android has its own ScanQueue which is used for tracking scanning
clients which means we do not have to have this logic internally.
Android will call Scan Off only when his scanQueue is empty. |
Lukasz Rymanowski |
11 years ago |
1 file, +19, -43 |
| f438cac1 |
core: Move EIR flags definitions to eir.h |
Szymon Janc |
11 years ago |
2 files, +9, -9 |
| b7283a1b |
unit/avrcp: Fix possible buffer overflow
Parameter passed needs to be of size number otherwise there is buffer
overflow. |
Andrei Emeltchenko |
11 years ago |
1 file, +6, -1 |
| d5f3308f |
tools: Fix coding style when testing pointer
This patch fixes tools/gatt-service.c coding style, using !ptr instead
of ptr == NULL. |
Claudio Takahasi |
11 years ago |
1 file, +1, -1 |
| dec6e148 |
gatt: Fix coding style checking boolean
Use !foo instead of foo == FALSE |
Claudio Takahasi |
11 years ago |
1 file, +2, -2 |
| bdf07a73 |
gdbus: Add g_dbus_proxy_set_property_array
This patch adds a new gdbus utility function to allow setting a property
of fixed, and non-fixed values array. |
Claudio Takahasi |
11 years ago |
2 files, +92, -0 |
| a1673203 |
gatt: Assign read callback for external services
This patch adds the callback for reading the external characteristic
Value. Internally, GDBusProxy implementation tracks all properties Value
changes consequently Value can be ready directly from the proxy without
additional method calls. |
Claudio Takahasi |
11 years ago |
2 files, +42, -2 |
| da7ac99a |
shared: Add proper IO disconnect handling when using epoll |
Marcel Holtmann |
11 years ago |
1 file, +19, -20 |
| bc959924 |
shared: Add simple function to remove entry from queue |
Marcel Holtmann |
11 years ago |
2 files, +30, -0 |
| 76b9efba |
eir: Use unsigned int for flags in struct eir_data
This adds assumption that if flags field is not present in EIR all
flags are unset:
"The Flags data type shall be included when any of the Flag bits are
non-zero, otherwise the Flags data type may be omitted."
This also fix reporting non-discoverable LE devices as limited
discoverable due to no explicit check for flags == -1 as empty
flags. |
Szymon Janc |
11 years ago |
3 files, +3, -11 |
| 0416bd08 |
android/bluetooth: Constify bdaddr parameter in bt_le_device_found |
Szymon Janc |
11 years ago |
2 files, +4, -3 |
| d8eed451 |
core: Use non-discoverable LE device found events for existing devices
If we have an existing device objects take advantage of new data in
device found events even if the device is not discoverable. If there is
no previous device object ignore the event. |
Johan Hedberg |
11 years ago |
1 file, +18, -9 |
| c19756d3 |
core: Update btd_adapter_find_device to also match the address type
This is necessary to do accurate matching for LE devices. |
Johan Hedberg |
11 years ago |
9 files, +36, -24 |
| f6a403f0 |
core: Add function to look up devices also by their type |
Johan Hedberg |
11 years ago |
2 files, +29, -0 |
| 6f3c1516 |
monitor: Update decoding of Apple manufacturer advertising data |
Marcel Holtmann |
11 years ago |
1 file, +64, -23 |