diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-07-18 13:53:09 +0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-04 15:09:09 -0400 |
commit | 4aa41f12aa4f08a10b0b07ed334faa3638ba8e9c (patch) | |
tree | 06ae60c3944a0520ab5994b4ba5dfa8d4f5a4200 /drivers/net/wireless/iwlwifi/iwl-tx.c | |
parent | c785d1d5018b93878a9280b0c04df96682cc6eff (diff) | |
download | kernel-crypto-4aa41f12aa4f08a10b0b07ed334faa3638ba8e9c.tar.gz kernel-crypto-4aa41f12aa4f08a10b0b07ed334faa3638ba8e9c.tar.xz kernel-crypto-4aa41f12aa4f08a10b0b07ed334faa3638ba8e9c.zip |
iwlwifi: bug fix in AGG flow - cast const to ULL
This patch fixes a bug in AGG flow:
u64 bitmap = 0;
bitmap |= 1 << 32 results to be 0xffffffff80000000.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
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/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 0182e4da8e3..39f19ebee97 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c @@ -1391,7 +1391,7 @@ static int iwl_tx_status_reply_compressed_ba(struct iwl_priv *priv, /* For each frame attempted in aggregation, * update driver's record of tx frame's status. */ for (i = 0; i < agg->frame_count ; i++) { - ack = bitmap & (1 << i); + ack = bitmap & (1ULL << i); successes += !!ack; IWL_DEBUG_TX_REPLY("%s ON i=%d idx=%d raw=%d\n", ack? "ACK":"NACK", i, (agg->start_idx + i) & 0xff, |