iwlwifi: fix a typo
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 25 Sep 2009 21:24:24 +0000 (14:24 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:39:35 +0000 (16:39 -0400)
We never have four chains, but let's fix the typo
while we noticed it. You count 0, 1, 2, 3, not
0, 1, 2, 4 :)

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-core.c

index 2908bff49a3bccb93e88318720762cb1a06ca3b1..5ff0f66f8aa138ff98d17da5e01218e5fecdc116 100644 (file)
@@ -984,7 +984,7 @@ static u8 iwl_count_chain_bitmap(u32 chain_bitmap)
        res = (chain_bitmap & BIT(0)) >> 0;
        res += (chain_bitmap & BIT(1)) >> 1;
        res += (chain_bitmap & BIT(2)) >> 2;
-       res += (chain_bitmap & BIT(4)) >> 4;
+       res += (chain_bitmap & BIT(3)) >> 3;
        return res;
 }