Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2146536pxa; Mon, 3 Aug 2020 08:35:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQDXJ4h/OiaZGutRDCqgjR+sc1I82wLTpOYO2HuGLCjvnFgamlEpNpcxC7xE0lg1fOJvJ4 X-Received: by 2002:a05:6402:1504:: with SMTP id f4mr4820323edw.163.1596468906187; Mon, 03 Aug 2020 08:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596468906; cv=none; d=google.com; s=arc-20160816; b=qJVFSTJzwT6NzpX+FV+0g8QOv3yAqlyRVBzL4JBc04557CVBdVjIqozppMT06WZKKd QrH872pPzncdTwEVHVFXrGqXVK3iavIuoA4dcZhnBorp0eV+oigqTc5WaC3kRrtrbx76 3eqd2mjpty6hg+G5EaR9NLr3RkfbcFHSNCIs6uOJG7k/ee85y7ilbk8SI27gpHzZQwBl Emul5Unnu4tViK0ODthoG0s1BlNTf8h28TM6gMmn2hT/eZL2bRt0nXuCY6mw2hog2ZMu opDnKvsKB6SW8unrKZ0tqDMKdKr+ZT5+0DchukKuIkG+FaqMN+YvAXbvBmf3bRb+s7u8 HMOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WrNISnGpGNyEbGMbWbyHWvYPJ2bfzg2ltmH/ZP0f0Sk=; b=tpJk9rLznaL/s7GtXQ1ZPFZ9yebAhyV15bUWJB/4mNabdqfUi2rodbNKG+WEP6gNxH IywlTjoJ81N4iFJBfsW5jGd/6Nwd6kuOBcMeH1QjmlQnfjTNaXEVZtAq+g1eu3oOm/0f OuANIqbZfRGIBOqwqnaupdTuThm9hPA7NerlDK12kJbru6lmL8F2X3pV47V5RW2tbfEW skDeERxbnkoP6v+t4BreOS3YpE8Ar+qtDO0GpjiY5aD916hsb5i7wq4TPBBUCy0bHTFR kB+mq04DVmHgUH00DsM0znxRX/hw1jDLna16OwYtv97rRmjO+S93AYVopslWoXOmo0T6 PVYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 x6si10470631ede.204.2020.08.03.08.34.42; Mon, 03 Aug 2020 08:35:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727026AbgHCPdw (ORCPT + 99 others); Mon, 3 Aug 2020 11:33:52 -0400 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]:51543 "EHLO smail.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726971AbgHCPdv (ORCPT ); Mon, 3 Aug 2020 11:33:51 -0400 Received: from legolas.tu-ilmenau.de (unknown [141.24.111.199]) (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 96149580061; Mon, 3 Aug 2020 17:33:47 +0200 (CEST) From: Markus Theil To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Markus Theil Subject: [PATCH 4/4] iw: handle more mesh station info Date: Mon, 3 Aug 2020 17:33:36 +0200 Message-Id: <20200803153336.319773-4-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200803153336.319773-1-markus.theil@tu-ilmenau.de> References: <20200803153336.319773-1-markus.theil@tu-ilmenau.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Signed-off-by: Markus Theil --- station.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/station.c b/station.c index f8600b7..b2c5b9c 100644 --- a/station.c +++ b/station.c @@ -328,6 +328,9 @@ static int print_sta_handler(struct nl_msg *msg, void *arg) [NL80211_STA_INFO_TX_DURATION] = { .type = NLA_U64 }, [NL80211_STA_INFO_ACK_SIGNAL] = {.type = NLA_U8 }, [NL80211_STA_INFO_ACK_SIGNAL_AVG] = { .type = NLA_U8 }, + [NL80211_STA_INFO_AIRTIME_LINK_METRIC] = { .type = NLA_U32 }, + [NL80211_STA_INFO_CONNECTED_TO_AS] = { .type = NLA_FLAG }, + [NL80211_STA_INFO_CONNECTED_TO_GATE] = { .type = NLA_FLAG }, }; char *chain; struct timeval now; @@ -497,6 +500,18 @@ static int print_sta_handler(struct nl_msg *msg, void *arg) } printf("\n\tmesh plink:\t%s", state_name); } + if (sinfo[NL80211_STA_INFO_AIRTIME_LINK_METRIC]) + printf("\n\tmesh airtime link metric: %d", + nla_get_u32(sinfo[NL80211_STA_INFO_AIRTIME_LINK_METRIC])); + if (sinfo[NL80211_STA_INFO_CONNECTED_TO_GATE]) + printf("\n\tmesh connected to gate:\t%s", + nla_get_u8(sinfo[NL80211_STA_INFO_CONNECTED_TO_GATE]) ? + "yes" : "no"); + if (sinfo[NL80211_STA_INFO_CONNECTED_TO_AS]) + printf("\n\tmesh connected to auth server:\t%s", + nla_get_u8(sinfo[NL80211_STA_INFO_CONNECTED_TO_AS]) ? + "yes" : "no"); + if (sinfo[NL80211_STA_INFO_LOCAL_PM]) { printf("\n\tmesh local PS mode:\t"); print_power_mode(sinfo[NL80211_STA_INFO_LOCAL_PM]); -- 2.28.0