diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2008-12-19 10:37:43 +0800 |
---|---|---|
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) | |
download | kernel_samsung_smdk4412-8cd812bcda06645160b0b279e1a125271a73411c.tar.gz kernel_samsung_smdk4412-8cd812bcda06645160b0b279e1a125271a73411c.tar.bz2 kernel_samsung_smdk4412-8cd812bcda06645160b0b279e1a125271a73411c.zip |
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 aaa6058dd8b..207d55bea5f 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) /* uCode's read index (stored in shared DRAM) indicates the last Rx * buffer that the driver may process (last buffer filled by ucode). */ - r = iwl3945_hw_get_rx_read(priv); + r = le16_to_cpu(rxq->rb_stts->closed_rb_num) & 0x0FFF; i = rxq->read; if (iwl3945_rx_queue_space(rxq) > (RX_QUEUE_SIZE / 2)) |