]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix cmd_skb headroom decreasing issue
authorBing Zhao <bzhao@marvell.com>
Wed, 6 Apr 2011 23:46:55 +0000 (16:46 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Apr 2011 20:57:35 +0000 (16:57 -0400)
commit27f223c7c53b10ef40de7e6c1dec449aae7a09ad
treecb732e325a8ca20b0dc985a3eeb0499df10a256b
parenta9707db2a9530377b44c2c194c3bca23ab276229
mwifiex: fix cmd_skb headroom decreasing issue

Before calling host_to_card() to send the cmd to firmware,
we use skb_push() to add 4 bytes SDIO interface header at
the start of the data buffer. Since cmd_skb data structure
will be re-used at a later time, we need to restore its
headroom by removing the 4 bytes header.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Marc Yang <yangyang@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cmdevt.c