From patchwork Sun Feb 1 11:59:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 5756631 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2F359BF440 for ; Sun, 1 Feb 2015 12:00:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 53D75201F4 for ; Sun, 1 Feb 2015 12:00:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7E4B0201F2 for ; Sun, 1 Feb 2015 12:00:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752859AbbBAMAR (ORCPT ); Sun, 1 Feb 2015 07:00:17 -0500 Received: from mail-wg0-f46.google.com ([74.125.82.46]:54755 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752722AbbBAMAN (ORCPT ); Sun, 1 Feb 2015 07:00:13 -0500 Received: by mail-wg0-f46.google.com with SMTP id l2so34139427wgh.5 for ; Sun, 01 Feb 2015 04:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=boKxhKQv102HmhaqIX/2KdwZezBrGqzVHlJmxzgkX8o=; b=JtZ/dcn3MD+Lihwq9UtDc8TfUmDLnwT0ubaIbesgwwLccXmskGgeDnoSe8FVlVR7RM 62JVOa6+Z4F8oYKHZlEjHVS861awo7s78afPw87lxBF/aDrnved/5UpkgScvAxx9UtI4 4sgiBEp/pqNVUNFJaZVS8DKqbgvaPoyN/P7c91gHwpIG+yree6kAdF4u1HqLd+0440Cd 21lCO8Fmz8O9WRTLF/Ysh1MGEiRRPi3kbTwVKL60e9j42FitRA4aILfCbTxaASCR1Q4L XI7dYRZnYqeTcedVarnMFh9ToW1u4+fuIE52Hv1GxBQKk/xMszlBL1/lvdWxBGzl3ht5 B66Q== X-Received: by 10.180.96.37 with SMTP id dp5mr13769503wib.64.1422792012415; Sun, 01 Feb 2015 04:00:12 -0800 (PST) Received: from tipsey.3.home (94.196.240.163.threembb.co.uk. [94.196.240.163]) by mx.google.com with ESMTPSA id ud9sm15074446wib.5.2015.02.01.04.00.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 Feb 2015 04:00:11 -0800 (PST) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Malcolm Priestley Subject: [PATCH 3/6] staging: vt6655: Fix TD_FLAGS_NETIF_SKB only on TYPE_AC0DMA Date: Sun, 1 Feb 2015 11:59:40 +0000 Message-Id: <1422791983-3408-3-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422791983-3408-1-git-send-email-tvboxspy@gmail.com> References: <1422791983-3408-1-git-send-email-tvboxspy@gmail.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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 Allow only TD_FLAGS_NETIF_SKB on ring buffer TYPE_AC0DMA for data only transfers for correct reporting of tx rates. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/device_main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 870cafd..4324282 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -1234,12 +1234,13 @@ static int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb) head_td->buff_addr = cpu_to_le32(head_td->pTDInfo->skb_dma); - head_td->pTDInfo->byFlags = TD_FLAGS_NETIF_SKB; + if (dma_idx == TYPE_AC0DMA) { + head_td->pTDInfo->byFlags = TD_FLAGS_NETIF_SKB; - if (dma_idx == TYPE_AC0DMA) MACvTransmitAC0(priv->PortOffset); - else + } else { MACvTransmit0(priv->PortOffset); + } spin_unlock_irqrestore(&priv->lock, flags);