From patchwork Tue Apr 17 12:07:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Pillai X-Patchwork-Id: 10344863 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 8B5F16039A for ; Tue, 17 Apr 2018 12:07:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80C60286EB for ; Tue, 17 Apr 2018 12:07:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7560B28815; Tue, 17 Apr 2018 12:07:40 +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 EDB96286EB for ; Tue, 17 Apr 2018 12:07:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753099AbeDQMHi (ORCPT ); Tue, 17 Apr 2018 08:07:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43202 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752844AbeDQMHh (ORCPT ); Tue, 17 Apr 2018 08:07:37 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5E5336071A; Tue, 17 Apr 2018 12:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523966857; bh=THDnMJbJk5NaxG3teMR3+Vls9sinPNiYW+AIc3qnS/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CVo0YyvzoFN7LRq1xuOPFKN4wibsJCccmh3ZeSWfaQVVLJEOnz4RgpqsDJWmJSrRX VQzw5dVkFe3laNzYfqt9trpMXEHG/V190hMmE9+mLzqiS+33kOakPVMYXF5Z4dd0DI aY+jvH9Wy9yJP5uujd750OTUd+9MAJ78HqC22JJE= 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 BC5FB60385; Tue, 17 Apr 2018 12:07:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523966857; bh=THDnMJbJk5NaxG3teMR3+Vls9sinPNiYW+AIc3qnS/s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CVo0YyvzoFN7LRq1xuOPFKN4wibsJCccmh3ZeSWfaQVVLJEOnz4RgpqsDJWmJSrRX VQzw5dVkFe3laNzYfqt9trpMXEHG/V190hMmE9+mLzqiS+33kOakPVMYXF5Z4dd0DI aY+jvH9Wy9yJP5uujd750OTUd+9MAJ78HqC22JJE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BC5FB60385 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 v2 4/4] ath10k: Enable sta idle power save Date: Tue, 17 Apr 2018 17:37:01 +0530 Message-Id: <1523966821-21903-5-git-send-email-pillair@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523966821-21903-1-git-send-email-pillair@codeaurora.org> References: <1523966821-21903-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); /*