From patchwork Tue Apr 10 14:23:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Pillai X-Patchwork-Id: 10333259 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 88D686053F for ; Tue, 10 Apr 2018 14:24:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76BCC1FF83 for ; Tue, 10 Apr 2018 14:24:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B5F32018E; Tue, 10 Apr 2018 14:24:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23A6D2013C for ; Tue, 10 Apr 2018 14:24:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754123AbeDJOYI (ORCPT ); Tue, 10 Apr 2018 10:24:08 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39802 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754119AbeDJOYG (ORCPT ); Tue, 10 Apr 2018 10:24:06 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C539D60F8D; Tue, 10 Apr 2018 14:24:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523370245; bh=THDnMJbJk5NaxG3teMR3+Vls9sinPNiYW+AIc3qnS/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KFIIehnXnkH1D5bFq37I28zIk31JRJ86LXpympR2ztCQRxmXCb06NO2Bddc3thCc+ DmMbv1xRsxLCe7+cong4oRIbOoOmJPlIYsCQXcZfGV/CVkjRttFRrKvJmMkQ76ZHSm vdUaWVVaynqvbF97T7JDPNqx4Vnljkt0BSeCO1Gg= Received: from pillair-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pillair@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E908D60F5F; Tue, 10 Apr 2018 14:24:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523370245; bh=THDnMJbJk5NaxG3teMR3+Vls9sinPNiYW+AIc3qnS/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KFIIehnXnkH1D5bFq37I28zIk31JRJ86LXpympR2ztCQRxmXCb06NO2Bddc3thCc+ DmMbv1xRsxLCe7+cong4oRIbOoOmJPlIYsCQXcZfGV/CVkjRttFRrKvJmMkQ76ZHSm vdUaWVVaynqvbF97T7JDPNqx4Vnljkt0BSeCO1Gg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E908D60F5F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=pillair@codeaurora.org From: pillair@codeaurora.org To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Govind Singh , Rakesh Pillai Subject: [PATCH 4/4] ath10k: Enable sta idle power save Date: Tue, 10 Apr 2018 19:53:32 +0530 Message-Id: <1523370212-8778-5-git-send-email-pillair@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523370212-8778-1-git-send-email-pillair@codeaurora.org> References: <1523370212-8778-1-git-send-email-pillair@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Govind Singh Enable sta power save in fw for the targets that supports idle power save. The idle ps enable command will be ignored by the firmware which does not support this feature. Signed-off-by: Govind Singh Signed-off-by: Rakesh Pillai --- drivers/net/wireless/ath/ath10k/mac.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 7e02ca02b28e..1d9222af1bb2 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -4679,6 +4679,13 @@ static int ath10k_start(struct ieee80211_hw *hw) } } + param = ar->wmi.pdev_param->idle_ps_config; + ret = ath10k_wmi_pdev_set_param(ar, param, 1); + if (ret && ret != -EOPNOTSUPP) { + ath10k_warn(ar, "failed to enable idle_ps_config: %d\n", ret); + goto err_core_stop; + } + __ath10k_set_antenna(ar, ar->cfg_tx_chainmask, ar->cfg_rx_chainmask); /*