From patchwork Tue Oct 20 12:16:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Holger Schurig X-Patchwork-Id: 54931 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9KCGbL5001904 for ; Tue, 20 Oct 2009 12:16:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751980AbZJTMQc (ORCPT ); Tue, 20 Oct 2009 08:16:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751934AbZJTMQc (ORCPT ); Tue, 20 Oct 2009 08:16:32 -0400 Received: from mx51.mymxserver.com ([85.199.173.110]:21189 "EHLO mx51.mymxserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751845AbZJTMQb (ORCPT ); Tue, 20 Oct 2009 08:16:31 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost.mx51.mymxserver.com (Postfix) with ESMTP id 916873A010; Tue, 20 Oct 2009 14:16:34 +0200 (CEST) X-Virus-Scanned: by Mittwald Mailscanner Received: from mx51.mymxserver.com ([127.0.0.1]) by localhost (mx51.mymxserver.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WH8WhHxfMiIY; Tue, 20 Oct 2009 14:16:34 +0200 (CEST) Received: from lin01.mn-solutions.de (pD95FA5CF.dip0.t-ipconnect.de [217.95.165.207]) by mx51.mymxserver.com (Postfix) with ESMTP id ED6DD3A018; Tue, 20 Oct 2009 14:16:32 +0200 (CEST) Received: by lin01.mn-solutions.de (Postfix, from userid 116) id 8424C1E004F; Tue, 20 Oct 2009 14:16:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.7-deb3 (2006-10-05) on lin01.mn-logistik.de X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, UPPERCASE_25_50 autolearn=ham version=3.1.7-deb3 Received: from mnz66.mn-solutions.de (mnz66.mn-solutions.de [192.168.233.66]) by lin01.mn-solutions.de (Postfix) with ESMTP id EC9431E0010; Tue, 20 Oct 2009 14:16:23 +0200 (CEST) From: Holger Schurig To: linux-wireless , Johannes Berg Subject: iw: [PATCH] display station noise Date: Tue, 20 Oct 2009 14:16:10 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200910201416.10574.hs4233@mail.mn-solutions.de> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Index: iw/link.c =================================================================== --- iw.orig/link.c 2009-10-20 12:32:55.000000000 +0200 +++ iw/link.c 2009-10-20 12:33:26.000000000 +0200 @@ -119,6 +119,7 @@ static int print_link_sta(struct nl_msg [NL80211_STA_INFO_RX_PACKETS] = { .type = NLA_U32 }, [NL80211_STA_INFO_TX_PACKETS] = { .type = NLA_U32 }, [NL80211_STA_INFO_SIGNAL] = { .type = NLA_U8 }, + [NL80211_STA_INFO_NOISE] = { .type = NLA_U8 }, [NL80211_STA_INFO_TX_BITRATE] = { .type = NLA_NESTED }, [NL80211_STA_INFO_LLID] = { .type = NLA_U16 }, [NL80211_STA_INFO_PLID] = { .type = NLA_U16 }, @@ -157,6 +158,9 @@ static int print_link_sta(struct nl_msg if (sinfo[NL80211_STA_INFO_SIGNAL]) printf("\tsignal: %d dBm\n", (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL])); + if (sinfo[NL80211_STA_INFO_NOISE]) + printf("\tnoise: %d dBm\n", + (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_NOISE])); if (sinfo[NL80211_STA_INFO_TX_BITRATE]) { if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX,