From patchwork Fri Apr 27 21:24:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Aring X-Patchwork-Id: 10369865 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2FADE601BE for ; Fri, 27 Apr 2018 21:24:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FFF1294F2 for ; Fri, 27 Apr 2018 21:24:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 039A8294F5; Fri, 27 Apr 2018 21:24:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59E65294F2 for ; Fri, 27 Apr 2018 21:24:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759082AbeD0VYo (ORCPT ); Fri, 27 Apr 2018 17:24:44 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:45352 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757815AbeD0VYn (ORCPT ); Fri, 27 Apr 2018 17:24:43 -0400 Received: by mail-io0-f195.google.com with SMTP id r22-v6so4014851ioc.12 for ; Fri, 27 Apr 2018 14:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mdbqjxUTPjGfQe+9WOE8mtwAf4RGpTDL6sShgJ52/FU=; b=bOM56YBBLpv3LJGMVqskVMCbzsAsTkRZxeDNDVEKnzocW9d+/0IKSCXT7IaWh0LaEN DlUeSkLErCGy2U4yyAtoRbRYBoskh74ybgELKGqpGkvwF1zFuOasQBc87KJ6m9SPx1Hc CIJvt4PpwUhozGAArp71GgyRKV+OoS9jHP3tV9V6EMvGPbDy/bGfQL/QO+Gr/dTH5Pcy R8LOpaF7JlzpZV5OwTNcSDZQF3t33aSYFJ/AxmjqNLZPcQTvDDdaWii2AI5WFfhpHQM9 EF048gNQAYFcs+k7W0p6vsn2C2M29Zi5fQ3ZxBMCjjYbBGUNj+WSlpQX+3s+d3HbO44I JByA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mdbqjxUTPjGfQe+9WOE8mtwAf4RGpTDL6sShgJ52/FU=; b=tduvNGRdeZb9cn5wbD4BFLecvoQvAdndrENgYquV01UtfPct1JFSt5OAgo+ntqErp0 +FeGxSq4mfP0QjW0UWtitrIzXeBiMzCiFkXH368HIy77ZM+fVxsoOhvXeczPEumwEAw0 3lvepA56FquGk6KiLghq2e8MI3Wn96J1EhY8XPFpr374NJyft/paoHpiwV0KPtmFD1vi EzK8Ov8gtJJv6lhC2OOsNlgQJ7u/AnzROBxtabm5z8Mpq1PDXZwqghU8PDt9tsPW8m25 W/PJZr4ZdoeXF3O6wvbDr4Uzj14Dllz0Iu1CxW31xEdmI+8esmR1R/h4X8AjIkc0RzkJ IVMw== X-Gm-Message-State: ALQs6tDU3sjsgcCWC49l1ba4e8C2/q5MGIPZQOA/wyVxbZeNKKPGHcIN wOUQfN7ZWtbx7sK0/iY42xSSNQ== X-Google-Smtp-Source: AB8JxZpsbQuY7L6TCU6exN1+0sZwFqDA1LOyOiuRCHLouvyOWU7ToOZ0JmNRcrcccUReo5/AO7VaYA== X-Received: by 2002:a6b:89e0:: with SMTP id t93-v6mr3839782ioi.230.1524864282912; Fri, 27 Apr 2018 14:24:42 -0700 (PDT) Received: from x220t.lan ([64.26.149.125]) by smtp.gmail.com with ESMTPSA id r23-v6sm1050482ioe.9.2018.04.27.14.24.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Apr 2018 14:24:42 -0700 (PDT) From: Alexander Aring To: stefan@osg.samsung.com Cc: linux-wpan@vger.kernel.org, kernel@mojatatu.com, Alexander Aring Subject: [RFC PATCH wpan-tools 1/2] wpan-ping: fix ifname setting Date: Fri, 27 Apr 2018 17:24:17 -0400 Message-Id: <20180427212418.29729-2-aring@mojatatu.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180427212418.29729-1-aring@mojatatu.com> References: <20180427212418.29729-1-aring@mojatatu.com> Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fix ifname setting, we should use the ifname stored inside this string and not give the programming declaration where to find the string. Founded by code inspection. Signed-off-by: Alexander Aring --- wpan-ping/wpan-ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpan-ping/wpan-ping.c b/wpan-ping/wpan-ping.c index f825b22..791346c 100644 --- a/wpan-ping/wpan-ping.c +++ b/wpan-ping/wpan-ping.c @@ -194,7 +194,7 @@ static int get_interface_info(struct config *conf) { nl_socket_modify_cb(conf->nl_sock, NL_CB_VALID, NL_CB_CUSTOM, nl_msg_cb, conf); msg = nlmsg_alloc(); genlmsg_put(msg, NL_AUTO_PORT, NL_AUTO_SEQ, conf->nl802154_id, 0, NLM_F_DUMP, NL802154_CMD_GET_INTERFACE, 0); - nla_put_string(msg, NL802154_ATTR_IFNAME, "conf->interface"); + nla_put_string(msg, NL802154_ATTR_IFNAME, conf->interface); nl_send_sync(conf->nl_sock, msg); nl802154_cleanup(conf);