|
@@ -219,8 +219,6 @@ static void iwl_pcie_txq_update_byte_cnt_tbl(struct iwl_trans *trans,
|
|
|
|
|
|
scd_bc_tbl = trans_pcie->scd_bc_tbls.addr;
|
|
scd_bc_tbl = trans_pcie->scd_bc_tbls.addr;
|
|
|
|
|
|
- WARN_ON(len > 0xFFF || write_ptr >= TFD_QUEUE_SIZE_MAX);
|
|
|
|
-
|
|
|
|
sta_id = tx_cmd->sta_id;
|
|
sta_id = tx_cmd->sta_id;
|
|
sec_ctl = tx_cmd->sec_ctl;
|
|
sec_ctl = tx_cmd->sec_ctl;
|
|
|
|
|
|
@@ -239,6 +237,9 @@ static void iwl_pcie_txq_update_byte_cnt_tbl(struct iwl_trans *trans,
|
|
if (trans_pcie->bc_table_dword)
|
|
if (trans_pcie->bc_table_dword)
|
|
len = DIV_ROUND_UP(len, 4);
|
|
len = DIV_ROUND_UP(len, 4);
|
|
|
|
|
|
|
|
+ if (WARN_ON(len > 0xFFF || write_ptr >= TFD_QUEUE_SIZE_MAX))
|
|
|
|
+ return;
|
|
|
|
+
|
|
bc_ent = cpu_to_le16(len | (sta_id << 12));
|
|
bc_ent = cpu_to_le16(len | (sta_id << 12));
|
|
|
|
|
|
scd_bc_tbl[txq_id].tfd_offset[write_ptr] = bc_ent;
|
|
scd_bc_tbl[txq_id].tfd_offset[write_ptr] = bc_ent;
|