Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5477805ybl; Tue, 10 Dec 2019 06:43:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyJYvB3JOnZMvw2sljndCkSurbhr0FxoFL94OR9Ts4qxRMaHLhYHNgBpr6vU7OhIvO3cZII X-Received: by 2002:a9d:6315:: with SMTP id q21mr24762421otk.15.1575989039112; Tue, 10 Dec 2019 06:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575989039; cv=none; d=google.com; s=arc-20160816; b=xThoL5Zi+DC2IW7tB5JTNElAvK+xoj51MjTXV8z51yEZ2Hs+4tYQ1VGxyMZh5PG/5D RKFGoUmAyqaDaKuhMrc1aKYgJ7+5uU7uWu7xwscz+5lJtn++pf4HXXJNd3sgYBIDcyL/ QpUSxy5gsxXqT5nmEHS62MuOlKFlwEr69TqfaxxqOxdCHqIoWjoblUhq+bPGygNcI09K 5SHPlfmIUd1ZUrc9snvJFZ/CWFchBd4CrB5dlIDXG1t/vMaMTQoGXGsVT/OLuiKXW5tQ ZEwwlu6GH8QCV/86TBiL5dot3aPgAzw0gvbDz4OKo6p1RdGtRk2hCMDwL701kEe7vhSL 6ckQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=cE4HK7R129gVvSi2g/tMthhV2coy3T7BlSl3n7HLEBg=; b=ClLEFKjYVeoem9BeDGR1NUTONR4Xt3eQ9zf/tEwHlccjP1HI7gvwTtrBwr6Y8FLsfo FaeLDGXfErbT00eVWeMc9SuScBuJlJsrQcfwu3hA6RiIfdeRbOYE/gxzgbddI6gmSHII 7pOsrqv43uoeZ5cAyYEe5+1q+6/Pfj1XQJDK3HjReZUEY2DAT/LXqqHwkgHYM55LbWz4 X3Oq/lT7uQclt9cOm0apGeYEaO4Lwi+jsutfB6S1mlDzTbGxrfKH8hsdaYAJKQ2nGU7c mOGPRXDleU1doadiovDZ06yj1qQuH1VEEim5rF346RjIjibGoGzkID7jgv5XwI6ZpoDa llwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123si1946426oif.177.2019.12.10.06.43.48; Tue, 10 Dec 2019 06:43:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727380AbfLJOnq (ORCPT + 99 others); Tue, 10 Dec 2019 09:43:46 -0500 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]:44983 "EHLO smail.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727272AbfLJOnq (ORCPT ); Tue, 10 Dec 2019 09:43:46 -0500 Received: from [192.168.2.97] (unknown [141.24.207.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smail.rz.tu-ilmenau.de (Postfix) with ESMTPSA id 432ED580074; Tue, 10 Dec 2019 15:43:43 +0100 (CET) Subject: Re: [PATCH 1/2] iw: event: add new peer candidate command To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org References: <20191210144215.15263-1-markus.theil@tu-ilmenau.de> From: Markus Theil Autocrypt: addr=markus.theil@tu-ilmenau.de; keydata= mQINBFcopAYBEADBcwd5L8+T0zgqq4kYY4nQt6CYh5sOalHdI3zNE6fWbRbzQwViIlC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A+ZVLyMSt+tSpH8v3n+3I2AKoMAEQEA AYkCJQQYAQoADwUCVyikBgIbDAUJB4YfgAAKCRBt3CLaT/oEE7lZEACgrOxRaCQ7D5Rc4BOA N4VDIQqVch8X3pBE/k/v3UopkgmYnP4RlhegWr4wp2E6Vuyt8nwnZs3WhxQENfMjd5rV3WhG k5ib+pmLvtAht5j8jfP5+UKUTvX1a6oMi98PT8PuQ70oKM7T/KN+RpXIHoz/2Dgde1RQpwKC XWtkU9tBF87fE8FfwuqS6myOfd8zc6fOVV/fxmTXVC8qA7tB+0tOSDHB80GRYwnlumChOtOB Np8ABFWryE2e6mZZnp9Tpd1A74B45z6l445f5BixGLExAOoTJNA2k0JWx79/2Yi+pwTnQMzW QBLa48MnL3DUlVlahz1FZfGbA2U5NARS8iRdUhCaHL0Lph8HxWJwYA5w2afyCCwRD7xFo44V jsCNbqtZ6TrFARJdrbeWQl3RZ4Y+uuvN9mgvttVenAbx5d68IariYtXashucQeIMoqIloHTN sJDaupNm6+A9T3Re5yXmZsrWSxEEEGv1Bh+5DH6vauP0Ng0ebZ4c6jXfgLpPnAUWlV0rnmrJ q9141nbyLRYAhUXxiqajb+Zocp2Am4BF19rBUa1C78ooye9XShhuQvDTB6tZuiYWc24tiyqb IjR1hmG/zg8APhURAv/zUubaf4IA7v5YHVQqAbpUfb6ePlPVJBtVw2CwXFrGwnqDFh82La8D sGZPq8zmOtvOyZtafA== Message-ID: <3f28ddc8-ec46-49fb-f29f-f66f9f1128e6@tu-ilmenau.de> Date: Tue, 10 Dec 2019 15:43:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20191210144215.15263-1-markus.theil@tu-ilmenau.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 12/10/19 3:42 PM, Markus Theil wrote: > This patch prints information about mesh peering candidates. > > Signed-off-by: Markus Theil > --- > event.c | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/event.c b/event.c > index 4a932d1..f17e78e 100644 > --- a/event.c > +++ b/event.c > @@ -650,6 +650,24 @@ static void parse_nan_match(struct nlattr **attrs) > printf("\n"); > } > > +static void parse_new_peer_candidate(struct nlattr **attrs) > +{ > + char macbuf[ETH_ALEN * 3]; > + int32_t sig_dbm; > + > + printf("new peer candidate"); > + if (attrs[NL80211_ATTR_MAC]) { > + mac_addr_n2a(macbuf, nla_data(attrs[NL80211_ATTR_MAC])); > + printf(" %s", macbuf); > + } > + if (attrs[NL80211_ATTR_RX_SIGNAL_DBM]) { > + sig_dbm = nla_get_u32(attrs[NL80211_ATTR_RX_SIGNAL_DBM]); > + printf(" %i dBm", sig_dbm); > + } > + > + printf("\n"); > +} > + > static int print_event(struct nl_msg *msg, void *arg) > { > struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); > @@ -989,6 +1007,10 @@ static int print_event(struct nl_msg *msg, void *arg) > parse_nan_match(tb); > break; > } > + case NL80211_CMD_NEW_PEER_CANDIDATE: { > + parse_new_peer_candidate(tb); > + break; > + } > default: > printf("unknown event %d (%s)\n", > gnlh->cmd, command_name(gnlh->cmd)); Sorry, I accidentally sent this again :( -- Markus Theil Technische Universität Ilmenau, Fachgebiet Telematik/Rechnernetze Postfach 100565 98684 Ilmenau, Germany Phone: +49 3677 69-4582 Email: markus[dot]theil[at]tu-ilmenau[dot]de Web: http://www.tu-ilmenau.de/telematik