]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: vt6655: implement IEEE80211_TX_STAT_NOACK_TRANSMITTED
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 9 Apr 2015 19:53:44 +0000 (20:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Jun 2015 15:20:58 +0000 (08:20 -0700)
commit 6e44dc4be009eef60a1744e4a4b830131f6b9a8e upstream.

Make use of this macro for non ack frames.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index 9db7480191ac649ecce141a3e6bada1b017dd124..c427f8025c9aeac9cac5f171ab47836b8e8bb3f5 100644 (file)
@@ -911,7 +911,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;