mwifiex: correct packet length for packets from SDIO interface
authorAvinash Patil <patila@marvell.com>
Tue, 5 Nov 2013 23:01:44 +0000 (15:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 18:57:01 +0000 (10:57 -0800)
commit0c17d9208119338ccb95d1b55ee74d7062928336
tree2b6d2417397a087cfabc0282c7c2b0eb93f6c7db
parentfb675efa409c853ca3464ad93c4cf5d8577ef5e0
mwifiex: correct packet length for packets from SDIO interface

commit d03b4aa77e1187b77dfe37d14a923547f00baa66 upstream.

While receiving a packet on SDIO interface, we allocate skb with
size multiple of SDIO block size. We need to resize this skb
after RX using packet length from RX header.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/sdio.c