diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2008-12-18 21:37:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:23 -0500 |
commit | 8cd812bcda06645160b0b279e1a125271a73411c (patch) | |
tree | 5ac158f40ed46fe8c4f68dd7ebe701ac616655fd /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | cbba18c6e3d1b2610f9a63c4636247af26141686 (diff) |
iwl3945: use iwl_rb_status
This patch makes use of iwl_rb_status also in 3945. The structure
for 3945 is not the same but since only closed_rb_num filed is used
in both cases there is no reason to duplicate it.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index aaa6058dd8b0..207d55bea5fa 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -3588,7 +3588,7 @@ static void iwl3945_rx_handle(struct iwl_priv *priv) | |||
3588 | 3588 | ||
3589 | /* uCode's read index (stored in shared DRAM) indicates the last Rx | 3589 | /* uCode's read index (stored in shared DRAM) indicates the last Rx |
3590 | * buffer that the driver may process (last buffer filled by ucode). */ | 3590 | * buffer that the driver may process (last buffer filled by ucode). */ |
3591 | r = iwl3945_hw_get_rx_read(priv); | 3591 | r = le16_to_cpu(rxq->rb_stts->closed_rb_num) & 0x0FFF; |
3592 | i = rxq->read; | 3592 | i = rxq->read; |
3593 | 3593 | ||
3594 | if (iwl3945_rx_queue_space(rxq) > (RX_QUEUE_SIZE / 2)) | 3594 | if (iwl3945_rx_queue_space(rxq) > (RX_QUEUE_SIZE / 2)) |