From patchwork Thu Apr 9 19:53:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 6190331 X-Patchwork-Delegate: kvalo@adurom.com 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 EA2FDBF4A6 for ; Thu, 9 Apr 2015 19:54:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F24092038F for ; Thu, 9 Apr 2015 19:54:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 270E22037B for ; Thu, 9 Apr 2015 19:54:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933344AbbDITyT (ORCPT ); Thu, 9 Apr 2015 15:54:19 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:37731 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933327AbbDITyR (ORCPT ); Thu, 9 Apr 2015 15:54:17 -0400 Received: by wiaa2 with SMTP id a2so1494286wia.0; Thu, 09 Apr 2015 12:54:16 -0700 (PDT) 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=CL3KlL2CwIVbCPWcCRtgT3Q2t6HuitMzrFT24gb7kxk=; b=FLvRxBupKlpAlNUgDCAbQdgaGRCaW+TLzu7b9UQHr8sqkfeDPKRejk32V1KX8MgEuZ mZI+l6cMaj6H+TeOFS7HISeu7EgQTf+JRn46wVckQewzGn5A850ddpskVlzowSYWO80Q zgZXj3xhByw38ijJVfHX3OJYEvYciS2Oli6jhUqs49MQXhuFKxs7JBcWkm9YdPLDLg9n mZzA7IQ3/4xoycvcJwimmzUVPky3+3muXhp14o7UNFXFn2gctMgUNBXB3RGvflvhdVQa xC1srAxBfmR5nidVQD0W17Zlxkx8wePHLExS9iASRHVWPZNnNlNoulAJyGr2Zlj+dxtE ewjg== X-Received: by 10.194.200.229 with SMTP id jv5mr63815480wjc.59.1428609256074; Thu, 09 Apr 2015 12:54:16 -0700 (PDT) Received: from tipsey.3.home (94.196.243.56.threembb.co.uk. [94.196.243.56]) by mx.google.com with ESMTPSA id df1sm3787664wib.12.2015.04.09.12.54.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Apr 2015 12:54:15 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley , Subject: [PATCH 2/2] staging: vt6655: implement IEEE80211_TX_STAT_NOACK_TRANSMITTED Date: Thu, 9 Apr 2015 20:53:44 +0100 Message-Id: <1428609224-3237-2-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1428609224-3237-1-git-send-email-tvboxspy@gmail.com> References: <1428609224-3237-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 Make use of this macro for non ack frames. Signed-off-by: Malcolm Priestley Cc: # v4.0 --- drivers/staging/vt6655/device_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 8f48c84..521d44f 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -912,7 +912,11 @@ static int vnt_int_report_rate(struct vnt_private *priv, if (!(tsr1 & TSR1_TERR)) { info->status.rates[0].idx = idx; - info->flags |= IEEE80211_TX_STAT_ACK; + + if (info->flags & IEEE80211_TX_CTL_NO_ACK) + info->flags |= IEEE80211_TX_STAT_NOACK_TRANSMITTED; + else + info->flags |= IEEE80211_TX_STAT_ACK; } return 0;