| b809cae2 |
network: Fix warning when removing connection timeout handler
The source should only be removed once as it can cause the following
warning:
GLib-CRITICAL **: g_source_remove: assertion `tag > 0' failed |
Luiz Augusto von Dentz |
13 years ago |
1 file, +4, -2 |
| 889b97e6 |
network: Remove sessions from server on DBus call Unregister |
Tomasz Bursztyka |
13 years ago |
1 file, +2, -0 |
| 2eb17e7e |
network: Release session's interface from bridge when unregistering |
Tomasz Bursztyka |
13 years ago |
1 file, +21, -3 |
| 885c7a81 |
network: Add helper function to remove an interface from a bridge |
Tomasz Bursztyka |
13 years ago |
2 files, +30, -0 |
| 8e06bb2e |
network: Keep track of session's interface name in server |
Tomasz Bursztyka |
13 years ago |
1 file, +3, -0 |
| bd9810f2 |
network: Kill underlying session's connection before freeing it |
Tomasz Bursztyka |
13 years ago |
1 file, +2, -0 |
| 1ea2ce1c |
gatt: GAP and GATT services are mandatory
This patch fixes potential segmentation fault if the remote doesn't
support GAP and GATT services. |
Claudio Takahasi |
13 years ago |
1 file, +7, -2 |
| 8ff63e27 |
gatt: Don't raise error if declaration was found
This patch avoids raising errors to the upper layer if at least one
characteristic declaration has been found. According to the Core SPEC
Characteristic declarations shall be read without authentication or
authorization. |
Claudio Takahasi |
13 years ago |
1 file, +4, -4 |
| 221fd83c |
gatt: Return not found if characteritics is empty
This patch changes the behaviour of Discover All Characteristics and
Discover Characteristics by UUID returning <<Attribute Not Found>> when
Characteristic list that matches the defined criteria is empty. This
scenario can happen when the GATT client avoids extra iteraction with
the remote attribute server if the last received handle(or handle + 1)
is equal to the end handle of the primary service. |
Claudio Takahasi |
13 years ago |
1 file, +2, -1 |
| ec57950f |
att: Replace ATT magic number
This patch replaces the magic number used in Find Information Response
Format field by a proper declared constant. |
Claudio Takahasi |
13 years ago |
3 files, +3, -3 |
| fc6f87d8 |
att: Add Find Info Response Format constants
This patch adds constants declarations for Find Information Response
Format field. The format means that information data constains a list
of 1 or more handles with their 16-bit or 128-bit Bluetooth UUIDs |
Claudio Takahasi |
13 years ago |
1 file, +4, -0 |
| 3fa81cb3 |
gatt: Add MTU exchange procedure
GATT Exchange MTU is a procedure defined by the Generic Attribute
Profile, it is not related to the remote GATT primary service. However,
gatt plugin is the most suitable place to manage this procedure. |
Claudio Takahasi |
13 years ago |
1 file, +36, -0 |
| e4404afb |
core: Rename services_changed to uuids_changed
This patch renames the services_changed function to uuids_changed to
avoid misinterpretation. "Service Changed" expression is used to refer
to a GATT operation used to notify clients that a given attribute range
in the GATT server is not valid anymore. |
Claudio Takahasi |
13 years ago |
1 file, +4, -4 |
| 31706d23 |
gatt: Primary service interval may not change
This patch address the "Service Changed" scenario on which the start
and end Primary Service attribute handle interval doesn't change. |
Claudio Takahasi |
13 years ago |
4 files, +20, -2 |
| 8bea9470 |
core: Add updating GATT services
This patch adds the functions to manage Profiles added, and removed
after a Discover All Primary Services procedure. |
Claudio Takahasi |
13 years ago |
1 file, +56, -8 |
| caa49d96 |
core: Rename update_services
This patch renames update_services functions to avoid clashing with GATT
based services. |
Claudio Takahasi |
13 years ago |
1 file, +3, -3 |
| 450a336b |
gatt: Start Discover Services when handle changes
This patch starts the Discover All Primary services when a Service
Changed indication is received or the Service Changed characteristic
value is read. |
Claudio Takahasi |
13 years ago |
2 files, +18, -8 |
| 11918a5f |
gatt: Confirm the indication received
This patch adds the ATT command reply for the Service Changed
indication value received. |
Claudio Takahasi |
13 years ago |
1 file, +8, -1 |
| 08b8ddb1 |
gatt: Enable indication for Service Changed
This patch enables indication of the Service Changed characteristic
setting the indication bit in the Client Characteristic Configuration
descriptor. |
Claudio Takahasi |
13 years ago |
1 file, +23, -0 |
| 00de5d71 |
gatt: Add Service Changed CCC discovery
This patch adds the Client Characteristic discovery of the Service
Changed Changed characteristic. |
Claudio Takahasi |
13 years ago |
1 file, +102, -5 |
| 875af3ad |
gatt: Add Service Changed read
This patch implements the Service Changed GATT charateristic value read.
Force reading the value is necessary while Service Changed value handle
is not stored. Indication can be lost since it is the first data sent
from the GATT server when the connection is established, and the client
may not be filtering the ATT indications. |
Claudio Takahasi |
13 years ago |
1 file, +33, -0 |
| ebd43ccf |
gatt: Map Appearance value 0x0000 to "unknown"
According to Bluetooth SIG Assigned numbers, Appearance characteristic
value 0x0000 is designated to "unknown". |
Claudio Takahasi |
13 years ago |
1 file, +2, -0 |
| 61cd50a0 |
core: Add storing Appearance
This patch stores the Appearance characteristic value read from the
remote GAP service. |
Claudio Takahasi |
13 years ago |
1 file, +5, -0 |
| 4de0cd85 |
core: PropertyChanged signal for Icon/Appearance
This patch emits the PropertyChanged signal in the Device hierarchy when
the remote device Appearance characteristic is read. In general
Appearance is a static value, if the device doesn't expose the
Appearance value in the advertising data, the GAP plugin should read the
value using GATT read procedure. |
Claudio Takahasi |
13 years ago |
1 file, +5, -0 |
| 231d3e3e |
core: PropertyChanged signal for Icon/class
This patch emits the PropertyChanged signal in the Device hierarchy when
the remote device class is updated. |
Claudio Takahasi |
13 years ago |
1 file, +5, -0 |
| c544f4c1 |
gatt: Emit PropertyChanged for Appearance
Emit PropertyChanged changed signal in the Device hierarchy when the
Appearance characteristic value is read from the remote GAP service. |
Claudio Takahasi |
13 years ago |
3 files, +12, -0 |
| c12ff370 |
core: Remove Appearance characteristic read
This patch removes the Appearance characteristic read from the core.
Appearance characteristic is now being read by the GAP/GATT plugin. |
Claudio Takahasi |
13 years ago |
1 file, +1, -55 |
| e4f2f1a1 |
gatt: Add read Appearance characteristic
This patch registers the ATTIO callbacks, and triggers the Appearance
characteristic read by UUID when the ATT connection is established (if
appearance value is not found in the storage). |
Claudio Takahasi |
13 years ago |
1 file, +69, -0 |
| 5f6c0dc2 |
core: Add device method to access "Appearance"
This patch adds a new device method to access the Appearance GAP
characteristic value stored previously as result of the discovery
procedure or GATT characteristic read procedure. |
Claudio Takahasi |
13 years ago |
2 files, +20, -0 |
| e6bba789 |
gatt: Add GAP/GATT device registration
This patch adds GAP/GATT device driver probe function and the skeleton
of the register GAP/GATT device function. |
Claudio Takahasi |
13 years ago |
4 files, +146, -2 |
| c5a66709 |
gatt: Add Generic Access/Attribute Profile plugin
Initial patch to create GATT based plugin to handle Generic Access,
and Generic Attribute Profile services. GAP characteristics discovery
will be moved from device.c to this new plugin. |
Claudio Takahasi |
13 years ago |
4 files, +136, -2 |
| 7977aba5 |
service: Fix reference counting for serv_adapter->adapter |
Johan Hedberg |
13 years ago |
1 file, +6, -1 |
| 902e9f2d |
mgmt: Add reason to device disconnect event
Extend the management API with the disconnect reason, as now reported
by the Kernel in MGMT_EV_DEVICE_DISCONNECTED. |
Mikel Astiz |
13 years ago |
5 files, +61, -14 |
| ee3b0b2b |
gdbus: Fix compilation error if macro "error" is defined
The variable "signature" used in error is not defined and "args" is now
a struct instead of a string. |
Jaganath Kanakkassery |
13 years ago |
1 file, +2, -2 |
| 6e0cfbe2 |
adapter: fix call to get_key_info
This complements commit 85128d40f4788acb0115f09c07b716e741444406 that
changed the "linkkeys" file format. The call to get_key_info must
include only the address string, instead of the new combined
address#type text. |
Henrique Dante de Almeida |
13 years ago |
1 file, +1, -1 |
| 85dde1d7 |
lib: Add new company identifiers |
Jefferson Delfes |
13 years ago |
1 file, +40, -0 |
| d1d1d4ff |
lib: Rename GAP UUID
Cosmetic patch changing the GAP UUID declaration to follow the same
standard of the others GATT based services. |
Claudio Takahasi |
13 years ago |
2 files, +2, -2 |
| 450a2212 |
deviceinfo: Remove redundant gattrib include |
Claudio Takahasi |
13 years ago |
1 file, +0, -1 |
| d04bc639 |
mgmt: Fix Set SSP command complete
Once we get a Set SSP command complete event, we should update
current_settings from the controller_info. Otherwise, features
which depend on that will not work properly. |
Andre Guedes |
13 years ago |
1 file, +1, -1 |
| e97c013f |
mgmt: Fix Set LE command complete
Once we get a Set LE command complete event, we should update
current_settings from the controller_info. Otherwise, features
which depend on that, such as device discovery, will not work
properly. |
Andre Guedes |
13 years ago |
1 file, +1, -1 |
| 46c59677 |
attrib: Fix naming and variable types of security requirements
There's a single read/write requirement value so the variables should be
named in singular form. Also, until there's e.g. an enum typedef for
them a simple int shall do. |
Johan Hedberg |
13 years ago |
4 files, +24, -24 |
| 2b44cd2f |
network: Check full BNEP UUID
This patch fixes an issue where only the 2 bytes containing the service
ID was checked from the BNEP UUID. Fixes behavior for BT test cases
TP/PAN/MISC/UUID/BV-01-C & TP/PAN/MISC/UUID/BV-02-C. |
Par-Gunnar Hjalmdahl |
13 years ago |
1 file, +23, -3 |
| 04be4fe0 |
attrib: Use proper types for size variables
size_t/ssize_t/off_t/etc are more appropriate for variables denoting
some kind of size than simply using int.
This patch includes a couple of other related changes to avoid gcc
signedness errors resulting from it treating (for whatever reason) const
variables and integer literals as signed. |
Johan Hedberg |
13 years ago |
14 files, +193, -175 |
| 7040dc92 |
gatt: Add support to GATT Write Long Characteristic
Extending the function gatt_write_char for support GATT Write Long
Characteristics. MTU is checked and if the payload does not fit,
the prepare and execute write are used to do the transaction. |
Eder Ruiz Maria |
13 years ago |
4 files, +110, -7 |
| f5cf20bb |
att: Add encode/decode execute write support
Add functions for encoding/decoding Execute Write Request and
Response PDUs. |
Eder Ruiz Maria |
13 years ago |
2 files, +37, -0 |
| 3be0d8fe |
att: Add prepare write support
Add functions for encoding/decoding Prepare Write Request and
Response PDUs. |
Eder Ruiz Maria |
13 years ago |
2 files, +59, -0 |
| 5c02a1ae |
hog: discover the non-HID service characteristic
Find the characteristic by the UUID provided on the External Report
Reference descriptor and enable notifications for it. The characteristic
will be handled as a HID report and it's data processed through the uhid
device. |
João Paulo Rechi Vita |
13 years ago |
1 file, +59, -17 |
| 489f1a04 |
hog: discover External Report Reference descriptor
Non-HID service data may be encapsulated on the HID protocol and
transfered as a HID Report. This descriptor is used to map a report
on the USB-HID descriptor that transports non-HID data to the
characteristic on a external service that will actually transport the
data on GATT devices. |
João Paulo Rechi Vita |
13 years ago |
1 file, +40, -14 |
| 9734131c |
gatt: Add a new descriptor UUID
Add the UUID of the External Report Reference descriptor. |
João Paulo Rechi Vita |
13 years ago |
1 file, +1, -0 |
| 560a0cfc |
dbusoob: Fix missing const specifier for oob_data->name |
Johan Hedberg |
13 years ago |
1 file, +1, -1 |