diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-01-23 23:00:51 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-01-23 23:00:51 +0400 |
commit | cfa9c3fba738031ae107039ed7da0819f2c02502 (patch) | |
tree | da94fedf2f79af10150e23c930208b1e66f78df5 | |
parent | e4e19c031901e95dc7d1cf0a2c9c50525d71651f (diff) | |
parent | 23e76d1a516eef416fb5c038791e943fc0916b67 (diff) | |
download | linux-cfa9c3fba738031ae107039ed7da0819f2c02502.tar.xz |
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/tx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/tx.c b/drivers/net/wireless/iwlwifi/pcie/tx.c index 3b14fa8abfc7..3d549008b3e2 100644 --- a/drivers/net/wireless/iwlwifi/pcie/tx.c +++ b/drivers/net/wireless/iwlwifi/pcie/tx.c @@ -289,13 +289,15 @@ static void iwl_pcie_txq_inval_byte_cnt_tbl(struct iwl_trans *trans, */ void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_txq *txq) { + struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); u32 reg = 0; int txq_id = txq->q.id; if (txq->need_update == 0) return; - if (trans->cfg->base_params->shadow_reg_enable) { + if (trans->cfg->base_params->shadow_reg_enable || + txq_id == trans_pcie->cmd_queue) { /* shadow register enabled */ iwl_write32(trans, HBUS_TARG_WRPTR, txq->q.write_ptr | (txq_id << 8)); |