| 9fb77175 |
Cleanup: remove unused structure |
Claudio Takahasi |
14 years ago |
1 file, +0, -5 |
| cc263203 |
Remove read_local_version() from struct btd_adapter_ops
This callback is used only for getting HCI version/manufacturer
information, and is not being called anywhere in BlueZ anymore. |
Bruna Moreira |
14 years ago |
3 files, +0, -31 |
| 23609a78 |
Move adapter name from struct hci_dev to struct btd_adapter
It makes more sense to have this information on the adapter structure,
as it is not HCI specific. |
Bruna Moreira |
14 years ago |
2 files, +14, -17 |
| f0778808 |
Remove LMP/HCI version and manufacturer from struct hci_dev
These fields were not being used anywhere inside BlueZ. |
Bruna Moreira |
14 years ago |
2 files, +0, -17 |
| cdb503df |
Remove ssp_mode from struct hci_dev
ssp_mode is duplicated information and is not being used anywhere. |
Bruna Moreira |
14 years ago |
3 files, +0, -21 |
| c28669fd |
Fix not waiting for POLLERR when disconnecting SCO
To make sure the SCO link is really disconnected we should wait for
POLLERR since POLLHUP does not necessarily means the link is
completely disconnected just that no further data can be sent/received.
Note that this depend on a fix of SCO socket shutdown in kernel to wait
for disconnect confimation to then kill/destroy the socket indicating
the err/reason using POLLERR. |
Luiz Augusto von Dentz |
14 years ago |
1 file, +4, -1 |
| 23de0235 |
Add NO CARRIER response to maemo6 telephony driver |
Dmitriy Paliy |
14 years ago |
1 file, +7, -2 |
| 304b588b |
Add NO CARRIER response to HFP
HFP is updated by NO CARRIER response accordingly to HFP 1.5 p.68. |
Dmitriy Paliy |
14 years ago |
1 file, +10, -7 |
| abee7cce |
Only do LE discovery if EnableLE is true in main.conf |
Johan Hedberg |
14 years ago |
1 file, +1, -1 |
| 1636fb01 |
Fix unregistering a2dp sep while it is locked
If sep is locked it should not be unregistered until properly unlocked. |
Luiz Augusto von Dentz |
14 years ago |
1 file, +16, -0 |
| 51571e74 |
TODO: Add hard-coded PSM for GATT over basic rate |
Claudio Takahasi |
14 years ago |
1 file, +5, -0 |
| 2d56d7a8 |
TODO: Remove item related to GATT service over basic rate |
Claudio Takahasi |
14 years ago |
1 file, +0, -10 |
| d14f607a |
Fix primary services registration from storage for basic rate |
Claudio Takahasi |
14 years ago |
3 files, +8, -3 |
| e91ac5ef |
Fix LE device creation from storage
Ignore the device if it already created. This patch adds a consistency
check to avoid registering the same service over basic rate and LE. |
Claudio Takahasi |
14 years ago |
1 file, +9, -11 |
| 7b1b9070 |
Fix device type when creating from primary services storage
GATT services exported through basic rate need to be created based
on the "profiles" file. For GATT over LE, "primary" file entries need
to be used to create the devices and primary services objects. |
Claudio Takahasi |
14 years ago |
1 file, +1, -1 |
| 399ad77a |
Move the primary service storage code to a local function |
Claudio Takahasi |
14 years ago |
1 file, +16, -11 |
| 8447ce5c |
Remove btd_device_add_service function
btd_device_add_service is no longer necessary if the object paths for
the primary services can be returned during the registration. |
Claudio Takahasi |
14 years ago |
4 files, +11, -19 |
| 5eb9d13c |
Cleanup primary service registration from storage |
Claudio Takahasi |
14 years ago |
3 files, +9, -24 |
| 612d0207 |
Register primary services exported over basic rate
This patch registers the object paths for primary services exported
through SDP. PSM, start and end handle information are available in
the Protocol Descriptor List. |
Claudio Takahasi |
14 years ago |
3 files, +138, -1 |
| 839adcd6 |
Fix race condition on gatttool
When the connect_cb() takes too long to be called the event_loop goes to
idle state and executes the callback too early |
Sheldon Demario |
14 years ago |
1 file, +62, -66 |
| 6baed021 |
Remove unnecessary code from pin handler
The source address is not used inside the pin handler and, thus,
can be skipped. |
David Herrmann |
14 years ago |
1 file, +1, -3 |
| f6a34aa7 |
Add test/test-oob for testing Out Of Band pairing
This test utilizes D-Bus Out Of Band API so bluetoothd must be
compiled with dbusoob plugin. |
Szymon Janc |
14 years ago |
2 files, +82, -2 |
| 4e02012a |
Add sap_disconnect_ind interface for sap-sim drivers
The sap_disconnect_ind() let's the sim driver to indicate
immediate disconnection.
Add support of immediate disconnection in sap-dummy driver
as well as a card status change in order to pass all PTS tests. |
Waldemar Rymarkiewicz |
14 years ago |
3 files, +32, -7 |
| 4b7da0b9 |
Add workaround to skip wrong OMTU for basic rate
This patch is required until the MTU kernel patch is integrated. Without
it the kernel returns zero for basic rate OMTU. |
Claudio Takahasi |
14 years ago |
1 file, +1, -1 |
| 827ba0ce |
Fixing characteristic read by UUID
When the characteristic to be read was the last one of a given range, it
was not being listed. |
Sheldon Demario |
14 years ago |
1 file, +1, -1 |
| 6a3a8977 |
Fix Characteristic read by UUID on gatttool
The Characteristic read by UUID GATT procedure is not incremental, i.e.
it returns the entire list in a single Read By Type request. Therefore
it should not be called recursively. |
Sheldon Demario |
14 years ago |
2 files, +0, -12 |
| d7f412e4 |
Fix not removing source when removing setup callback
In rare situations this may lead to access invalid memory since setup
can be freed before idle callback is called. |
Luiz Augusto von Dentz |
14 years ago |
1 file, +9, -3 |
| b3938c22 |
Refactor A2DP finalize_*_errno functions
There was a lot of duplicate code in them so they are now replaced by
finalize_setup_errno which can deal with multiple callbacks reusing the
same error. |
Luiz Augusto von Dentz |
14 years ago |
1 file, +41, -47 |
| d4bbb4b3 |
Fix handling of A2DP suspend response
Finalize_suspend is being called twice when a resume request is queue
after it or if start fails. |
Luiz Augusto von Dentz |
14 years ago |
1 file, +11, -11 |
| cabd3adf |
Add uuidtest binary to gitignore list |
David Herrmann |
14 years ago |
1 file, +1, -0 |
| fad92575 |
Fix check for valid SCO socket before shutdown
To prevent a crash in the event that there is a request to remove
the audio connection when it has already been disconnected by the
remote.
Set headset state to connected directly if there is no SCO socket. |
Daniel Orstadius |
14 years ago |
1 file, +9, -3 |
| 61108610 |
Add ERROR code response to ATD in maemo6 telephony
ERROR code response is added to ATD command in maemo6 telephony driver
based on HFP 1.5 specification, page 68:
"Standard error indication code. It shall be issued on detection of any
syntax, format or procedure error condition." |
Dmitriy Paliy |
14 years ago |
1 file, +4, -8 |
| 4ffb3bf4 |
Fix include paths for health plugin
Fix the include path of l2cap.h and sdp_lib.h |
Jaikumar Ganesh |
14 years ago |
2 files, +2, -2 |
| af5bd123 |
Remove unused files from gatttool compilation |
Bruna Moreira |
14 years ago |
1 file, +0, -1 |
| d0b67508 |
Remove deprecated attrib plugin
The attrib plugin is deprecated and it is not used anymore. Remove it
and all related configuration. Note that GATT utility (gatttool)
configuration item was moved to Makefile.tools and it is compiled when
--enable-tools is used in configure. |
Bruna Moreira |
14 years ago |
7 files, +11, -142 |
| 6f7add54 |
mgmt: Add support for discovering event |
Johan Hedberg |
14 years ago |
3 files, +49, -0 |
| 421efd40 |
mgmt: Add support for start_discovery & stop_discovery |
Johan Hedberg |
14 years ago |
3 files, +41, -2 |
| 23fed61b |
Fix discovery callback usage
The start_discovery function was used both as a GLib callback as well as
directly called function that can return a negative integer as error.
This will obviously not work since GLib expects a gboolean return (a
negative return value would have an undefined result). This patch fixes
the issue creating a separate function to be used as the GLib callback. |
Johan Hedberg |
14 years ago |
1 file, +21, -13 |
| 7041b13a |
Add constant for interleaved discovery window |
Claudio Takahasi |
14 years ago |
1 file, +7, -3 |
| 36ce04d5 |
Fix crash when acquiring A2DP stream
Disconnecting L2CAP before getting a response for AVDTP start cause a
crash while we try to abort it:
avdtp_sep_set_state (session=0x9c210, sep=0x9ada0, state=AVDTP_STATE_IDLE)
0x000256dc in connection_lost (session=0x9c210, err=-5)
0x00025d44 in cancel_request (session=0x9c210, err=-5)
0x00026a98 in avdtp_abort (session=0x9c210, stream=0x9bee8)
0x00020e74 in a2dp_cancel (dev=<value optimized out>, id=<value optimized out>)
0x0002d5b4 in acquire_request_free (req=0x9b1a0)
0x0002d638 in media_owner_remove (owner=0x9a4a0)
0x0002da94 in media_transport_free (data=<value optimized out>)
0x000115a0 in remove_interface (data=0xa1f88, name=<value optimized out>)
0x0002e2a0 in media_transport_remove (transport=0x8fad8)
0x0002c624 in media_endpoint_clear_configuration (endpoint=0x9b098)
0x000260c8 in avdtp_sep_set_state (session=0x9c210, sep=0x9ada0, state=AVDTP_STATE_IDLE)
To fix this callbacks are called after handling the state change, so
any pending request are properly removed before state is set to idle. |
Luiz Augusto von Dentz |
14 years ago |
2 files, +9, -17 |
| eba94803 |
Improve the logic when emitting Discovering signal |
Claudio Takahasi |
14 years ago |
1 file, +10, -11 |
| 52727904 |
Remove "authen" and "autho" short versions for ATT constants |
Claudio Takahasi |
14 years ago |
3 files, +6, -6 |
| d3c57d0f |
Remove hard-coded handles from example GATT plugin
Instead of having static handles, use attrib_db_find_avail() to find
available handle ranges.
Also split the big register_attributes() into one function per service. |
Anderson Lizardo |
14 years ago |
1 file, +250, -100 |
| 3314e606 |
Add attrib_db_find_avail() function to attribute server
This new function searches for a range of at least "nitems" available
(unused) attribute handles. It then returns either zero (if no available
range was found) or the start handle of the available range. |
Anderson Lizardo |
14 years ago |
2 files, +29, -0 |
| a3e9d397 |
Move GATT example server to a standalone plugin
The GATT example server was in the same plugin as the GATT client.
Moving it to a separate plugin will allow to easily disable it. |
Anderson Lizardo |
14 years ago |
7 files, +361, -375 |
| 1b0d082b |
Fix disconnecting when primary service discovery is done
We shouldn't disconnect when the primary service discovery is done.
Most LE devices leave advertising mode as soon as the connection is
established, so shouldn't assume that we are able to reconnect to
them again.
For that we rely on the fact that GAttrib will close the connection
when its last reference is dropped. |
Vinicius Costa Gomes |
14 years ago |
1 file, +6, -7 |
| a0b6c596 |
Add support for re-using the attrib channel
In some cases, when the device is already connected there's no need
to create another GAttrib instance.
This will allow the Attrib client to use the connection already
estabilished, this will be very useful when we support more
LE profiles. |
Vinicius Costa Gomes |
14 years ago |
4 files, +10, -4 |
| fc19dbe0 |
Remove _init and _exit methods from Attrib client
Now that Attrib client is being moved to the core, there's no
need to have explicit _init and _exit methods.
This also means that we need to pass the DBusConnection explicitly
to the registration method. |
Vinicius Costa Gomes |
14 years ago |
4 files, +18, -35 |
| bb5eda2b |
Register Attrib interface after Primary Service discovery |
Vinicius Costa Gomes |
14 years ago |
1 file, +4, -0 |
| 279a5382 |
Register Attrib interface when loading device from storage
Now that the GATT client functionality is being moved to the
core we need to register the interface when the device is created. |
Vinicius Costa Gomes |
14 years ago |
4 files, +9, -3 |