From patchwork Wed Mar 18 18:01:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Raj Nagarajan X-Patchwork-Id: 6042461 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 80DAE9F318 for ; Wed, 18 Mar 2015 18:02:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DAB620272 for ; Wed, 18 Mar 2015 18:02:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D960A2044C for ; Wed, 18 Mar 2015 18:02:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756547AbbCRSC2 (ORCPT ); Wed, 18 Mar 2015 14:02:28 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:9878 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756510AbbCRSCX (ORCPT ); Wed, 18 Mar 2015 14:02:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1426701743; x=1458237743; h=from:to:cc:subject:date:message-id:mime-version; bh=YXZ3CnTupJOFVMISKScKGakZv+rss3jaDOiWhBLpUkQ=; b=aR1WRVyXzD2MmgrjfXfbwQR4UJDUcE+6hRH6BCFUiGpk4JWTf5WdaPHY 0nCPo74CQcpCVuV/JG2HoRLWw/PPtS4wVanD6ttmnFQxTQKOZ6zyjdcqo 52XpTWFbeqF9PzZdzzLhpd1XaUv367Afo8q6c5tM3WhZfDj7vDJfTnS/R k=; X-IronPort-AV: E=McAfee;i="5600,1067,7744"; a="201201019" Received: from ironmsg04-l.qualcomm.com ([172.30.48.19]) by wolverine02.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 18 Mar 2015 11:02:22 -0700 X-IronPort-AV: E=Sophos;i="5.11,423,1422950400"; d="scan'208";a="840312952" Received: from nasanexm02h.na.qualcomm.com ([10.85.0.89]) by Ironmsg04-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 18 Mar 2015 11:02:01 -0700 Received: from aphydexm01f.ap.qualcomm.com (10.252.127.15) by nasanexm02h.na.qualcomm.com (10.85.0.89) with Microsoft SMTP Server (TLS) id 15.0.995.29; Wed, 18 Mar 2015 11:01:59 -0700 Received: from qcmail1.qualcomm.com (10.80.80.8) by aphydexm01f.ap.qualcomm.com (10.252.127.15) with Microsoft SMTP Server (TLS) id 15.0.995.29; Wed, 18 Mar 2015 11:01:52 -0700 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Wed, 18 Mar 2015 23:31:42 +0530 From: Ashok Raj Nagarajan To: CC: , Ashok Raj Nagarajan Subject: [PATCH 1/2] ath10k: enable ANI by default Date: Wed, 18 Mar 2015 23:31:39 +0530 Message-ID: <1426701700-21974-1-git-send-email-arnagara@qti.qualcomm.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01F.na.qualcomm.com (10.85.0.32) To aphydexm01f.ap.qualcomm.com (10.252.127.15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ANI is currently not enabled by default. Enable this feature by default. Signed-off-by: Ashok Raj Nagarajan --- drivers/net/wireless/ath/ath10k/mac.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 0f39af7..380d4b1 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -2896,6 +2896,14 @@ static int ath10k_start(struct ieee80211_hw *hw) goto err_core_stop; } + ret = ath10k_wmi_pdev_set_param(ar, + ar->wmi.pdev_param->ani_enable, 1); + if (ret) { + ath10k_warn(ar, "failed to enable ani by default: %d\n", + ret); + goto err_core_stop; + } + ar->num_started_vdevs = 0; ath10k_regd_update(ar);