From patchwork Tue Dec 16 08:52:59 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: 5499901 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0F8CEBEEA8 for ; Tue, 16 Dec 2014 08:54:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3317320A20 for ; Tue, 16 Dec 2014 08:54:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CC0E820A1F for ; Tue, 16 Dec 2014 08:54:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751688AbaLPIyV (ORCPT ); Tue, 16 Dec 2014 03:54:21 -0500 Received: from mail-wg0-f51.google.com ([74.125.82.51]:58191 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751674AbaLPIyU (ORCPT ); Tue, 16 Dec 2014 03:54:20 -0500 Received: by mail-wg0-f51.google.com with SMTP id x12so16617529wgg.38 for ; Tue, 16 Dec 2014 00:54:19 -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=1LOOaSXOn7vehrPg22C6HQOzTHwHoCpbRixNSwYOi6I=; b=XH8GxnN8zea3tN1CqJUa6lHVAbYWAhoX1EdB7NFjEhv1QkQwX8KI9illxwx2tyRTr7 QGwNXsf1k7XyLU1DUhllxHkCQA1L5XaW32D9TnnSRB0Kb7rXdrfee3sOVB0+V8T/z8rH LCngM5jjwENE/O2bXwmDEd4YupwWhKaGj35Jw= 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=1LOOaSXOn7vehrPg22C6HQOzTHwHoCpbRixNSwYOi6I=; b=JYJM2kUsFLHTPmk27yiprYS8NXbzqPD4qd9pq2I7LUzNy7REavFTakGvsQdo9/MfFN kQhdLBdtCLEnnme9gf/N9jVm4ffJdlfx3j0XVZCPmW+FVrHmoqfyLW6Qq9GPofzxBnM5 622kj1ElXJ0Y1grjXxA8/eDVfbbbaj1i8TkJj9hoKyVnTlySaS2pIP0ezKhqliPBhEbs k7Yek3TOcOSQiGWIokWUu1bMekBLaa2mtHA5nM2WSXUHfLEjqaWB5SfGEdxJT37S6MXx G/uu9WZXjhJTiQ8xx26DeNC4H7UwOoDeErS7nEHMSLPCAOf3g69W4v/uo32frZfPMo54 tXbQ== X-Gm-Message-State: ALoCoQl+ruLreji6r3P6VS0zIQsKqlSCm2LqaWWL8OfpydWNbe/H1K7FBZepKVqLLb6W0ReRN8Au3veO8nUs16JWTb9ncdKlToreHkX7p78Kll0FeGd8HJWjQpABhbBSvtKqa6FLqg1+ X-Received: by 10.180.83.129 with SMTP id q1mr2836480wiy.8.1418720058941; Tue, 16 Dec 2014 00:54:18 -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 wx3sm270972wjc.19.2014.12.16.00.54.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Dec 2014 00:54:17 -0800 (PST) From: Janusz Dziedzic To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Janusz Dziedzic Subject: [PATCH 1/2] ath10k: fix low TX rates when IBSS and HT Date: Tue, 16 Dec 2014 09:52:59 +0100 Message-Id: <1418719980-19753-1-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 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 fix TX problem when IBSS used in HT mode. Before we used 6Mbps all the time for TX direction. Reported-by: Yeoh Chun-Yeow Signed-off-by: Janusz Dziedzic --- 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 5475f0f..c9e7995 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -1411,9 +1411,16 @@ static void ath10k_peer_assoc_h_qos(struct ath10k *ar, if (vif->bss_conf.qos) arg->peer_flags |= WMI_PEER_QOS; break; + case WMI_VDEV_TYPE_IBSS: + if (sta->wme) + arg->peer_flags |= WMI_PEER_QOS; + break; default: break; } + + ath10k_dbg(ar, ATH10K_DBG_MAC, "mac peer %pM qos %d\n", + sta->addr, !!(arg->peer_flags & WMI_PEER_QOS)); } static void ath10k_peer_assoc_h_phymode(struct ath10k *ar,