]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: correct fragmentation threshold check
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 29 Apr 2009 21:35:56 +0000 (23:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 May 2009 20:22:08 +0000 (16:22 -0400)
commit4c9c1a2561955972585971299ed3f0967d117697
tree27c9984baf7f1224ffd09c9070f4b5afcb473944
parentfce9f0c1bbc190f2f822417745196c9a6db4ee82
mac80211: correct fragmentation threshold check

The fragmentation threshold is defined to be including the
FCS, and the code that sets the TX_FRAGMENTED flag correctly
accounts for those four bytes. The code that verifies this
doesn't though, which could lead to spurious warnings and
frames being dropped although everything is ok. Correct the
code by accounting for the FCS.

(JWL -- The problem is described here:
 http://article.gmane.org/gmane.linux.kernel.wireless.general/32205 )

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c