]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Fix the byte alignment rule to avoid loss of bytes in a TCP segment
authorMyoungje Kim <mjei78@gmail.com>
Sun, 10 Mar 2013 06:16:05 +0000 (08:16 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 18 Mar 2013 11:54:06 +0000 (13:54 +0200)
commita155eb77acec586c38ce57bd2b403ef8b2d5a398
treec932a962e7ba43b0a6e9be7a8645f1ea076209bb
parent42a530e4f62a78d9948d96c85a5fb5fff162c0fb
ath6kl: Fix the byte alignment rule to avoid loss of bytes in a TCP segment

Either first 3 bytes of the first received tcp segment or last one
over MTU size file can be loss due to the byte alignment problem.
Although ATH6KL_HTC_ALIGN_BYTES was defined for 'extra bytes for htc header
alignment' in the patch "Fix buffer alignment for scatter-gather
I/O"(a09e716b2), there exists the bytes loss issue which means that it will be
truncated 3 bytes in the transmitted file contents if a file which has over MTU
size is transferred through TCP/IP stack.  It doesn't look like TCP/IP stack
bug of 3.5 or the latest version of kernel but the byte alignment issue.  This
patch is to use the roundup() function for the byte alignment rather than the
predefined ATH6KL_HTC_ALIGN_BYTES.

kvalo: fixed indentation

Signed-off-by: Myoungje Kim <mjei78@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/init.c
drivers/net/wireless/ath/ath6kl/main.c