Bluetooth: GATT: Remove _peer member from bt_gatt_subscribe_params

This further reduce the overhead on each subscription at expense of
having a dedicated array to store subscriptions, the code now maintain
a separate list for each peer which should also scale better with large
number of subscriptions to different peers.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2019-12-30 13:18:28 -08:00 committed by Johan Hedberg
commit 3be9980bd6
2 changed files with 131 additions and 51 deletions

View file

@ -1303,7 +1303,6 @@ enum {
/** @brief GATT Subscribe parameters */
struct bt_gatt_subscribe_params {
bt_addr_le_t _peer;
/** Notification value callback */
bt_gatt_notify_func_t notify;
/** Subscribe value handle */