iwlwifi: fix TX status for aggregated packets
authorJohannes Berg <johannes.berg@intel.com>
Tue, 25 Feb 2014 09:37:15 +0000 (10:37 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 1 Apr 2014 23:58:56 +0000 (00:58 +0100)
commit7d1cce6a938cad067edbb4522b587df60afc4730
treeb4eb1959143fa48316199beb78faf340b06752a8
parent077f632633e0d19353b1140afcda3c6635202a32
iwlwifi: fix TX status for aggregated packets

commit 143582c6847cb285b361804c613127c25de60ca4 upstream.

Only the first packet is currently handled correctly, but then
all others are assumed to have failed which is problematic. Fix
this, marking them all successful instead (since if they're not
then the firmware will have transmitted them as single frames.)

This fixes the lost packet reporting.

Also do a tiny variable scoping cleanup.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
[Add the dvm part]
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[bwh: Backported to 3.2:
 - Drop the mvm part
 - Adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/iwlwifi/iwl-agn-tx.c