From patchwork Mon Nov 24 14:04:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 5366751 Return-Path: X-Original-To: patchwork-ath10k@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 6B411C11AC for ; Mon, 24 Nov 2014 14:17:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98A462034B for ; Mon, 24 Nov 2014 14:17:25 +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 A8115200ED for ; Mon, 24 Nov 2014 14:17:24 +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 1XsuS7-0000OR-In; Mon, 24 Nov 2014 14:17:19 +0000 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XsuS6-0000K5-5O for ath10k@lists.infradead.org; Mon, 24 Nov 2014 14:17:18 +0000 Received: by mail-wi0-f170.google.com with SMTP id bs8so9130756wib.5 for ; Mon, 24 Nov 2014 06:16:56 -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=LwiQBoIUhJ1Q2ETGM/fX71GSDVFCdpdEKFstgI7NRaM=; b=M5t+NplMOGh3x4z7WUkjrvbzGODyD+0fEGp769JLJ+sTvZnBvcNI4cxZ/sFxmNsuo4 0i2y71yXxCyRQhidMupPc9cK3iH8rLBfyhD0We0rxa61kS/8b0NfNvSUUsFCVIvUetEw 1/DhVFOnT5xWkTlj1yVzl/uY4Vs9e4C3RjiXA= 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=LwiQBoIUhJ1Q2ETGM/fX71GSDVFCdpdEKFstgI7NRaM=; b=gyVzo5nMFe+HDjfGPxqp0stahdEOtKrzfcgDsicKVnKl1ijBdXAzwu6caDQBM6xtDm s1JQ7C1saNUled4XPnnS8cNp4PqYPyyKGtAV+yvQv1oSxn+IyKHG2nYSkjo2wJ/UKPLs K7vZAGQxtkK8oQJAMSPXTfRCvZkgMqVMwWeLUacWPhF4+B3uE+C3tg55AmAZdq4MbSZJ JmUAEss7b9b7a+Fguz4zTvCe17alp07YpDlQDG4UCNE2YouCuFRwmrWrvJUp21T4ProE w2enytNC7UrUzG45uuIcwlh5XWrHjk0UPInaKo2uDE9on9M9+7EnKrwOpIp896Vc6Y2d GIfg== X-Gm-Message-State: ALoCoQnQlibWZ8nEMMnKe7jBtBx88oKTDQ3LggSV62NfR+U5hQJDY0bYZcc+lMRoIYiTi4Nsn4WUWgDiwPIz6Ues8WolzHFYjHNWwOcQVGT7ya1zpC4bxI0WmOFJbZ8adp6yaztIEG+TaCcV0MDZQAucrdlirOQyOdsbz16DXY3LjiLy0bHu/9g= X-Received: by 10.180.218.74 with SMTP id pe10mr22410013wic.48.1416838616376; Mon, 24 Nov 2014 06:16:56 -0800 (PST) Received: from localhost.localdomain ([91.198.246.8]) by mx.google.com with ESMTPSA id p3sm21170714wjf.49.2014.11.24.06.16.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Nov 2014 06:16:55 -0800 (PST) From: Michal Kazior To: ath10k@lists.infradead.org Subject: [PATCH] ath10k: remove extra_tx_headroom Date: Mon, 24 Nov 2014 15:04:46 +0100 Message-Id: <1416837886-18377-1-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.5.3 X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141124_061718_395362_FA406F7A X-CRM114-Status: UNSURE ( 7.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-wireless@vger.kernel.org, Michal Kazior 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=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, 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 Comment was out-of-date. The headroom is no longer necessary because HTT Tx fragment list is stored in dma pool item associated with each sk_buff. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/mac.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 1245ac8..5bb9f83 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -4905,10 +4905,6 @@ int ath10k_mac_register(struct ath10k *ar) IEEE80211_HW_AP_LINK_PS | IEEE80211_HW_SPECTRUM_MGMT; - /* MSDU can have HTT TX fragment pushed in front. The additional 4 - * bytes is used for padding/alignment if necessary. */ - ar->hw->extra_tx_headroom += sizeof(struct htt_data_tx_desc_frag)*2 + 4; - ar->hw->wiphy->features |= NL80211_FEATURE_STATIC_SMPS; if (ar->ht_cap_info & WMI_HT_CAP_DYNAMIC_SMPS)