]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: Fix bug in computing crc over dynamic IEs in beacon
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Fri, 4 Dec 2009 12:11:34 +0000 (17:41 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 21:43:44 +0000 (13:43 -0800)
commit2a4a323ff6d44b68fb7013f1233a61becdf03951
tree1447ff4621b5e06e0b7d39e667e203d822314dec
parentc632519756afce9ab483a1bdd3f14d09f00c2c55
mac80211: Fix bug in computing crc over dynamic IEs in beacon

commit 1814077fd12a9cdf478c10076e9c42094e9d9250 upstream.

On a 32-bit machine, BIT() macro does not give the required
bit value if the bit is mroe than 31. In ieee802_11_parse_elems_crc(),
BIT() is suppossed to get the bit value more than 31 (42 (id of ERP_INFO_IE),
37 (CHANNEL_SWITCH_IE), (42), 32 (POWER_CONSTRAINT_IE), 45 (HT_CAP_IE),
61 (HT_INFO_IE)). As we do not get the required bit value for the above
IEs, crc over these IEs are never calculated, so any dynamic change in these
IEs after the association is not really handled on 32-bit platforms.
This patch fixes this issue.

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/mac80211/util.c