From patchwork Tue Nov 14 07:23:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramon Fried X-Patchwork-Id: 10057087 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 CEA9B601D3 for ; Tue, 14 Nov 2017 07:24:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92FCF28FD6 for ; Tue, 14 Nov 2017 07:24:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8509A28FBD; Tue, 14 Nov 2017 07:24:04 +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 0DC5A28FBD for ; Tue, 14 Nov 2017 07:24:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753568AbdKNHYB (ORCPT ); Tue, 14 Nov 2017 02:24:01 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:35112 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752907AbdKNHXz (ORCPT ); Tue, 14 Nov 2017 02:23:55 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2C7226071C; Tue, 14 Nov 2017 07:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510644235; bh=dUG+L9ygfd9tAk3oj6Uvg3U7FV1Mbpoqsl5VkTkJ9aY=; h=From:To:Cc:Subject:Date:From; b=gIGkj3dLegV6zl9m7RrWYI5/goVVdQlvvSN2GbPBDIE12Dd94Z6H//D0sG4jpmu3K GL8CoAX2njWKb9hP14LSxfQoRGtJQ1VWlcyEwgLBKC7PzO56nSDI/lK9wb9NIk5e3f 0kb2C6pwmSBzEUYSOL0Em0I3yVhUxlcqGS9ncuto= 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 5DFEE60714; Tue, 14 Nov 2017 07:23:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510644234; bh=dUG+L9ygfd9tAk3oj6Uvg3U7FV1Mbpoqsl5VkTkJ9aY=; h=From:To:Cc:Subject:Date:From; b=hcVrXnOXhl3MSzf+S0K7IeIGvrHCVGogOX4IA3KVRR/9moh3NPV6PxfFwliTssgQC i6EltgpYhmgK0N/2qS05icO5uv9rXrvCbLtv8rFd29vQ5qC3H6WFESCKqHTK3ffjlr gLBGjaVgNqhmev+pP7p5oi331TtwlwHYWKKJ/F7A= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5DFEE60714 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 v3] wcn36xx: Set default BTLE coexistence config Date: Tue, 14 Nov 2017 09:23:19 +0200 Message-Id: <20171114072319.32705-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 --- drivers/net/wireless/ath/wcn36xx/smd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 9c6590d5348a..1c7598752255 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -72,8 +72,10 @@ static struct wcn36xx_cfg_val wcn36xx_cfg_vals[] = { WCN36XX_CFG_VAL(DYNAMIC_PS_POLL_VALUE, 0), 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_LPWR_IMG_TRANSITION, 0), WCN36XX_CFG_VAL(ENABLE_MCC_ADAPTIVE_SCHEDULER, 0), };