]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: reset skb->data after processing PCIe sleep confirm cmd respose
authorAvinash Patil <patila@marvell.com>
Thu, 21 Mar 2013 00:56:23 +0000 (17:56 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Mar 2013 18:54:45 +0000 (14:54 -0400)
commit90240a9093f83be7f81d17a981b2337e8584dbfc
tree222c37646264eaf825b24187ea115337d4517377
parent43d7fa38ad81c6f6d0bd486a558d31b7812c90be
mwifiex: reset skb->data after processing PCIe sleep confirm cmd respose

This patch is a bug fix for an issue wherein power save was not
working for PCIe. This happens because for processing power save
sleep confirm command we pull skb so that skb->data points ahead
of interface header. We use same skb to get other cmda responses
as well. So if we don't push skb after processing cmd response,
it results into reduction in skb->len and finally skb->len reaches
zero. This causes failure in processing sleep command response.
Fix this by pushing skb by INTF_HEADER_LEN at the end of command
response processing.

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>
drivers/net/wireless/mwifiex/pcie.c