diff --git a/subsys/bluetooth/shell/audio.c b/subsys/bluetooth/shell/audio.c index 6c4311b94da..0253ea10009 100644 --- a/subsys/bluetooth/shell/audio.c +++ b/subsys/bluetooth/shell/audio.c @@ -1015,6 +1015,11 @@ static int cmd_qos(const struct shell *sh, size_t argc, char *argv[]) return -ENOEXEC; } + if (default_conn == NULL) { + shell_error(sh, "Not connected"); + return -ENOEXEC; + } + named_preset = default_preset; if (argc > 1) {