From patchwork Mon Nov 24 11:57:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Natarajan X-Patchwork-Id: 5365241 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 669969F2F5 for ; Mon, 24 Nov 2014 11:57:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C0FB203DB for ; Mon, 24 Nov 2014 11:57:56 +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 92FA3203DA for ; Mon, 24 Nov 2014 11:57:55 +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 1XssH9-00071b-Fi; Mon, 24 Nov 2014 11:57:51 +0000 Received: from sabertooth01.qualcomm.com ([65.197.215.72]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XssH7-0006qn-Ip for ath10k@lists.infradead.org; Mon, 24 Nov 2014 11:57:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1416830269; x=1448366269; h=from:to:cc:subject:date:message-id:mime-version; bh=kgdnZT9xKeZK+L+1P3Tn7MuZKLSFPovPPUff33lUJ2A=; b=IMZEKR2iQL3OQDQ+c6LVqq6wsB/BdHkCBWxXZlf1k4TzpRRAPg4MQZzj 2JE8CLYnW0XfDVSAZ1HFFvSP2yicyrOi7Mon3F6lpHfxPYy7HifcNmILq Y2jQHrAeYzgUp+eN/veroULK39NZgSlANB9Nf/hE1oz1olFuS1aXN4lll o=; X-IronPort-AV: E=McAfee;i="5600,1067,7631"; a="78766525" Received: from ironmsg01-lv.qualcomm.com ([10.47.202.180]) by sabertooth01.qualcomm.com with ESMTP; 24 Nov 2014 03:57:28 -0800 X-IronPort-AV: E=Sophos;i="5.07,448,1413270000"; d="scan'208";a="31844429" Received: from nasanexm01a.na.qualcomm.com ([10.85.0.81]) by ironmsg01-lv.qualcomm.com with ESMTP/TLS/RC4-SHA; 24 Nov 2014 03:57:28 -0800 Received: from qcmail1.qualcomm.com (10.80.80.8) by nasanexm01a.na.qualcomm.com (10.85.0.81) with Microsoft SMTP Server (TLS) id 15.0.913.22; Mon, 24 Nov 2014 03:57:26 -0800 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Mon, 24 Nov 2014 17:27:20 +0530 From: Vivek Natarajan To: Subject: [PATCH] ath10k: Do not limit RTS threshold value to 2347 Date: Mon, 24 Nov 2014 17:27:20 +0530 Message-ID: <1416830240-3019-1-git-send-email-nataraja@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01D.na.qualcomm.com (10.85.0.84) To nasanexm01a.na.qualcomm.com (10.85.0.81) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141124_035749_711407_1CF936F3 X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.1 (-----) Cc: ath10k@lists.infradead.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: , Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Increase the rts threshold from the legacy value of 2347 to support higher threshold limit. Signed-off-by: Vivek Natarajan --- drivers/net/wireless/ath/ath10k/mac.c | 6 +----- drivers/net/wireless/ath/ath10k/wmi.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 8b60749..61f7e22 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -391,15 +391,11 @@ static int ath10k_mac_set_kickout(struct ath10k_vif *arvif) return 0; } -static int ath10k_mac_set_rts(struct ath10k_vif *arvif, u32 value) +static int ath10k_mac_set_rts(struct ath10k_vif *arvif, u32 value) { struct ath10k *ar = arvif->ar; u32 vdev_param; - if (value != 0xFFFFFFFF) - value = min_t(u32, arvif->ar->hw->wiphy->rts_threshold, - ATH10K_RTS_MAX); - vdev_param = ar->wmi.vdev_param->rts_threshold; return ath10k_wmi_vdev_set_param(ar, arvif->vdev_id, vdev_param, value); } diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h index a38d788..8a4e779 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.h +++ b/drivers/net/wireless/ath/ath10k/wmi.h @@ -4547,7 +4547,6 @@ struct wmi_dbglog_cfg_cmd { __le32 config_valid; } __packed; -#define ATH10K_RTS_MAX 2347 #define ATH10K_FRAGMT_THRESHOLD_MIN 540 #define ATH10K_FRAGMT_THRESHOLD_MAX 2346