]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix left_len calculation issue
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 19 Aug 2014 12:24:24 +0000 (08:24 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Aug 2014 18:41:56 +0000 (14:41 -0400)
commit716479dcc47cd6ae93a6293d54826e654c0438b8
treeeb230e72c1b39dc52c52b2415f6959099d8b496f
parent59d37c107dabdc37b7aa32fe6efa096a17e4d20e
mwifiex: fix left_len calculation issue

While updating 'left_len' in each iteration, we should subtract
last TLV length not the accumulated length of TLVs parsed till
now.
This bug in parsing logic is exposed by newer firmware which adds
two TLVs in GET_HW_SPEC command response. Earlier firmwares used to
add only one TLV.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cmdevt.c