]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb02501bf395cafe56ae97a5c7d77986300bb46f3
tree97b4d3d7b70de67e782dd7185fc07bdf46bc7a32
parent67daf640b517d7a57e64a15da1128bb82b549c7a
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