]> git.baikalelectronics.ru Git - kernel.git/commit
wl1271: Fix RX data path frame lengths
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Fri, 14 May 2010 07:46:24 +0000 (10:46 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 May 2010 18:40:00 +0000 (14:40 -0400)
commit18651fd54db3269bcdcb59fca7349dfac777dbde
tree158f83d8456cb7ad7899cee2bdceaa9ad512577a
parent712396e3e7d6dbc9a0a8668f323ffc8ef274c58a
wl1271: Fix RX data path frame lengths

The current frame length used by the driver for RX frames is the SPI bus
transfer length. This length has padding bytes, which do not belong to the
WLAN frame.

As there is no other length information in the WLAN frame except the skb
length this problem caused for instance extra ESSID's to be listed at the
end of scan results (IE id 0) with zero length.

Fix the frame length by removing padding.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/wl1271_rx.c