From patchwork Mon Dec 15 12:35:31 2014 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: 5492831 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EB2B79F1CD for ; Mon, 15 Dec 2014 12:37:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 01B0320A01 for ; Mon, 15 Dec 2014 12:37:04 +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 3882A209EA for ; Mon, 15 Dec 2014 12:37:03 +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 1Y0UtR-0006Vy-P8; Mon, 15 Dec 2014 12:36:53 +0000 Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y0UtP-0006QM-4f for ath10k@lists.infradead.org; Mon, 15 Dec 2014 12:36:52 +0000 Received: by mail-wg0-f53.google.com with SMTP id l18so14221237wgh.26 for ; Mon, 15 Dec 2014 04:36:22 -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=r/vv0KYr6wUEejPZXqonxASBW0aiaulyYmuRVEY46G4=; b=KPhRDHLKQSVr7e1E28ggY4Fgty+4J9lvP69vVA3hXsiig87OrDpy4++G4DGKS1i1VQ icqFbQhCEsSF+lZZ9n0p/uc6HIE4OVRUT/VyM0YO2Ci5omuqbylCR5/BRwxbEf7vcXSW lWzDg3LljNLa2njxH4GhMGxTgOeAomJzgKgvo= 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=r/vv0KYr6wUEejPZXqonxASBW0aiaulyYmuRVEY46G4=; b=VD/uQZPJn0na7w72EQ+1eQQdVu1pLxqltpbQ7Sj2x63ImCOsnc+SmbrniJFXGajI35 ufU04Bw8fmHa8V9Pi3GZGqPMknFE6w6273K8zhvE4UrFYuWKOXGbfDp55LBeNWJQmUrJ +WPBe+FxS2IaC5VwvdjE1puuwgJQKFaofbzj9XABH9DTd6DFFft0NwGobMMu/YIN+Zwr +KxsV4yy0yRHZz8FCBaWlsjbZ6JM0wMPT0z0aNAH7/wx7RrKlzTyp5KMfRf5+VEPxLGb nyDd+V0Q/S/N332AMPuO2l3u6jww8/aB64G4FZsz7UTlwrbOFtC+RN8eUpp6VKLNGA5y N0iw== X-Gm-Message-State: ALoCoQl5BIn6n3ev/oa2Luj3MywzcxNc/0136tAk9/8LX8v0DA7WGy2vAjCPmbCacexG0ooXWiB6G9j7lXwBxdmGfSe+zcckH9p84nPPeea71+aAHyDq8FqKOXoG4Z/f41I/vBeOj8najDZnvQbWD/0noiRQ4cULvElFyzq5RdGpevnPHdgERi1T7XYC1D8o/A9X6MZyFoBr X-Received: by 10.180.91.136 with SMTP id ce8mr27587465wib.29.1418646981937; Mon, 15 Dec 2014 04:36:21 -0800 (PST) Received: from localhost.localdomain (apn-46-169-60-23.dynamic.gprs.plus.pl. [46.169.60.23]) by mx.google.com with ESMTPSA id wb9sm13095335wic.20.2014.12.15.04.36.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Dec 2014 04:36:20 -0800 (PST) From: Janusz Dziedzic To: ath10k@lists.infradead.org Subject: [RFC] ath10k: allow to use HT rates when IBSS Date: Mon, 15 Dec 2014 13:35:31 +0100 Message-Id: <1418646931-6466-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-20141215_043651_327309_73F22333 X-CRM114-Status: UNSURE ( 9.11 ) 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 This fix TX problem when IBSS connected and enabled HT rates. Before we used 6Mbps all the time. Reported-by: Yeoh Chun-Yeow Signed-off-by: Janusz Dziedzic --- drivers/net/wireless/ath/ath10k/mac.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 5475f0f..d358dab 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1408,6 +1408,7 @@ static void ath10k_peer_assoc_h_qos(struct ath10k *ar, } break; case WMI_VDEV_TYPE_STA: + case WMI_VDEV_TYPE_IBSS: if (vif->bss_conf.qos) arg->peer_flags |= WMI_PEER_QOS; break; @@ -1635,6 +1636,17 @@ static int ath10k_station_assoc(struct ath10k *ar, return ret; } + if (arvif->vdev_type == WMI_VDEV_TYPE_IBSS) { + ret = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, + WMI_PEER_NSS, sta->rx_nss); + if (ret) { + ath10k_warn(ar, "failed to set nss param %d for STA %pM vdet %i: %d\n", + sta->rx_nss, sta->addr, + arvif->vdev_id, ret); + return ret; + } + } + /* Re-assoc is run only to update supported rates for given station. It * doesn't make much sense to reconfigure the peer completely. */