GATT : Fix Server disconnection state change callback 39/282639/1
authorAnuj Jain <anuj01.jain@samsung.com>
Fri, 7 Oct 2022 06:51:45 +0000 (12:21 +0530)
committerAnuj Jain <anuj01.jain@samsung.com>
Fri, 7 Oct 2022 07:02:00 +0000 (12:32 +0530)
commit8a29f5f902ba495c0ded3d8fee91dd93dc731fa9
tree8d48b0e7f36862056f9edaf2d2858415ca44d30e
parente5e8e8d36ee7e8c8af71917a67bae8ccd296e3aa
GATT : Fix Server disconnection state change callback

This patch fixes the issue of GATT server disconnection callback not
received when server connection state change callback is set using
bt_gatt_server_set_connection_state_changed_cb.

This patch also adds some INVALID_INPUT_PARAMETER checks to new GATT
APIs.

Change-Id: Ie651f9822702a7a15c327361cff8ebd34c156613
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
src/bluetooth-common.c
src/bluetooth-gatt.c