brcmfmac: fix bug in setting mgmt ie and parsing vndrs ie.
authorHante Meuleman <meuleman@broadcom.com>
Wed, 28 Nov 2012 20:44:13 +0000 (21:44 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Nov 2012 19:00:31 +0000 (14:00 -0500)
commitb41fc3d740ae80a82167acbe848583da4a74d006
treed56ef88463c41c76b3e52bef1d931f1e60638f6d
parent128ce3b6f3b5d3c59dd46de8fff6aef0c1d4ff51
brcmfmac: fix bug in setting mgmt ie and parsing vndrs ie.

Parsing vndrs ie was not taking len of tlv itself in account. Setting
mgmt ie was missing check for length indicating non configured ie and
wrongly checking available length.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c