diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-fh.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-fh.h b/drivers/net/wireless/iwlwifi/iwl-fh.h index 2c5f919dd847..e46300c28a8f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-fh.h +++ b/drivers/net/wireless/iwlwifi/iwl-fh.h | |||
@@ -266,6 +266,8 @@ | |||
266 | #define FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_NO_INT_VAL (0x00000000) | 266 | #define FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_NO_INT_VAL (0x00000000) |
267 | #define FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_INT_HOST_VAL (0x00001000) | 267 | #define FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_INT_HOST_VAL (0x00001000) |
268 | 268 | ||
269 | #define FH_RCSR_CHNL0_RX_CONFIG_SINGLE_FRAME (0x00008000) | ||
270 | |||
269 | 271 | ||
270 | /** | 272 | /** |
271 | * Rx Shared Status Registers (RSSR) | 273 | * Rx Shared Status Registers (RSSR) |
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 48d55741b769..876afd4cab9e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -218,8 +218,7 @@ int iwl_rx_queue_restock(struct iwl_priv *priv) | |||
218 | 218 | ||
219 | /* If we've added more space for the firmware to place data, tell it. | 219 | /* If we've added more space for the firmware to place data, tell it. |
220 | * Increment device's write pointer in multiples of 8. */ | 220 | * Increment device's write pointer in multiples of 8. */ |
221 | if ((write != (rxq->write & ~0x7)) | 221 | if (write != (rxq->write & ~0x7)) { |
222 | || (abs(rxq->write - rxq->read) > 7)) { | ||
223 | spin_lock_irqsave(&rxq->lock, flags); | 222 | spin_lock_irqsave(&rxq->lock, flags); |
224 | rxq->need_update = 1; | 223 | rxq->need_update = 1; |
225 | spin_unlock_irqrestore(&rxq->lock, flags); | 224 | spin_unlock_irqrestore(&rxq->lock, flags); |
@@ -440,6 +439,7 @@ int iwl_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq) | |||
440 | FH_RCSR_RX_CONFIG_CHNL_EN_ENABLE_VAL | | 439 | FH_RCSR_RX_CONFIG_CHNL_EN_ENABLE_VAL | |
441 | FH_RCSR_CHNL0_RX_IGNORE_RXF_EMPTY | | 440 | FH_RCSR_CHNL0_RX_IGNORE_RXF_EMPTY | |
442 | FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_INT_HOST_VAL | | 441 | FH_RCSR_CHNL0_RX_CONFIG_IRQ_DEST_INT_HOST_VAL | |
442 | FH_RCSR_CHNL0_RX_CONFIG_SINGLE_FRAME | | ||
443 | rb_size| | 443 | rb_size| |
444 | (rb_timeout << FH_RCSR_RX_CONFIG_REG_IRQ_RBTH_POS)| | 444 | (rb_timeout << FH_RCSR_RX_CONFIG_REG_IRQ_RBTH_POS)| |
445 | (rfdnlog << FH_RCSR_RX_CONFIG_RBDCB_SIZE_POS)); | 445 | (rfdnlog << FH_RCSR_RX_CONFIG_RBDCB_SIZE_POS)); |