Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp153284pxb; Wed, 6 Oct 2021 01:53:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxApMCh0vMqJtskEb//X+xHuBNexW181lOo8C4SI+CIR/GVJGOI1oIgAlm9DAf6NcSoveN/ X-Received: by 2002:a63:2dc7:: with SMTP id t190mr19887799pgt.455.1633510435595; Wed, 06 Oct 2021 01:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633510435; cv=none; d=google.com; s=arc-20160816; b=ALWmSD/VqZ6rhrA+9i2OvvPgXTbFtmGt5O7Q+HOCJF22FqA1UzweFo6NdFw9G+fv+L 4MOaPcTjvs5CSgAgLZMEunjQnpG6eDaHW7OtESNAG0z/70tu6SsQSvCjebThz2sMAPZV +hTo08x9NlPOpQ165BGW5HT7GPCRlSiGyQmRoxFTBi03ET/G/cyMQ4rCoRMFZ1FoO+WK 0LjIuGt05rfC+uXJgaryZQZkNn4Yzks4hEqNn4vwvHojIniUE4NxO53zmCsaHvKKAIuB e1V2/Iukv56fl3CbLqjM6Au9srEqEA0wtQgsfGjC15NHo5LU0F1mQXgBHmP6DZqIXLEQ TZdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=taIoJ06CJxz5yD+rwSa7bQ30V7umxiyD78vIH8qyn4U=; b=cPxZ8zWtLtjwDhvouNTDWWXTWewWMMzWU5r6T5PO0eglW63eonCFoirJZYcA7QT35t 2FbfXkIquk3rbQci3H0VylTjR6xuN9O62F6i1ID4eqhyN5l5erNTwPtUKir+IkqplMhP qmFtdIJQ8MF7VhHcTuTq5TuyDu36Ps3yx0jyndOEHJiPEWzhqG4IQ1cnegVWm24Qsq0y uNZFQJmOmd4n3pfDKP4ua5oOvrLYW2lWwdTN9KozlUi1R8iIwyE5iLhfc1JuyM3qR1H+ hGZ0ECDolrqIziUimICM7obWQVONmnPBrDlzNrh5MAiGZ8qb0hCBHFQYdlsjVxZfvoyk Y/Qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m21si1960186pgu.294.2021.10.06.01.53.43; Wed, 06 Oct 2021 01:53:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237757AbhJFIzJ (ORCPT + 99 others); Wed, 6 Oct 2021 04:55:09 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:42017 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237593AbhJFIzH (ORCPT ); Wed, 6 Oct 2021 04:55:07 -0400 Received: from smtpclient.apple (p5b3d2185.dip0.t-ipconnect.de [91.61.33.133]) by mail.holtmann.org (Postfix) with ESMTPSA id C04F0CED39; Wed, 6 Oct 2021 10:53:10 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [PATCH v1] Bluetooth: Read codec capabilities only if supported From: Marcel Holtmann In-Reply-To: <20211005144556.22074-1-kiran.k@intel.com> Date: Wed, 6 Oct 2021 10:53:10 +0200 Cc: linux-bluetooth@vger.kernel.org, ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com Content-Transfer-Encoding: 7bit Message-Id: <4BC6025F-F036-4AB2-B6E3-9FEC5271F9F1@holtmann.org> References: <20211005144556.22074-1-kiran.k@intel.com> To: Kiran K X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Kiran, > Read codec capabilities only if HCI_READ_LOCAL_CODEC_CAPABILITIES > command is supported. If capablities are not supported, then > cache codec data without caps. > > Signed-off-by: Kiran K > --- > net/bluetooth/hci_codec.c | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel