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: 5911311 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@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 4897ABF440 for ; Mon, 2 Mar 2015 10:22:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 79E6E2020F for ; Mon, 2 Mar 2015 10:22:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 51C4B2012B for ; Mon, 2 Mar 2015 10:22:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753592AbbCBKWk (ORCPT ); Mon, 2 Mar 2015 05:22:40 -0500 Received: from mail-lb0-f174.google.com ([209.85.217.174]:34372 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750AbbCBKWk (ORCPT ); Mon, 2 Mar 2015 05:22:40 -0500 Received: by lbiv13 with SMTP id v13so10344822lbi.1 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=X3LbP+Y4n0B4UNUX4d9heex8ty1pUCYj/EgnJpCfxIpeKaePAyLDPU70n4NZrWRk6S UuaNJsrTzTsbZX/kN9g1NDj8HtXZi8bBgCV9xnYtzasRjihmAjhia3QmX21n0TQiT/St wBvAxqVsJ4ktnFUXC3EiMFIebjalUYmL1fI0V5QFyHfAG8RIW0AJjN+06rKm9srO8dwJ /tTkU9WnxK59fnUAyfdIRzic4YZwaI1e6e91pkokRibRj3lEOTXoIcXkEzGkwnB/DLFA LAU6agqcBzuhrJjqSrZyVN9BDs28EIIOOJJ0gGpE0udCm6ivTpBnae8gT5xoNjdBCXXj fhFw== X-Gm-Message-State: ALoCoQnfLxj/qb//HaRE5Y4vQy43iVs8RwlDyDJOChVoDJCQ6/XYzY7JBxO123H3jOg4dQq3oqAR+Se2Im+rMhC1oZVGDEkUBkZu+/xU8vsUCMDRx+YMdX83ilQqTy5NSf+hnSb0+gPb 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 Cc: linux-wireless@vger.kernel.org, Michal Kazior 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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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) {