Release 4.101
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.
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.
TODO: add BlueZ 5 tasks
TODO: Add/cleanup BlueZ 5 items
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.
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.
thermometer: Use GAttrib buffer

This patch replaces the static local buffer by the GAttrib internal
buffer to temporarily store the output ATT PDU.
gatttool: Use GAttrib buffer

This patch replaces the static local buffer by the GAttrib internal
buffer to store temporarly the output ATT PDU.
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.
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.
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.
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.
generic attribute: Use GAttrib buffer

This patch replaces the static local buffer by the GAttrib internal
buffer to temporarily store the output ATT PDU.
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.
monitor: Fix optstring to parse -b parameter

Without the colon getopt ignores the parameter and optarg is always
NULL.
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.
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.
doc: Fix typo

This patch fix simple typo in documentation of API.
AVRCP: Convert spaces to tabs

Fix coding style issue.