Component/bt: fix no set rand add callback
See merge request idf/esp-idf!2140
(cherry picked from commit 6ffd089c978740fc58f2395481cdd1b5a1e8d6a2)
aa236809 Component/bt: fix no set rand add callback event
component/bt: Change the char_uuid to descr_uuid in the add descriptor callback params.
See merge request idf/esp-idf!2065
(cherry picked from commit 0f6f762be03a3dca132a1c36071e88a7073d1b6b)
c802ea84 component/bt: Change the char_uuid to descr_uuid in the add descriptor callback params.
component/bt: Fix bug: a2dp disc_rsn error when as master
See merge request idf/esp-idf!1995
(cherry picked from commit dc66940f82be8ef45710c1f0b8705c4f37cd0fa3)
f1d3f689 component/bt: Fix bug: a2dp disc_rsn error when as master
component/bt: Fix bug:update pktlen have no callback
See merge request idf/esp-idf!1913
(cherry picked from commit 17e8d49f26fd108efcc6b108843241d2eda2ba1e)
acdad323 component/bt: Fix bug:update pktlen have no callback
component/bt: Fix bug:scan result of adv type is wrong
See merge request idf/esp-idf!1897
(cherry picked from commit 22dcdce949dd654b0b262a6128cc9afa32f1ba10)
79fd3f4f component/bt: Fix bug:scan result of adv type is wrong
Bluedroid use a set of timer function pairs such as btu_start_timer/btu_stop_timer, btu_sys_start_timer/btu_sys_stop_timer for use, in a lack of timer release functions. Thus the timers may be exhausted after some event sequence such as repetition of connection/reconnection with different devices. The maximum timer number used in bluedroid is given by ALARM_CBS_NUM which is 30 for now. This bugfix borrowed some update from bluedroid in Andoroid 7.0, which add timer release functions which promote the recycle of timer resources.
# Conflicts:
# components/bt/bluedroid/stack/btu/btu_task.c
# components/bt/bluedroid/stack/gatt/gatt_main.c
# components/bt/bluedroid/stack/rfcomm/port_utils.c
# components/bt/bluedroid/stack/rfcomm/rfc_utils.c
1. remove the feature mask parameter from AVRC connection state event, as the AVCTP connection can be initiated by remote device before service discovery to remote device is performed. \
In this case, AVRCP connection state event may not be reported after connection initated by remote device is established.
2. remove ESP_AVRC_CT_MAX_EVT
3. add more documentations to AVRC APIs
1. optimiz the ble stop adv callback function.
2. added the osi_mutex_unlock in the bta_gattc_wait4_service_change_ccc_cback function when the p_timer_param == NULL || p_conn == NULL.