From patchwork Fri Jan 7 06:00:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Randolf X-Patchwork-Id: 462701 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p075xlSZ011252 for ; Fri, 7 Jan 2011 05:59:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754008Ab1AGF7q (ORCPT ); Fri, 7 Jan 2011 00:59:46 -0500 Received: from mail30s.wh2.ocn.ne.jp ([125.206.180.198]:19412 "HELO mail30s.wh2.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753888Ab1AGF7p (ORCPT ); Fri, 7 Jan 2011 00:59:45 -0500 Received: from vs3003.wh2.ocn.ne.jp (125.206.180.231) by mail30s.wh2.ocn.ne.jp (RS ver 1.0.95vs) with SMTP id 0-0438359982 for ; Fri, 7 Jan 2011 14:59:42 +0900 (JST) Received: (qmail 78699 invoked from network); 7 Jan 2011 05:59:42 -0000 Received: from unknown (HELO localhost6.localdomain6) (220.110.201.18) by with SMTP; 7 Jan 2011 05:59:42 -0000 Subject: [PATCH 4/4] iw: Add signal average to station dump information To: johannes@sipsolutions.net, linville@tuxdriver.com From: Bruno Randolf Cc: nbd@openwrt.org, linux-wireless@vger.kernel.org Date: Fri, 07 Jan 2011 15:00:41 +0900 Message-ID: <20110107060041.21507.24000.stgit@localhost6.localdomain6> In-Reply-To: <20110107060025.21507.11061.stgit@localhost6.localdomain6> References: <20110107060025.21507.11061.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 X-SF-Loop: 1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 07 Jan 2011 05:59:47 +0000 (UTC) diff --git a/station.c b/station.c index be2301f..6581d50 100644 --- a/station.c +++ b/station.c @@ -107,6 +107,9 @@ static int print_sta_handler(struct nl_msg *msg, void *arg) if (sinfo[NL80211_STA_INFO_SIGNAL]) printf("\n\tsignal: \t%d dBm", (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL])); + if (sinfo[NL80211_STA_INFO_SIGNAL_AVG]) + printf("\n\tsignal avg:\t%d dBm", + (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL_AVG])); if (sinfo[NL80211_STA_INFO_TX_BITRATE]) { if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX,