Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp463856ybt; Wed, 17 Jun 2020 05:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwruYLA9k7gXZMgpzFvlFqK/R1VVB4QRD7AhWUhY7lM/oPewVa4iUhINW7vNOOcPPFUjyk7 X-Received: by 2002:a17:906:6d19:: with SMTP id m25mr7214604ejr.524.1592398295354; Wed, 17 Jun 2020 05:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592398295; cv=none; d=google.com; s=arc-20160816; b=NoafKbaspK/9YEheLsapKneRWvXwIxa3Rj6VyuAhlnoCqJ5oOWG+XAZINhfW4haTJq vP5MIYaW7lYJUqI/ShFtHnGmR7W0787u0OsOBjZNXHcCNu1g2CakHqxmYrJcbMOT1VSG s+sixfK6PAybENNGNdvTeCuNoUX9PWsVZnpfIMvmWj8dCx4qoF+nviaYMJMN6uJb8CV8 vbtFC33AqknQMFSsCDiioc85MB1aVKqwjMKo62DsjJkrcDIe9/MT/qRPMkrbl9BzSF0u +cwcWkma+2SH3ZqVDhOOZ8NTypYrS9SAevnPoSPm+yG/3VSe1qGytP7tkBgVYu424xvH OHGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YWWSxu84QgwG87fUszInV+LIVHh8hkqFZ6P3p/1B6ag=; b=KkKlRAn0qtOp2gEqKq8oGOgfQBhOXQBhbu3iadn4tPHkc1Jt2bSAi23DWVQVdmaonH dn9MVXOc6PqGdaGVWOLcseQ3elrfadR3sYVHBHG/fEwQ8lB9wtJ86tfPVoz7uMjUIH4c ABonGR/rpOXGORXwHThRtfm5a5sc5PjQlNvqC2k+lFfybpPJa1x83EOsnFJzUV2v3Rzx 4p0AQKPNNNDcZsMvSzPKyBFIaTXr70ArX/PQ4efaKP/pGkvfg9YXMlgc21hgBkrri8I5 NrS9za+69uqoohG2I5e6de6LHYbSkKNX4BMqiTH+WSTYt43yL6xkytn0DISDQUDhjgve GWgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=X+rI35qJ; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc28si12366832ejb.292.2020.06.17.05.50.58; Wed, 17 Jun 2020 05:51:35 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=X+rI35qJ; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725901AbgFQMuv (ORCPT + 99 others); Wed, 17 Jun 2020 08:50:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgFQMuu (ORCPT ); Wed, 17 Jun 2020 08:50:50 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C4EBC06174E for ; Wed, 17 Jun 2020 05:50:50 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id c11so1207906lfh.8 for ; Wed, 17 Jun 2020 05:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YWWSxu84QgwG87fUszInV+LIVHh8hkqFZ6P3p/1B6ag=; b=X+rI35qJ8/hZk9RRIh2L7GiMzOqK5oFRMQuD/l9i+EysQFoSf9D/yeXm7yxCZi3wJH BasssiMIbVl7H6YLtczbBgM/mv1VKhGIWUd8+om8R89hw4BEtlcZmCKlH0+2vYiR+eLA 3d3aVf6BqpMqKyPhWFwG06upQ5tWA7VIPJjeQ4TzKHCGZE8V86xN5frLzoU9kpeNSXGF vwFT5cnLzKi61vTLt1WpN0quvs9ei5ikdw6ycBod65qvKfEHGcHZHTZVFgq/fOS/C6sR 2gVEoBmfFVDT7kvBH957ohrrMxrn8LCl9uzrxWpTuzcuGgpyXdhI4/KQrJqOQOafnAj0 3nuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YWWSxu84QgwG87fUszInV+LIVHh8hkqFZ6P3p/1B6ag=; b=ievKg2F2S33rgVx6+OxI8cgfsOu+0THCPU4K9ER6HwXrVQnmvaeziXJZb1AjpIHifw 4QvtGLqXw/B7P+Sq+S0ribS2QZkGE9ioRi7LE5P24YBPbnlKH3nGOhgdXeNPbe8tTAQH GgzkcYrEAdzQH6AA7qKccwKCOpYBIhZT3K/C9z3X1SwJnn35mDCBuHCrH/AuoclijVCU CtxvP0LImNFEtzKTa55Vw7XRAvnpxKNzVq3Es44KJrAMl0m1p8M4bvkY7xHMr81i5eyb S19AYYygq18ymaVZPr8ZMhuUNAcnulVgWN/sNs02X379YojYPjPo+bDeNLoulTn3CCCe 854g== X-Gm-Message-State: AOAM533Dgkph/2bgZaWjiCmeNc67BfLy+/LO0rkc4IIWt/Pyv4Xv1SFK 9SK1U4kuyuWruXRF7KR59SlwvFwzYS1WpVIcVM08rw== X-Received: by 2002:a05:6512:3190:: with SMTP id i16mr4471126lfe.158.1592398248395; Wed, 17 Jun 2020 05:50:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alain Michaud Date: Wed, 17 Jun 2020 08:50:36 -0400 Message-ID: Subject: Re: [PATCH 14/14] Bluetooth: mgmt: Use command complete on success for set system config To: Marcel Holtmann Cc: BlueZ Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Marcel, On Wed, Jun 17, 2020 at 6:43 AM Marcel Holtmann wrote: > > The command status reply is only for failure. When completing set system > config command, the reply has to be command complete. > Reviewed-by: Alain Michaud > Signed-off-by: Marcel Holtmann > --- > net/bluetooth/mgmt_config.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/net/bluetooth/mgmt_config.c b/net/bluetooth/mgmt_config.c > index 8e7ad2a51dbb..8d01a8ff85e9 100644 > --- a/net/bluetooth/mgmt_config.c > +++ b/net/bluetooth/mgmt_config.c > @@ -247,9 +247,8 @@ int set_def_system_config(struct sock *sk, struct hci_dev *hdev, void *data, > buffer += exp_len; > } > > - return mgmt_cmd_status(sk, hdev->id, > - MGMT_OP_SET_DEF_SYSTEM_CONFIG, > - MGMT_STATUS_SUCCESS); > + return mgmt_cmd_complete(sk, hdev->id, > + MGMT_OP_SET_DEF_SYSTEM_CONFIG, 0, NULL, 0); > } > > int read_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data, > -- > 2.26.2 > Thanks, Alain