iwlwifi: fix TX status for aggregated packets
authorJohannes Berg <johannes.berg@intel.com>
Tue, 25 Feb 2014 09:37:15 +0000 (10:37 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 27 Feb 2014 08:28:03 +0000 (10:28 +0200)
commit143582c6847cb285b361804c613127c25de60ca4
tree97b4d3d7b70de67e782dd7185fc07bdf46bc7a32
parente7eb65cac0720df8b3946af7f7a9dc363cf0a814
iwlwifi: fix TX status for aggregated packets

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
[Add the dvm part]
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/dvm/tx.c
drivers/net/wireless/iwlwifi/mvm/tx.c