iwlwifi: fix TX status for aggregated packets
authorJohannes Berg <johannes.berg@intel.com>
Tue, 25 Feb 2014 09:37:15 +0000 (10:37 +0100)
committerJiri Slaby <jslaby@suse.cz>
Sat, 22 Mar 2014 21:01:50 +0000 (22:01 +0100)
commitec849f74cd0ddcdf61de63c8bcdd803daf1e9b02
treecd4e747553c1658c1b15b509465bd8f29aa37c8c
parentfb625a814af36cb87fd382aee3fbf51da872c5cd
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/wireless/iwlwifi/dvm/tx.c
drivers/net/wireless/iwlwifi/mvm/tx.c