In monitor mode the frame length that the driver gets from the skbuff variable is already the length of the MAC frame and does not need a correction (minus sizeof(prismheader)).
After the patch the lenght of a MAC frame is reproted correctly in ethereal etc. in bigendian like the other fields in the prismheader.
I found this bug because when you have a 802.11 ACK which has always 14 Bytes ethereal reproted a weird frame length. The problem is that the prismheader has a size of 144Bytes so when you do the math 14-144 for an uint32 you will get a very large 802.11 ACK Packet.
svn info:
Repository UUID: 0192ed92-7a03-0410-a25b-9323aeb14dbd
Revision: 1705
Node Kind: directory
Schedule: normal
Last Changed Author: proski
Last Changed Rev: 1705
Last Changed Date: 2006-08-15 19:14:37 +0200 (Tue, 15 Aug 2006)
Properties Last Updated: 2006-08-25 13:33:08 +0200 (Fri, 25 Aug 2006)
Signed-off-by: Oliver Stampfli <oliver.stampfli@epfl.ch>