From patchwork Wed Mar 25 08:14:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz.Dziedzic@tieto.com X-Patchwork-Id: 6089111 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9D8559F399 for ; Wed, 25 Mar 2015 08:19:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CABBA2037D for ; Wed, 25 Mar 2015 08:19:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C583720251 for ; Wed, 25 Mar 2015 08:19:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YagVn-0008SA-4I; Wed, 25 Mar 2015 08:18:03 +0000 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YagVj-0008MW-Iq for ath10k@lists.infradead.org; Wed, 25 Mar 2015 08:18:01 +0000 Received: by lbcgn8 with SMTP id gn8so11843298lbc.2 for ; Wed, 25 Mar 2015 01:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=SsRq50TiLVVHkaDX22drlef4n+dULZqKjBrEnyp93U0=; b=szpB9afcDEPEmqL+1/hXS2LQCu6WC0Cx0HvSz8xWMPWOLlBEIQVlsn818Wpjt56Skm 0gl0+gXRkqzT199ga7cRann/A5xotrMH1S34+mQSVU2JaDlPlv/kJqXjdpiN8UgZVzqT OHO5YxKSY+VdGq4PmfMlYPO/EoZDnphzkMu58= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SsRq50TiLVVHkaDX22drlef4n+dULZqKjBrEnyp93U0=; b=bDImvpItpI0RtjZcFmkqa77xmnPVtxcuHcoZHIEg528ulNAR/CWceSEgCr5+AROz9w 8a3reQKOkcDyY0w/XRhc54jmk5pI4zvAXtRLgIMegSpn98gGWPyEJq2PWe/KPrcUHDei 6jw1ZQdvKsEdcfBcWJbOsusvaX7xfng1SYvL+un9kIpZS6bEMs+/ifP18C80N2TcOpld pxyaaFYQmA3x8C/3lT+WBr8BSvBQcyX1eCnYKchwaEQk5kGYj+pfWlMojLKPNp8x6YB9 7AdEN+iyWY8j/5YxbgBJsayJiX8Ul8MGkozYS8cnxWhl3ViKXO8S0kAJCHcXm0Nxxxy5 DBbQ== X-Gm-Message-State: ALoCoQlcLHtgxxS/X2Lvq+hWK+dQvB9QfxZZJk2GVbd2hh/aqVZEYoVbwlp5VibPmvG34OB2gOs7eKL9p2mZdjRWRyUSQ/VHQtNAjZyKQr2ohRGAHZZdPKeyvBE0NtkSjyVc1jSrNQEGLhFMSzfy+b8quL5I4dOKXX2KX7IEZhIlE6AgS0Q66cc+MZEXEhKqWgY36tuh5FxQ X-Received: by 10.152.170.164 with SMTP id an4mr7430888lac.9.1427271448879; Wed, 25 Mar 2015 01:17:28 -0700 (PDT) Received: from localhost.localdomain (apn-77-113-71-242.dynamic.gprs.plus.pl. [77.113.71.242]) by mx.google.com with ESMTPSA id n15sm402831laa.36.2015.03.25.01.17.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Mar 2015 01:17:28 -0700 (PDT) From: Janusz Dziedzic To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: disable burst mode Date: Wed, 25 Mar 2015 09:14:51 +0100 Message-Id: <1427271291-31683-1-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150325_011759_812861_C46C2AB0 X-CRM114-Status: UNSURE ( 7.79 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Janusz Dziedzic , linux-wireless@vger.kernel.org X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Firmwares that indicate BURST_SERVICE as enabled could overwrite some wmm parameters (eg. txop). This could lead IOT and balancing issues. Hence disable this by default. Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath10k/mac.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 75dcd3a..b0d550b 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3079,6 +3079,7 @@ static int ath10k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) static int ath10k_start(struct ieee80211_hw *hw) { struct ath10k *ar = hw->priv; + u32 burst_enable; int ret = 0; /* @@ -3133,6 +3134,15 @@ static int ath10k_start(struct ieee80211_hw *hw) goto err_core_stop; } + if (test_bit(WMI_SERVICE_BURST, ar->wmi.svc_map)) { + burst_enable = ar->wmi.pdev_param->burst_enable; + ret = ath10k_wmi_pdev_set_param(ar, burst_enable, 0); + if (ret) { + ath10k_warn(ar, "failed to disable burst: %d\n", ret); + goto err_core_stop; + } + } + if (ar->cfg_tx_chainmask) __ath10k_set_antenna(ar, ar->cfg_tx_chainmask, ar->cfg_rx_chainmask);