]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix the beacon length bug
authorIwo Mergler <iwo@call-direct.com.au>
Sat, 19 Jul 2008 14:17:40 +0000 (16:17 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jul 2008 20:55:05 +0000 (16:55 -0400)
commit4a7c7a86d1d882e412f5e8c06e9007ec6628f019
tree5f9a501d4407be45e7f3cab6312ae2e3c725278d
parentfad05485b3ab160695edc1053207438293302b0a
rt2x00: Fix the beacon length bug

When setting up a beacon template, the length of the beacon is
calculated with the assumption that the SKB already contains
the Tx descriptor. In the case of beacons it doesn't.

This patch undoes the damage by adding the Tx descriptor length
to the beacon length. This is safe, because the shortest possible
beacon is longer than the Tx header.

Signed-off-by: Iwo Mergler <Iwo@call-direct.com.au>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt73usb.c