From patchwork Thu Mar 19 11:07:59 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: 6048361 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 0397E9F399 for ; Thu, 19 Mar 2015 11:08:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DB8620520 for ; Thu, 19 Mar 2015 11:08:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1A2A2051D for ; Thu, 19 Mar 2015 11:08:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753316AbbCSLI0 (ORCPT ); Thu, 19 Mar 2015 07:08:26 -0400 Received: from sabertooth02.qualcomm.com ([65.197.215.38]:16398 "EHLO sabertooth02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753307AbbCSLIY (ORCPT ); Thu, 19 Mar 2015 07:08:24 -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=1426763303; x=1458299303; h=from:to:cc:subject:date:message-id:mime-version; bh=OaMmnYQ8GU3PhBs9PMh5Q0QWgQewGX9nsW2U5jkqQYc=; b=L50EvWAW93LC+dxIPRkyi6pvziynhszpVFuVptrcmqT05NcXGnM9NOSz SwLR8WaZbQv6Q8iKz1DMln6zAMq2AiWbq43WUCGCM9yhGp1ZWKfWvicHB zxmtYxqH74L5P45adU0vQvV0dRQHdbzmFOwAYhKzKbMPESTQ6PljiPwmQ k=; X-IronPort-AV: E=McAfee;i="5600,1067,7744"; a="86208587" Received: from ironmsg03-l.qualcomm.com ([172.30.48.18]) by sabertooth02.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Mar 2015 04:08:23 -0700 X-IronPort-AV: E=Sophos;i="5.11,429,1422950400"; d="scan'208";a="866290014" Received: from nasanexm02d.na.qualcomm.com ([10.85.0.44]) by Ironmsg03-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 19 Mar 2015 04:08:23 -0700 Received: from aphydexm01f.ap.qualcomm.com (10.252.127.15) by NASANEXM02D.na.qualcomm.com (10.85.0.44) with Microsoft SMTP Server (TLS) id 15.0.995.29; Thu, 19 Mar 2015 04:08:22 -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; Thu, 19 Mar 2015 04:08:13 -0700 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Thu, 19 Mar 2015 16:38:04 +0530 From: Ashok Raj Nagarajan To: CC: , Ashok Raj Nagarajan Subject: [PATCH v2 1/2] ath10k: enable Adaptive Noise Immunity (ANI) by default Date: Thu, 19 Mar 2015 16:37:59 +0530 Message-ID: <1426763280-11284-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: NASANEXM01E.na.qualcomm.com (10.85.0.31) 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 helps to improve connectvity and performance in a noisy environment. Enabling this feature would help the user experience a better and stable wireless connection in a noisy environmnet. This feature is currently not enabled for ath10k. Enable this feature by default. Signed-off-by: Ashok Raj Nagarajan --- v2: Update commit log (Kalle Valo) 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);