From patchwork Tue Sep 6 14:51:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Manoharan, Rajkumar" X-Patchwork-Id: 1126552 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p86Eoe9i005593 for ; Tue, 6 Sep 2011 14:50:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754265Ab1IFOui (ORCPT ); Tue, 6 Sep 2011 10:50:38 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:24276 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754108Ab1IFOuh (ORCPT ); Tue, 6 Sep 2011 10:50:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=rmanohar@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1315320637; x=1346856637; h=from:to:cc:subject:date:message-id:mime-version; z=From:=20Rajkumar=20Manoharan=20|To:=20|CC:=20,=20Rajkumar=20Manoharan=0D=0A=09|Subject:=20[PATCH=201/2]=20ath9k:=20Ta ke=20the=20samples=20in=20unassociated=20state|Date:=20Tu e,=206=20Sep=202011=2020:21:07=20+0530|Message-ID:=20<131 5320668-2882-1-git-send-email-rmanohar@qca.qualcomm.com> |MIME-Version:=201.0; bh=wOsv7Hct80xB1BwPt77TuQnTXYa7+Z2mDXK2JFzIqDA=; b=qRKLigtGSoOh1on2e0PVlWxJ/E1un2aN4DrFYuPS3Hswd50xMd23fhDv DpWPro7m1SWicBFLdAeoYIzaTPmqAv7YeC00DYKjiq9TzleuimCDDUnmD QvRZNRtm9FS++WJ1C3WnjukhcaK+v40b7HpFPzhlEobPfNyCu8LpicoVt E=; X-IronPort-AV: E=McAfee;i="5400,1158,6460"; a="115637889" Received: from ironmsg04-r.qualcomm.com ([172.30.46.18]) by wolverine02.qualcomm.com with ESMTP; 06 Sep 2011 07:50:35 -0700 X-IronPort-AV: E=Sophos;i="4.68,338,1312182000"; d="scan'208";a="131937436" Received: from nasanexhub05.na.qualcomm.com ([129.46.134.219]) by Ironmsg04-R.qualcomm.com with ESMTP/TLS/RC4-MD5; 06 Sep 2011 07:50:35 -0700 Received: from NASJOEXHC01.na.qualcomm.com (10.234.56.15) by nasanexhub05.na.qualcomm.com (129.46.134.219) with Microsoft SMTP Server (TLS) id 8.3.83.0; Tue, 6 Sep 2011 07:50:35 -0700 Received: from qcamail1.atheros.com (10.12.7.11) by qcamail1.atheros.com (10.234.56.15) with Microsoft SMTP Server (TLS) id 14.1.323.3; Tue, 6 Sep 2011 07:50:33 -0700 Received: by qcamail1.atheros.com (sSMTP sendmail emulation); Tue, 06 Sep 2011 20:21:08 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH 1/2] ath9k: Take the samples in unassociated state Date: Tue, 6 Sep 2011 20:21:07 +0530 Message-ID: <1315320668-2882-1-git-send-email-rmanohar@qca.qualcomm.com> X-Mailer: git-send-email 1.7.6.1 MIME-Version: 1.0 X-Originating-IP: [10.12.7.11] 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 (demeter2.kernel.org [140.211.167.43]); Tue, 06 Sep 2011 14:50:41 +0000 (UTC) Currently the samples debugfs which maintains the snapshorts of mac/bb only on associated state. Hence to cover the unassociated issues, the samples are taken whenever the debugfs entry is read. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath9k/debug.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 727e8de..3d377ee 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c @@ -1381,6 +1381,8 @@ static int open_file_bb_mac_samps(struct inode *inode, struct file *file) vfree(buf); return -ENOMEM; } + /* Account the current state too */ + ath9k_debug_samp_bb_mac(sc); spin_lock_bh(&sc->debug.samp_lock); memcpy(bb_mac_samp, sc->debug.bb_mac_samp,