Bluetooth: Audio: Refactor use of cur_mcs_inst

Removes the global cur_mcs_inst and replace it
with lookup functionality.

This fixes an issue with bt_mcc_discover_mcs not being able
to be called more than once, as well
as streamline the implementation significantly.

This is also the first step towards not only supporting
multipe MCS instances for a single device, but also a
step towards handling multiple devices.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-11-13 15:25:17 +01:00 committed by Fabio Baltieri
commit 1d83e561e6
4 changed files with 1171 additions and 813 deletions

File diff suppressed because it is too large Load diff