| 200647d9 |
SAP: Use sap_server instead of sap_connection as key for drivers
This is a preparation for fixing SAP server when multiple adapters are
present. This is to avoid having extra pointer from sap_connection to
its sap_server struture. Only one connection per server is allowed
anyway so using sap_server as key is safe. |
Szymon Janc |
13 years ago |
1 file, +121, -87 |
| 98ddb6aa |
SAP: Make sap_error_rsp function static
This error message is used to reply to SAP protocol errors and it
should not be used by drivers as they don't have access to server
internal state machine. Messages passed to drivers are valid and
properly formatted so drivers shall use result code in response
messages to indicate error (section 4.11 of SAP specification). |
Szymon Janc |
13 years ago |
2 files, +13, -15 |
| b939e8fa |
SAP: Rename server variable to sap_server
This is to avoid shadowing by local functions variables. |
Szymon Janc |
13 years ago |
1 file, +24, -24 |
| 1121a936 |
SAP: Use proper type instead of *void for disconnect_ind param
Use struct sap_connection as parameter type for clarity. |
Szymon Janc |
13 years ago |
1 file, +2, -3 |
| beec62db |
SAP: Fix missing setting conn->io to NULL after unref
conn->io should be set to NULl after unref to avoid calling shutdown
and unref twice. |
Szymon Janc |
13 years ago |
1 file, +2, -0 |
| 25f03068 |
SAP: Remove not needed NULL pointer checks from send_message
Both conn and buff are always passed as valid pointers. No need to
double check them. |
Szymon Janc |
13 years ago |
1 file, +0, -3 |
| ad89361c |
SAP: Introdue SAP_VDBG macro for verbose log messages
Some SAP operations (eg. APDU transfer) occurs very often even with
simple scenarios like subscribing to GSM network. This results in flood
of log messages. Since those messages are mostly usefull only when
developing SAP backend hide them after SAP_DEBUG flag. |
Szymon Janc |
13 years ago |
3 files, +16, -16 |
| 012e8969 |
SAP: Don't append MaxMsgSize parameter to CONNECT_RESP unconditionaly
According to SAP 1.1 specification MaxMsgSize parameter of CONNECT_RESP
is conditional and should not be added for every status code. Add this
parameter only if status code is "Error, Server does not support
message size" (see section 4.1.1 of SAP specification).
To avoid confusion maxmsgsize param is removed from sap_connect_rsp and
it is assumed that SAP driver is able to handle messages with size up
to SAP_BUF_SIZE bytes. |
Szymon Janc |
13 years ago |
4 files, +29, -36 |
| fa9744e1 |
SAP: Move SAP_DISCONNECTION_TYPE_CLIENT from sap.h to server.c
SAP_DISCONNECTION_TYPE_CLIENT is an implementation detail and is not
specified by SAP profile specification. |
Szymon Janc |
13 years ago |
2 files, +2, -2 |
| e6b0aca2 |
SAP: Use switch instead of if-else in sap_status_ind
It makes it easier to understand what actions are performed in each
server state. |
Szymon Janc |
13 years ago |
1 file, +25, -16 |
| b6afc1fe |
sap-dummy: Use switch insted of if-else where applicable
This improves readiblity of what actions are performed on each state. |
Szymon Janc |
13 years ago |
1 file, +52, -28 |
| 886a856b |
TODO: Mark legacy audio IPC removal as done |
Johan Hedberg |
13 years ago |
1 file, +1, -1 |
| 9153d66a |
audio: Remove remaining references to Socket |
Luiz Augusto von Dentz |
13 years ago |
2 files, +1, -6 |
| c1d42542 |
audio: Remove local A2DP endpoints options
The local endpoints are no use without the internal IPC. |
Luiz Augusto von Dentz |
13 years ago |
2 files, +1, -76 |
| f2bdd724 |
audio: Remove internal audio IPC
With unix socket and ALSA removed there is no longer any use for the
internal IPC. |
Luiz Augusto von Dentz |
13 years ago |
14 files, +112, -2841 |
| 4ff9b992 |
audio: Remove ALSA support
ALSA support depend on unix support that is now removed. |
Luiz Augusto von Dentz |
13 years ago |
6 files, +1, -2249 |
| 1d9d0527 |
audio: Remove unix socket support
Unix socket support is deprecated by Media API. |
Luiz Augusto von Dentz |
13 years ago |
6 files, +0, -1954 |
| 57170b31 |
network: fix network Connect() method parameters |
Gustavo Padovan |
13 years ago |
1 file, +3, -1 |
| c1d66207 |
audio: Remove not needed NULL pointer checks
g_new0 always returns valid pointer and there is no need to check that. |
Szymon Janc |
13 years ago |
4 files, +0, -8 |
| e2d49cfa |
AVDTP: Fix disconnecting when acting as sink
Usually after pairing the source will attempt to connect and create a
stream, but it may never send AVDTP_START command as it is not
playing anything. In the meantime the local endpoint may attempt to
acquire the transport, but since it was the remote side that opened the
stream instead of sending AVDTP_START the code now wait and eventually
timeout.
To fix this now instead of just waiting the remote to send AVDTP_START
the code will attempt to send the command if nothing is received after
a small timeout (1s). |
Luiz Augusto von Dentz |
13 years ago |
1 file, +31, -11 |
| 9d656c7a |
AVDTP: Remove auto_dc flag
auto_dc flag is no longer useful as all the users of it just reset it
to FALSE, also this was first introduced to maintain the stream for
some time as the clients disconnected frequently, but this is not the
case anymore. |
Luiz Augusto von Dentz |
13 years ago |
4 files, +1, -37 |
| 20ad88c5 |
Update comment in the audio.conf file.
The config file erroneously said that all services were available by
default. Actually Gateway, Source and Socket are disabled. |
Rafael Fonseca |
13 years ago |
1 file, +1, -1 |
| 6c05eb52 |
lib: Add headers for AMP ASSOC data |
Andrei Emeltchenko |
13 years ago |
2 files, +172, -38 |
| 0ea30be2 |
build: Ignore config.h.in~ generated by autoheader |
Alon Bar-Lev |
13 years ago |
1 file, +1, -0 |
| b7d1aba8 |
TODO: Add not about fast connectable |
Johan Hedberg |
13 years ago |
1 file, +8, -0 |
| b57c64f1 |
network: NULL dereference fix
Variable ifindex dereferenced on line 242 before null check on line 249. |
Pavel Raiskup |
13 years ago |
1 file, +3, -1 |
| c0d81fcf |
sdptool: Fix dropping of the list head
assigning sdp_list_append(0, ...) to "apseq" on line 2591 will
drop first item in list got by sdp_list_append three lines before. |
Pavel Raiskup |
13 years ago |
1 file, +1, -1 |
| 2053eeda |
lib/sdp.c: Prevent passing unitialised argument
In case of sdp_seq_alloc() failures in loop, unitialised seqDTDs would
be passed to final sdp_seq_alloc. |
Slawomir Bochenski |
13 years ago |
1 file, +8, -4 |
| 256fde4f |
AVRCP: Convert spaces to tabs
Fix coding style issue. |
Michal Labedzki |
13 years ago |
1 file, +8, -8 |
| 4aae0e29 |
doc: Fix typo
This patch fix simple typo in documentation of API. |
Michal Labedzki |
13 years ago |
5 files, +5, -5 |
| 2f926696 |
audio: Permit concurrent use of AG and HF roles
If a device supports both HF and AG roles, then if a SCO connection
related to AG profile happens, the connection is rejected because HF is
not connected. One consequence is pulseaudio failing to load bluetooth
module. |
Frédéric Dalleau |
13 years ago |
1 file, +7, -2 |
| ca0b4c4c |
gdbus: Fix removal of filter after last filter_data
If there's a signal watch that's also watching for name
(data->name_watch) currently we are trying to remove the message_filter
twice since we may have the following call chain:
filter_data_remove_callback()
filter_data_free()
g_dbus_remove_watch()
filter_data_remove_callback()
filter_data_free()
dbus_connection_remove_filter()
dbus_connection_remove_filter()
Because of this we can't currently watch for signals passing the bus
name. After this patch we don't have this issue anymore.
We fix it by removing the filter before calling filter_data_free() if we
are the last filter_data and thus avoid calling
dbus_connection_remove_filter() twice. |
Lucas De Marchi |
13 years ago |
1 file, +8, -9 |
| 07858bca |
monitor: Fix optstring to parse -b parameter
Without the colon getopt ignores the parameter and optarg is always
NULL. |
Anton Weber |
13 years ago |
1 file, +1, -1 |
| 6da4e6ee |
attrib-server: Fix MTU for GATT
This patch changes the size of the input and output buffers to the same
size of the channel MTU. The channel MTU, in turn, is the L2CAP MTU for
BR/EDR channels, and the ATT MTU for LE channels. This value can change
between calls to channel_handler if a GATT MTU exchange procedure is
performed, which is only supported by LE channels. |
Claudio Takahasi |
13 years ago |
1 file, +1, -1 |
| c902816c |
generic attribute: Use GAttrib buffer
This patch replaces the static local buffer by the GAttrib internal
buffer to temporarily store the output ATT PDU. |
Claudio Takahasi |
13 years ago |
1 file, +4, -2 |
| db25f7c6 |
proximity: Reduce array size for Tx Power Level
Tx Power Level characteristic is a signed 8-bits integer which reports
the current transmit power level. |
Claudio Takahasi |
13 years ago |
1 file, +2, -1 |
| 3b6f4afa |
thermometer: Reduce array size for Measurement Interval
Measurement Interval is a 16-bits value characteristic used to enable
and control the interval between consecutive temperature measurements. |
Claudio Takahasi |
13 years ago |
1 file, +2, -1 |
| 96268889 |
thermometer: Reduce the array for temperature type
Temperature Type characteristic is a 8-bits value used to describe
the type of temperature measurement in relation to the location on the
human body. |
Claudio Takahasi |
13 years ago |
1 file, +2, -1 |
| cb6db238 |
gatttool: Use GAttrib buffer
This patch replaces the static local buffer by the GAttrib internal
buffer to store temporarly the output ATT PDU. |
Claudio Takahasi |
13 years ago |
2 files, +8, -4 |
| fb722d84 |
thermometer: Use GAttrib buffer
This patch replaces the static local buffer by the GAttrib internal
buffer to temporarily store the output ATT PDU. |
Claudio Takahasi |
13 years ago |
1 file, +4, -2 |
| 03319392 |
dis: Reduce array size for PnP ID
PnP_ID characteristic is a 7 octets value which includes Vendor ID
source, a Vendor ID, Product ID, and Product Version. |
Claudio Takahasi |
13 years ago |
1 file, +3, -1 |
| 2f8cd0cb |
ATT: Avoid invalid memory access for large PDU
This patch avoids invalid memory access when decoding ATT read response
PDUs. The ATT_MTU value is a per ATT Bearer value defined by the higher
layer specification. |
Claudio Takahasi |
13 years ago |
7 files, +35, -24 |
| 7659391a |
thermometer: Reduce the array for Valid Range
Valid Range descriptor contains two unsigned 16-bits integers
representing the valid range of values that the Measurement Interval
characteristic can support. |
Claudio Takahasi |
13 years ago |
1 file, +3, -1 |
| f0478f07 |
TODO: Add/cleanup BlueZ 5 items |
Johan Hedberg |
13 years ago |
1 file, +13, -3 |
| f491b242 |
TODO: add BlueZ 5 tasks |
Gustavo Padovan |
13 years ago |
1 file, +22, -0 |
| a66a5570 |
Fix GDBus flags after conversion to macros
Commit "aa3b9016bf444b60e1b7e1804dfc323a23a93c5a Convert GDBus methods
to use macro helpers" converted the previous tables to use the new
macros but some flags were lost. |
Lucas De Marchi |
13 years ago |
5 files, +5, -5 |
| ea793cb9 |
input: Fix not adding watches when io channel is connected
This can leave dangling pointers in case one of the channel is never
connected which cause -EALREADY to be returned by
input_device_set_channel next time the device attempts to connect.
For the same reason the code path when acting as client now add the
watch as soon as the connection completes instead when both channels
are connected. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +24, -7 |
| 67ef3ac8 |
Release 4.101 |
Marcel Holtmann |
13 years ago |
2 files, +9, -1 |
| 02ea3647 |
build: fix MISC_LDFLAGS typo to fix "--enable-pie" |
Stefan Seyfried |
13 years ago |
1 file, +1, -1 |
| f267a12c |
adapter: Change not-connected authorization error to a warning
Due to scheduling/timing on some kernels it is possible that the device
connected event through mgmt comes slightly after an L2CAP socket
receives the same event. We should try to fix this on the kernel side
but as this check in user space is not protecting against critical
errors but just potential profile bugs it can be changed to a simple
warning message. |
Johan Hedberg |
13 years ago |
1 file, +1, -1 |