Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4549982yba; Sun, 19 May 2019 22:39:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCseI+9kZXUQgmwiMdAGkc3tpDxZq1hDOHuj/IhtegpoS46s2vE3cmhqCm/LotoEmgs2/D X-Received: by 2002:a17:902:3143:: with SMTP id w61mr66495794plb.292.1558330782812; Sun, 19 May 2019 22:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558330782; cv=none; d=google.com; s=arc-20160816; b=ktIYcL3WYcUaEYdH4K13u+/lZN7M1TLmdWOQ2WXRGEhsHFNAYwTMT+1jAVleioLbXk qDWzqc9FP8pb8LGMtbaHkE5qk4ocn9v165CaoNcLe0aytnufgfKU+J3Xx7HAwgHmlZZp GVnS32eMYxxdTM+ixJjuKEUA6Sh/hDFt8fX/Dup8vVKZzwTYRVdqyRMc0lbeoUztPIR4 MPcq5r3tOotr5/jx6HwD4Oy1Nq6KO1oH2Ru3lkyMj2yCv5mrh3Vx3jVYjfjTBs4mjCkL s/aFrqUg6/QRI7ZdxsBU9Qv71wy9MjIN7Q/nFydzJH73RMoM7lPKjd/ASaII7ZKkI4BM OIpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=RPV/zo4F/mUIg26b3FLKszpaijjY/kKSXrZywpWbYok=; b=u7s9y9NdL/My4+iI2KQ4gmNhYqcIKneM4XdxR45NtgF4rQg68L/u8qy+oRNDaK6ope V2/gp9yeb8O9nKGysCVKXYBUIaaTdwPP4+DeGBRoV4KpWQa/XS4atSBd6TJSthuZbUfT er/HGsjyeBDpLTLcbE10AET6EWZBKCkruD4g/4xe8GEB4pyjozB0ez0DnPlEaaA4vL6p 2duFvgRBtakcGmBZpnoyUN/MqVlDdSiB7CKXDGlKzSBon+ErXZ6JsPP8zLlNwS9heje6 EZMNhx00O5tPdLwuM6zvtf6DpmislZGJZ0mU8kxRrR9RaS/amfKedo/aj5owmjBSnmP9 1jgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d137si16842453pga.23.2019.05.19.22.39.15; Sun, 19 May 2019 22:39:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725797AbfETEPP (ORCPT + 99 others); Mon, 20 May 2019 00:15:15 -0400 Received: from mga04.intel.com ([192.55.52.120]:47478 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbfETEPP (ORCPT ); Mon, 20 May 2019 00:15:15 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 May 2019 21:15:14 -0700 X-ExtLoop1: 1 Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by fmsmga001.fm.intel.com with ESMTP; 19 May 2019 21:15:14 -0700 Received: from orsmsx114.amr.corp.intel.com (10.22.240.10) by ORSMSX103.amr.corp.intel.com (10.22.225.130) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 19 May 2019 21:15:14 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.182]) by ORSMSX114.amr.corp.intel.com ([169.254.8.116]) with mapi id 14.03.0415.000; Sun, 19 May 2019 21:15:13 -0700 From: "Stotland, Inga" To: "daniele.biagetti@cblelectronics.com" CC: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH 1/4] meshctl: Subscription Delete message added to configuration client Thread-Topic: [PATCH 1/4] meshctl: Subscription Delete message added to configuration client Thread-Index: AdUL66zO9sHo+9FiTgiUDqkruHD+iwDEZ3kA Date: Mon, 20 May 2019 04:15:13 +0000 Message-ID: <12921b4b0de3636196735121c66296cb3b130170.camel@intel.com> References: <000601d50bf4$b0527f60$10f77e20$@cblelectronics.com> In-Reply-To: <000601d50bf4$b0527f60$10f77e20$@cblelectronics.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.254.176.192] Content-Type: multipart/signed; micalg=sha-1; protocol="application/x-pkcs7-signature"; boundary="=-xCGanzV4VvXTToCl6kLK" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --=-xCGanzV4VvXTToCl6kLK Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Daniele, On Thu, 2019-05-16 at 16:35 +0200, Daniele Biagetti wrote: > Subscription delete command/message added to the=20 > configuration client model. >=20 > Signed-off-by: Daniele Biagetti The submitted patches should not contain "Signed-off-by" >=20 > --- > tools/mesh/config-client.c | 40 > ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) >=20 > diff --git a/tools/mesh/config-client.c b/tools/mesh/config-client.c > index df2643622..bff38e7a3 100644 > --- a/tools/mesh/config-client.c > +++ b/tools/mesh/config-client.c > @@ -1042,6 +1042,44 @@ static void cmd_sub_get(int argc, char > *argv[]) > return bt_shell_noninteractive_quit(EXIT_SUCCESS); > } > =20 > +static void cmd_sub_del(int argc, char *argv[]) > +{ > + uint16_t n; > + uint8_t msg[32]; > + int parm_cnt; > + > + if (IS_UNASSIGNED(target)) { > + bt_shell_printf("Destination not set\n"); > + return bt_shell_noninteractive_quit(EXIT_FAILURE); > + } > + > + n =3D mesh_opcode_set(OP_CONFIG_MODEL_SUB_DELETE, msg); > + > + parm_cnt =3D read_input_parameters(argc, argv); > + if (parm_cnt !=3D 3) { > + bt_shell_printf("Bad arguments: %s\n", argv[1]); > + return bt_shell_noninteractive_quit(EXIT_FAILURE); > + } > + > + /* Per Mesh Profile 4.3.2.19 */ > + /* Element Address */ > + put_le16(parms[0], msg + n); > + n +=3D 2; > + /* Subscription Address */ > + put_le16(parms[1], msg + n); > + n +=3D 2; > + /* SIG Model ID */ > + put_le16(parms[2], msg + n); > + n +=3D 2; > + > + if (!config_send(msg, n)) { > + bt_shell_printf("Failed to send \"ADD > SUBSCRIPTION\"\n"); > + return bt_shell_noninteractive_quit(EXIT_FAILURE); > + } > + > + return bt_shell_noninteractive_quit(EXIT_SUCCESS); > +} > + > static void cmd_mod_appidx_get(int argc, char *argv[]) > { > uint16_t n; > @@ -1237,6 +1275,8 @@ static const struct bt_shell_menu cfg_menu =3D { > cmd_sub_add, "Add subscription"}, > {"sub-get", " ", > cmd_sub_get, "Get subscription"}, > + {"sub-del", " ", > + cmd_sub_del, "Delete subscription"}, > {"node-reset", NULL, cmd_node_res > et, > "Reset a node and remove it from > network"}, > {} }, Could you please re-format your patches so they do not contain DOS style end-of-line (^M)? Please make sure that you follow the guidelines from bluez/doc/coding-style.txt Also, a general comment about commit message style: it is strongly preferred that the commit subject line statement is in imprerative mood, see good description here:=20 https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53 Ome more thing. In general, when submitting a patch set, i.e., more than one patch, it's a good practice to precede the set with a cover letter (i.e., use --cover-letter option with your "git format-patch" command) that describes what is the purpose of this patch set. When submitting a single patch, a descriptive commit message is normally sufficient enough. Best regards, Inga --=-xCGanzV4VvXTToCl6kLK Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKbDCCBOsw ggPToAMCAQICEDabxALowUBS+21KC0JI8fcwDQYJKoZIhvcNAQEFBQAwbzELMAkGA1UEBhMCU0Ux FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5hbCBUVFAgTmV0 d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9vdDAeFw0xMzEyMTEwMDAwMDBa Fw0yMDA1MzAxMDQ4MzhaMHkxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEUMBIGA1UEBxMLU2Fu dGEgQ2xhcmExGjAYBgNVBAoTEUludGVsIENvcnBvcmF0aW9uMSswKQYDVQQDEyJJbnRlbCBFeHRl cm5hbCBCYXNpYyBJc3N1aW5nIENBIDRCMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA yzuW/y/g0bznz8BD48M94luFzqHaqY9yGN9H/W0J7hOVBpl0rTQJ6kZ7z7hyDb9kf2UW4ZU25alC i+q5m6NwHg+z9pcN7bQ84SSBueaYF7cXlAg7z3XyZbzSEYP7raeuWRf5fYvYzq8/uI7VNR8o/43w PtDP10YDdO/0J5xrHxnC/9/aU+wTFSVsPqxsd7C58mnu7G4VRJ0n9PG4SfmYNC0h/5fLWuOWhxAv 6MuiK7MmvTPHLMclULgJqVSqG1MbBs0FbzoRHne4Cx0w6rtzPTrzo+bTRqhruaU18lQkzBk6OnyJ UthtaDQIlfyGy2IlZ5F6QEyjItbdKcHHdjBX8wIDAQABo4IBdzCCAXMwHwYDVR0jBBgwFoAUrb2Y ejS0Jvf6xCZU7wO94CTLVBowHQYDVR0O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