From patchwork Thu Nov 16 08:01:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramon Fried X-Patchwork-Id: 10060833 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 9476660230 for ; Thu, 16 Nov 2017 08:02:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86EA52A868 for ; Thu, 16 Nov 2017 08:02:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7968A2A857; Thu, 16 Nov 2017 08:02:22 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 18F772A857 for ; Thu, 16 Nov 2017 08:02:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933564AbdKPICT (ORCPT ); Thu, 16 Nov 2017 03:02:19 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:36840 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758617AbdKPICR (ORCPT ); Thu, 16 Nov 2017 03:02:17 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0F4BA606F8; Thu, 16 Nov 2017 08:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510819337; bh=zR5OLR3C+Vqdz+GxAsSlWzvgOTSD+2A2jzKajxWW9rs=; h=From:To:Cc:Subject:Date:From; b=I1yx7+OBHCwXwAki6gpTe9XovCD3qCJTXwzcI3cWEvf1SNAsgAgZUcrrFxZRSFI2/ 3dZu8y/SuyLMdp074SCdkLeh6S+Pz66DAxxo6LMJ62KLlA4z75s7QnZ0bBhE+OhU7A iad37coVqrtiQ8Puvqb0PBZpItMp2pyejfgYq8v4= Received: from lx-rfried.mea.qualcomm.com (unknown [185.23.60.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rfried@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 91D7C60240; Thu, 16 Nov 2017 08:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510819336; bh=zR5OLR3C+Vqdz+GxAsSlWzvgOTSD+2A2jzKajxWW9rs=; h=From:To:Cc:Subject:Date:From; b=fACfjtPf+62KfWsLHNlphwC4Fub+i4Ji4s50veLmKXtx979zuA/X4U9T/+w8HLyua sKV4RGmLeOdss/4gyQO7MWF6rcQrwnZStrk9dM2w7kWFlwQlN23lAo3TXNXYX40x53 QsldIMlMvCL4eUvL6OZk7Lj/ri25h8L64raJkCcA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 91D7C60240 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=rfried@codeaurora.org From: Ramon Fried To: kvalo@codeaurora.org Cc: k.eugene.e@gmail.com, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, bjorn.andersson@linaro.org, nicolas.dechesne@linaro.org, Eyal Ilsar , Ramon Fried Subject: [PATCH v4] wcn36xx: Set default BTLE coexistence config Date: Thu, 16 Nov 2017 10:01:26 +0200 Message-Id: <20171116080126.17239-1-rfried@codeaurora.org> X-Mailer: git-send-email 2.15.0 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: Eyal Ilsar If the value for the firmware configuration parameters BTC_STATIC_LEN_LE_BT and BTC_STATIC_LEN_LE_WLAN are not set the duty cycle between BT and WLAN is such that if BT (including BLE) is active WLAN gets 0 bandwidth. When tuning these parameters having a too high value for WLAN means that BLE performance degrades. The "sweet" point of roughly half of the maximal values was empirically found to achieve a balance between BLE and Wi-Fi coexistence performance. Signed-off-by: Eyal Ilsar Signed-off-by: Ramon Fried Acked-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 9c6590d5348a..6f1e741acf3e 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -73,6 +73,8 @@ static struct wcn36xx_cfg_val wcn36xx_cfg_vals[] = { WCN36XX_CFG_VAL(TX_PWR_CTRL_ENABLE, 1), WCN36XX_CFG_VAL(ENABLE_CLOSE_LOOP, 1), WCN36XX_CFG_VAL(ENABLE_LPWR_IMG_TRANSITION, 0), + WCN36XX_CFG_VAL(BTC_STATIC_LEN_LE_BT, 120000), + WCN36XX_CFG_VAL(BTC_STATIC_LEN_LE_WLAN, 30000), WCN36XX_CFG_VAL(MAX_ASSOC_LIMIT, 10), WCN36XX_CFG_VAL(ENABLE_MCC_ADAPTIVE_SCHEDULER, 0), };