a2dp: Invalidate cache if SetConfiguration fails
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 3 Aug 2021 01:13:19 +0000 (18:13 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:36 +0000 (19:08 +0530)
commit8cf41d1a5a4d91ba443511568ee8952f3473cade
tree72352340af600eb2986d522a783f8a090e973f69
parentd467b3f15a37f917f7472793b454eee1a5295f45
a2dp: Invalidate cache if SetConfiguration fails

If SetConfiguration fails with Unsupported Configuration it might
indicate that either the capabilities stored are incorrect or the seid
may have changed, so this attempt to invalidate the remote seps loaded
from cache when that happens so the next time there is an attempt to
discover this will force Get(All)Capabilities to be called and cause
the cache to be updated.

Fixes https://github.com/bluez/bluez/issues/178

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/a2dp.c
profiles/audio/avdtp.c
profiles/audio/avdtp.h