Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1381277rwb; Tue, 29 Nov 2022 12:47:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YlvRBtIcK45yZE8twyO0oamhMNm9fYGMG0RN6G1eYVdGGjmolYEGF9tK85ciM8LVJSCYW X-Received: by 2002:a63:5857:0:b0:46f:9763:a37b with SMTP id i23-20020a635857000000b0046f9763a37bmr37166752pgm.177.1669754875767; Tue, 29 Nov 2022 12:47:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669754875; cv=none; d=google.com; s=arc-20160816; b=SSLJOKIDCGlMaarmcsj9c2yAB3LwSfYFQMb7DzrRadgm+y8XkJYpgMzqDmk3DZYiYc Ds/zcv+k/IL/1OxAtBijBKJIhKlT9k/1dcFd7XdQw8ODH0jFg/YTQjDG4PXnSKQTiXoW Nl6OiJ6P/l2H8jRlMqVJXR2sUagENAVir8SY0IPPyDvP+W6Df37x4TC5y7lHCz9p0oBR vTqnh+eQ6NO82mN/2WwzOpwTAmxOsBrCAnaRD55PHtnQEC6ZMJ9hlIoqZdXNx8kpKhLS BVmqaVyKL69Tos7a7K0g2YR5vwe9tunxc+DjYShCt3fVlZeDYzc3wfdgmvt1y1kh8Ho5 hrlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=uipxcqFe+9TjstR7zL9pYMpnpbO4FjPsAnDw9doWmUg=; b=qPq8gzl+dcXaT6qRlFCAr+ZW53IcZ0U8lVJqgA7FX57EjCmOrLocebiFU4rL/nXLj9 qVmYZctTpiDMs9IFKTFXZ1Q+2zsyr1Un7udjiIJdmQKciSGyN/31pgQkwJsxQJfxp1mX CIVBK2nsGAcmr5bgnafkuN/0OYklo85AM6JglFRnF327PQMqm1JAMSBqTEP0Nb6ji3+X 4M8SIBgW1vU3WIue+FqSMw8MjR5rQKUoXUnORosr1bbPT0pIMlknfjeNhQSGTtGBivFi NuaUk9dHaPSbaz6U4sNlUDMk47g3IUAwOco9tZq7dTXfc3Go9PsvQgksDnYcdkkaNSee h57Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VuzLwGHu; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a637442000000b004785a2447e3si218067pgn.109.2022.11.29.12.47.17; Tue, 29 Nov 2022 12:47:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VuzLwGHu; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235940AbiK2UqF (ORCPT + 99 others); Tue, 29 Nov 2022 15:46:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234423AbiK2UqD (ORCPT ); Tue, 29 Nov 2022 15:46:03 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3392527B34 for ; Tue, 29 Nov 2022 12:46:03 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id g10so14603476plo.11 for ; Tue, 29 Nov 2022 12:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=uipxcqFe+9TjstR7zL9pYMpnpbO4FjPsAnDw9doWmUg=; b=VuzLwGHu7NelXnYVXfw/9BgA6ker3L+99AXnn6WiwY9eRc3SNVNsHBqf91Q3Td7f/M 3Fa3UeuCf1EgNvkNMuoX7TVhNHRx5NoW5WlAakA226BaP6q0wb75Mijo6/ey8pvTxkWO du0eu74Tz+fhCMLEte6Af+Gwr589zB9aQg0nvLRP2+1En9HmQ3xi8Q6wOCiCSDGQ3uPh zqOzl+ItnCx3YUaU2e1eO3vQaDiSralSqGkowu0LrpwDDBHmeW7m6SavdKXK/H3YObAN qWTEP9P8UDWEfcYNnW1pZxh4Gv3fOpY4Z9c8L6ElhR14rQflyGgHod8vswP7/oG5p7Kv 0f+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uipxcqFe+9TjstR7zL9pYMpnpbO4FjPsAnDw9doWmUg=; b=l3F3mjQrHcCyhH3b3o5khcXvpg23r/PMuHjSz/htn1NFYyGCN+1aJdIgs00dhi3hOh Of8DgmNTUkS6Pmw8mIafho7Eb/eLhyQAtiTKfEVsWRbAPf2Uvi7kooQb8plvUHMg3vXO +w+KYi9TOebDp7M2IdSQuboAFassqFt5geV80yitcmrIrYDdm68JnYxM/FezAnUDm5ZU r2uVJ5TM9ac99bt+UkXqUBxPvouf9tbOj53purm2pbqZv5ENL1VVdK9RI9VhY+ztj8S7 Lf4KjBOc9cLou/XcREew8iEplWqXdG2Mqy/fP3g8GKH80QN/t5/0khbex8ULLp3i5dtS rl7w== X-Gm-Message-State: ANoB5pmikA7RuR29b+FzKykqfSoAF+XrGpo8A6K90rMqip3ovqGU/V0E qRJIwsY77MOxU6U1E3eBxQQTHjZUpWABmQ== X-Received: by 2002:a17:902:aa07:b0:186:a97d:6bcc with SMTP id be7-20020a170902aa0700b00186a97d6bccmr39301765plb.121.1669754762181; Tue, 29 Nov 2022 12:46:02 -0800 (PST) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id i7-20020a17090332c700b001887e30b9ddsm11216214plr.257.2022.11.29.12.46.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 12:46:01 -0800 (PST) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 4/5] bap: Fix not able to reconfigure Date: Tue, 29 Nov 2022 12:45:55 -0800 Message-Id: <20221129204556.1535821-4-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221129204556.1535821-1-luiz.dentz@gmail.com> References: <20221129204556.1535821-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz While attempting to configure QoS setting the request id is not reset to 0 when a response is received which prevents any the QoS to be reconfigured. --- profiles/audio/bap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index 67aba3bd76d9..9cee9fd030da 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -366,6 +366,8 @@ static void qos_cb(struct bt_bap_stream *stream, uint8_t code, uint8_t reason, DBG("stream %p code 0x%02x reason 0x%02x", stream, code, reason); + ep->id = 0; + if (!ep->msg) return; -- 2.37.3