gatt: Use DEFER_SETUP for EATT channels
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 9 Mar 2023 22:20:17 +0000 (14:20 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:21:48 +0000 (15:51 +0530)
commit6064c3948e440d98adf17bea6d7ce52d8b4aed08
treee474dbc1d964b0521a4b188e1ca6ff0e38153ed8
parent6d85d4a83e42783ae352b86c240beec333741b24
gatt: Use DEFER_SETUP for EATT channels

This makes use of DEFER_SETUP mechanism to do the following checks
before accepting the connection:

 - Checks a valid device object exits
 - Checks if initiator/central as if the peripheral start connecting it
   may cause collisions.
 - Checks if the limit of allowed connections has been reached.
src/device.c
src/device.h
src/gatt-client.c
src/gatt-database.c