rt2x00: Fix the beacon length bug
commitb93ce437eba7e0232683326f30d9d1167a872fad
authorIwo Mergler <iwo@call-direct.com.au>
Sat, 19 Jul 2008 14:17:40 +0000 (19 16:17 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jul 2008 20:55:05 +0000 (29 16:55 -0400)
tree5f9a501d4407be45e7f3cab6312ae2e3c725278d
parent3e0c1abe748a30bc705a55f71bca8e04a83820f1
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