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: 5492821 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 12830BEEA8 for ; Mon, 15 Dec 2014 12:36:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 29E00209EA for ; Mon, 15 Dec 2014 12:36:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54567209E3 for ; Mon, 15 Dec 2014 12:36:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750747AbaLOMgX (ORCPT ); Mon, 15 Dec 2014 07:36:23 -0500 Received: from mail-wi0-f178.google.com ([209.85.212.178]:44360 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750711AbaLOMgX (ORCPT ); Mon, 15 Dec 2014 07:36:23 -0500 Received: by mail-wi0-f178.google.com with SMTP id em10so8778728wid.17 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=mbHLR0vl+cN3pGAKUxnMBqKAGSDb4EEtASGkIQ+yifct76UltqPn9raRQADkGSEvRm d73BBAiliojF5uILcB114WepKU8oL8ImZLgafpZySrTKJ/JvOxlwBI0EExhpQEP+MBL7 rl0wwtEK9BoityGfzvM6HwypDqElgnYNLSSYmvlPkynssw4A0zgZrJQuhJ7HznXBQCYX /pap/Aa8Uv5bCA3UjcdlaAtbjWok66FMo7f2l6IbiuX4lJE2ICQPdk37+sDZ5IPRk8Xm L3SKrtrRrnpRv5ebWgELJzZRQIS7c9j9qUhBNcyapGWsRJahauoqMB6ZC6Fkcb4sZhqX 1jsA== X-Gm-Message-State: ALoCoQnzw0MwkZhtZlPgwAIJA/UkbmQiyfKkuNAKc3vffNjtEN3CHCl0hO3VLTdDJlpO9bEGCvqI/0QTeW4BlLvUfmgw2n7YnnHnN5yEYmOfwWkIzZiRdZFftvc+ylaLbh7Fdev3WgV3 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 Cc: linux-wireless@vger.kernel.org, Janusz Dziedzic 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 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 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. */