aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/pcie/tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie/tx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/pcie/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/tx.c b/drivers/net/wireless/iwlwifi/pcie/tx.c
index 005e2cfb2f41..282a5cafa913 100644
--- a/drivers/net/wireless/iwlwifi/pcie/tx.c
+++ b/drivers/net/wireless/iwlwifi/pcie/tx.c
@@ -1262,7 +1262,7 @@ static int iwl_pcie_enqueue_hcmd(struct iwl_trans *trans,
1262 for (i = 0; i < IWL_MAX_CMD_TBS_PER_TFD; i++) { 1262 for (i = 0; i < IWL_MAX_CMD_TBS_PER_TFD; i++) {
1263 int copy = 0; 1263 int copy = 0;
1264 1264
1265 if (!cmd->len) 1265 if (!cmd->len[i])
1266 continue; 1266 continue;
1267 1267
1268 /* need at least IWL_HCMD_SCRATCHBUF_SIZE copied */ 1268 /* need at least IWL_HCMD_SCRATCHBUF_SIZE copied */