OSDN Git Service

iwlwifi: pcie: set cmd_len in the correct place
authorSara Sharon <sara.sharon@intel.com>
Mon, 20 Aug 2018 07:07:32 +0000 (10:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:15 +0000 (09:20 +0100)
commit116301fff70a37760959b100bb1228fa29147150
treea3a33542d5fb8e3c4c939a27e69e422accfca293
parentfd31ea11e87c58041d78fe2782d9d75c63c00174
iwlwifi: pcie: set cmd_len in the correct place

[ Upstream commit 956343a61226e1af3d146386f70a059feb567d0c ]

command len is set too early in the code, since when building
AMSDU, the size changes. This causes the byte count table to
have the wrong size.

Fixes: a0ec0169b7a9 ("iwlwifi: support new tx api")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c