From patchwork Tue Jul 16 14:40:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sriram R X-Patchwork-Id: 11046185 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-2.web.codeaurora.org (Postfix) with ESMTP id BFD80138D for ; Tue, 16 Jul 2019 14:41:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF6F626247 for ; Tue, 16 Jul 2019 14:41:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A372B285E8; Tue, 16 Jul 2019 14:41:19 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5663D26247 for ; Tue, 16 Jul 2019 14:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=LmcTccqWjfXqHPcB6+ZlP0GhgToNISHp1EpY0hvqVgQ=; b=GXs vedfvQKAJSpEjf0d5/SqMajK5XFr+daoQmA5kG/A+i6lSnNNqAHd3aO0T+OGd+Ya5xuKBWcDHfkZP MUqJNjPZrGWMIh1+KLTbGCQoMH/boZ+p0qt54y5DIpGVcXqQ0e6OZSzuynqca4wq7xXwpEmOp73Rs eumDZAseJuSJ9wyi2cWeBDS6QpVtbiAp4E/6W0EFAi+EwBK57Us+mTuWdamFEtnrrOZ8dzOzg4FgX OSrScbjrZs8wGAmFYA67UB3uodArSmkMVcojLJNd2anU3i7NdyFFvZ1GjrpvOH9oD1CfuT80LXdXm 1GkFufDKE3eqxvqy0odF7NBMTAi5Z3Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hnOdq-0003VS-ES; Tue, 16 Jul 2019 14:41:18 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hnOdn-0003Uw-QC for ath11k@lists.infradead.org; Tue, 16 Jul 2019 14:41:17 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CC52F615E6; Tue, 16 Jul 2019 14:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563288074; bh=XTFXdnnuBZ/GpgsrQeSd+PVLYbjZhazSfoQU4iIU3gY=; h=From:To:Cc:Subject:Date:From; b=JUKWvv2WpQ784w91t/T9FWA7UMWmyFXIseNrl2Cge5To6DvPoe0MJ/pCExXi/PNAH iJRynAdjcsRz0GKTPlVmKKnIdMpz1Y9wDrs3zzEeLMqdx3dJvfyygXGbq+Z//Iv1Og PVy7rPza3jPcr7QA0wu2z4+1WJ3Vz7OaLtNiA13g= Received: from checstp253621-lin.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: srirrama@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 78724615C2; Tue, 16 Jul 2019 14:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1563288074; bh=XTFXdnnuBZ/GpgsrQeSd+PVLYbjZhazSfoQU4iIU3gY=; h=From:To:Cc:Subject:Date:From; b=JUKWvv2WpQ784w91t/T9FWA7UMWmyFXIseNrl2Cge5To6DvPoe0MJ/pCExXi/PNAH iJRynAdjcsRz0GKTPlVmKKnIdMpz1Y9wDrs3zzEeLMqdx3dJvfyygXGbq+Z//Iv1Og PVy7rPza3jPcr7QA0wu2z4+1WJ3Vz7OaLtNiA13g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 78724615C2 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=srirrama@codeaurora.org From: Sriram R To: ath11k@lists.infradead.org Subject: [PATCH] ath11k: Fix enabling dynamic bandwidth param Date: Tue, 16 Jul 2019 20:10:59 +0530 Message-Id: <1563288059-2753-1-git-send-email-srirrama@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190716_074115_874409_273B9DF0 X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sriram R MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the dynamic bandwidth pdev param is not enabled. Correct the parameter passed to enable this feature. This is required to dynamically switch bandwidth, for eg. when noise in injected in secondary channel of a 40MHz channel the fw will switch to 20MHz when this feature is enabled. Signed-off-by: Sriram R --- drivers/net/wireless/ath/ath11k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index dd164b5..3dc0615 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -3505,7 +3505,7 @@ static int ath11k_mac_op_start(struct ieee80211_hw *hw) goto err; } - ret = ath11k_wmi_pdev_set_param(ar, WMI_PDEV_PARAM_DYNAMIC_BW, 0, + ret = ath11k_wmi_pdev_set_param(ar, WMI_PDEV_PARAM_DYNAMIC_BW, 1, pdev->pdev_id); if (ret) { ath11k_err(ar->ab, "failed to enable dynamic bw: %d\n", ret);