From 2cc1fe259a8c2e91f5557383ca524393557cfd8b Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Mon, 16 Jan 2023 15:27:56 +0100 Subject: [PATCH] Bluetooth: Audio: Fix invalid value for setting src supported ctxs The call to set_supported_contexts in set_src_supported_contexts gave the wrong value by reference. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/pacs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/audio/pacs.c b/subsys/bluetooth/audio/pacs.c index 188caed8185..ba4ac5cd26d 100644 --- a/subsys/bluetooth/audio/pacs.c +++ b/subsys/bluetooth/audio/pacs.c @@ -434,7 +434,7 @@ static inline int set_src_available_contexts(uint16_t contexts) static inline int set_src_supported_contexts(uint16_t contexts) { return set_supported_contexts(contexts, &src_supported_contexts, - &snk_supported_contexts); + &src_available_contexts); } #else static inline int set_src_available_contexts(uint16_t contexts)