From patchwork Thu Jan 31 09:26:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 2071661 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id EE5E43FCDE for ; Thu, 31 Jan 2013 09:27:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753693Ab3AaJ1J (ORCPT ); Thu, 31 Jan 2013 04:27:09 -0500 Received: from narfation.org ([79.140.41.39]:42958 "EHLO v3-1039.vlinux.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753532Ab3AaJ1F (ORCPT ); Thu, 31 Jan 2013 04:27:05 -0500 Received: from sven-desktop.home.narfation.org (drsd-4db31f01.pool.mediaWays.net [77.179.31.1]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id A5E05940CE; Thu, 31 Jan 2013 10:27:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=narfation.org; s=20121; t=1359624424; bh=MVqpFWlxp8te4ORdMjQuRLv1vlq+gP9p6Zm/71qn5DE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sRe4JX219R96I4Yon23wu+uctJX0F6qvfY6Xhv2A+7jiQxOqVhERIgY6bE1LMDotR 8aARQURiKPFeIr/cnCRGS9t+ZWZpgmsHn/TeHZ4ISZvW+n/KEyeJV0OSPD67/DcwgL KCImLRygSQGpImdIXRVt0AU1osCYFOZzsytKD1Jc= From: Sven Eckelmann To: linux-wireless@vger.kernel.org Cc: mcgrof@qca.qualcomm.com, jouni@qca.qualcomm.com, vthiagar@qca.qualcomm.com, senthilb@qca.qualcomm.com, linville@tuxdriver.com, ath9k-devel@lists.ath9k.org, rodrigue@qca.qualcomm.com, Sven Eckelmann Subject: [PATCH 2/6] ath9k: Only process fft samples when ATH9K_DEBUGFS is enabled Date: Thu, 31 Jan 2013 10:26:45 +0100 Message-Id: <1359624409-14815-2-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1359624409-14815-1-git-send-email-sven@narfation.org> References: <1359624409-14815-1-git-send-email-sven@narfation.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The code can only be used when ATH9k_DEBUGFS is enabled an not when ATH_DEBUG is activated. Still enabling it would cause build failures. Signed-off-by: Sven Eckelmann --- drivers/net/wireless/ath/ath9k/recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 2af6f19..d372e4a 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c @@ -1027,7 +1027,7 @@ static s8 fix_rssi_inv_only(u8 rssi_val) static int ath_process_fft(struct ath_softc *sc, struct ieee80211_hdr *hdr, struct ath_rx_status *rs, u64 tsf) { -#ifdef CONFIG_ATH_DEBUG +#ifdef CONFIG_ATH9K_DEBUGFS struct ath_hw *ah = sc->sc_ah; u8 bins[SPECTRAL_HT20_NUM_BINS]; u8 *vdata = (u8 *)hdr;