From: Amitkumar Karwar Date: Tue, 19 Aug 2014 12:24:24 +0000 (-0400) Subject: mwifiex: fix left_len calculation issue X-Git-Tag: fixes-against-v3.18-rc2~81^2~133^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2618d4fb0fb8e28d81f4f922727225470e31e717;p=pandora-kernel.git 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 Signed-off-by: Avinash Patil Signed-off-by: Cathy Luo Signed-off-by: John W. Linville --- Reading git-diff-tree failed