Return-path: Received: from mail.candelatech.com ([208.74.158.172]:50505 "EHLO ns3.lanforge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755645Ab2DQRrV (ORCPT ); Tue, 17 Apr 2012 13:47:21 -0400 From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: Ben Greear Subject: [PATCH v2 6/6] mac80211: Add sta_state to ethtool stats. Date: Tue, 17 Apr 2012 10:46:47 -0700 Message-Id: <1334684807-14026-7-git-send-email-greearb@candelatech.com> (sfid-20120417_194724_045118_B502EAFF) In-Reply-To: <1334684807-14026-1-git-send-email-greearb@candelatech.com> References: <1334684807-14026-1-git-send-email-greearb@candelatech.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Ben Greear Helps to know how the station is doing in it's association attempt. Signed-off-by: Ben Greear --- :100644 100644 94a340b... a7c62c4... M net/mac80211/cfg.c net/mac80211/cfg.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 94a340b..a7c62c4 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -117,7 +117,7 @@ static const char ieee80211_gstrings_sta_stats[][ETH_GSTRING_LEN] = { "rx_duplicates", "rx_fragments", "rx_dropped", "tx_packets", "tx_bytes", "tx_fragments", "tx_filtered", "tx_retry_failed", "tx_retries", - "beacon_loss", "txrate", "rxrate", "signal", + "beacon_loss", "sta_state", "txrate", "rxrate", "signal", "channel", "noise", "ch_time", "ch_time_busy", "ch_time_ext_busy", "ch_time_rx", "ch_time_tx" }; @@ -533,10 +533,12 @@ static void ieee80211_get_et_stats(struct wiphy *wiphy, data[i++] += sta->beacon_loss_count; if (!do_once) { - i += 3; + i += 4; goto after_once; } + data[i++] = sta->sta_state; + do_once = false; sinfo.filled = 0; sta_set_sinfo(sta, &sinfo); -- 1.7.3.4