From: Jouni Malinen Date: Thu, 11 Dec 2008 16:22:13 +0000 (+0200) Subject: ath9k: Do not remove header padding on RX from short frames X-Git-Tag: v2.6.29-rc1~581^2~203^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c5f89b3f6580cca21dca4ede940900c5b3c3a81;p=pandora-kernel.git ath9k: Do not remove header padding on RX from short frames The 802.11 header is only padded to 32-bit boundary when the frame has a non-zero length payload. In other words, control frames (e.g., ACK) do not have a padding and we should not try to remove it. This fixes monitor mode for short control frames. In addition, the hdrlen&3 use is described in more detail to make it easier to understand how the padding length is calculated. Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville --- Reading git-diff-tree failed