adapter: Fix adding SDP records when operating on LE only mode
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 24 Mar 2022 21:24:12 +0000 (14:24 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commitc7096c2c9e593a7ed924e4caeea23866d77f039c
tree7fcba86c43720e73635bcfc29cea86df12bcbb9e
parentc1d25c559ad5a57dea4147c09470fd56400fad1d
adapter: Fix adding SDP records when operating on LE only mode

If mode is set to BT_MODE_LE SDP protocol won't be operational so it is
useless to attempt to add records.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/adapter.c