From patchwork Mon Mar 2 10:21:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 5911321 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ABCBCBF440 for ; Mon, 2 Mar 2015 10:23:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E545C20212 for ; Mon, 2 Mar 2015 10:23:11 +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 76CA72012B for ; Mon, 2 Mar 2015 10:23:10 +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 1YSNVC-0000yj-DE; Mon, 02 Mar 2015 10:23:06 +0000 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YSNV8-0000ki-Rp for ath10k@lists.infradead.org; Mon, 02 Mar 2015 10:23:03 +0000 Received: by labgf13 with SMTP id gf13so4678522lab.5 for ; Mon, 02 Mar 2015 02:22:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=9LEExR5NwpTP9YSAmxCz7TTY1OxFi8CQ+hin8YAB0L0=; b=gTZgMRjlb3UDvbGJhnkcELvpHpEcW4OuShyoX37kuQD9XoK2DzK8BjEIkYzMXRrfhh IIFDXTFxWAxLeYfOZY7Zj37lhtCEY9coW2OHWsjmWzREyQBRmsCGIKv/jflxPQCrn5IW jV8JY07vc7I/hgG/mrTQk0EsRcaWMRHmoM36k= 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=9LEExR5NwpTP9YSAmxCz7TTY1OxFi8CQ+hin8YAB0L0=; b=cA5Z2fOFFo/NN5DCf3Jvbeez77/2TTK7ynrvMqHtou4kDtVa4KH0I37T06iNOvqN7c l1raytNAAxp2kk/dfHGUAZfI/URGIyr+JznFjmjqY45ZR7d4XLdCdPCHnNEfXx0z27Tr 97cqVlyewos353vFHJvnIYoJmxNwFzBnLEoTVxMSizrHdVGTo4B0xhG8ordo5xp6tZFx lNuNkyQZ0HKeFWlkq4Su1ge2MpCxXFD+BUbDezU1YRtyhadHDYTF6f70/xn17Sl1wRR1 Mn6OkrPAWS0HyOfxCbq3KzuR9sYAbnig1b2XNpUVhnVeoksLkXHK/t0Vfq7us7Gj0og/ heqg== X-Gm-Message-State: ALoCoQnubVk7dHQWazkSrZ/edkRmFcFZk+dLtITh6AwBY/6/e2Zvh64XLmmvVbxqjbXc1Ol1cLEnyaTWphT5S/BwShYYVufvSY74OqBGhvKRqJb9uRtjQPNwaIz+r+aZiJlaZQgJ+RZpIrqQwltMAcM75olue2TgOpYy5tF0DmOSw92BY4WAXyo= X-Received: by 10.152.115.136 with SMTP id jo8mr24212291lab.32.1425291758693; Mon, 02 Mar 2015 02:22:38 -0800 (PST) Received: from bob.homerouter.cpe (apn-77-113-114-198.dynamic.gprs.plus.pl. [77.113.114.198]) by mx.google.com with ESMTPSA id wp8sm2299485lbb.30.2015.03.02.02.22.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 02:22:38 -0800 (PST) From: Michal Kazior To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: improve 11b coex Date: Mon, 2 Mar 2015 11:21:17 +0100 Message-Id: <1425291677-1478-1-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.5.3 X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150302_022303_314878_96616E2B X-CRM114-Status: UNSURE ( 6.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-wireless@vger.kernel.org, Michal Kazior 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 This improves coexistance with 11b legacy devices on wmi-tlv and qca6174. Signed-off-by: Michal Kazior --- 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 0f39af7..3fcd0fd 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3577,6 +3577,13 @@ static void ath10k_bss_info_changed(struct ieee80211_hw *hw, if (ret) ath10k_warn(ar, "failed to recalculate rts/cts prot for vdev %d: %d\n", arvif->vdev_id, ret); + + vdev_param = ar->wmi.vdev_param->protection_mode; + ret = ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, + info->use_cts_prot ? 1 : 0); + if (ret) + ath10k_warn(ar, "failed to set protection mode %d on vdev %i: %d\n", + info->use_cts_prot, arvif->vdev_id, ret); } if (changed & BSS_CHANGED_ERP_SLOT) {