From: Al Viro Date: Wed, 19 Dec 2007 21:45:29 +0000 (-0500) Subject: airo: fix transmit_802_11_packet() X-Git-Tag: v2.6.25-rc1~1162^2~214 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=977b143c13e685081625704ac356b741d71c6a73;p=pandora-kernel.git airo: fix transmit_802_11_packet() a) gaplen would better be stored little-endian b) for control packets (shorter than 24-byte header) we ended up with bap_write(ai, hdrlen == 30 ? (const u16*)&gap.gaplen : (const u16*)&gap, 38 - hdrlen, BAP1); passing to card the data past the end of gap (i.e. random stuff from stack) and did _not_ feed the gaplen at the right offset. c) sending the contents of uninitialized fields of struct is Not Nice(tm) either Signed-off-by: Al Viro Signed-off-by: John W. Linville --- Reading git-diff-tree failed