]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix skb length issue when send a command to firmware
authorStone Piao <piaoyun@marvell.com>
Thu, 23 Aug 2012 03:26:31 +0000 (20:26 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 5 Sep 2012 18:53:29 +0000 (14:53 -0400)
commit4ae6f60be795a28069e2847b5a7a807abc8cc1df
tree4209063ec3c892b1083db499796a8faec2acb915
parentc062080a0082301e1a6c9aa34c5c5d651e520c96
mwifiex: fix skb length issue when send a command to firmware

When we send a command to firmware, we assumed that cmd_size
will be always less than or equal to the structure size of
host_cmd_ds_command. However, this is no longer true after
we added AP support. There are some AP commands that Custom
IE TLVs are included in command buffer, hence the cmd_size
gets enlarged by the TLV data. We need to increase the skb
length for the extra data.

Signed-off-by: Stone Piao <piaoyun@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cmdevt.c