mwifiex: fix struct member mismatch
authorJohannes Berg <johannes.berg@intel.com>
Wed, 28 Nov 2012 20:53:45 +0000 (21:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Nov 2012 19:00:33 +0000 (14:00 -0500)
commit904f137d478215b7c5c1daabae03618ed2f703cf
tree5ce35a36a8e9240b4aa14f113e7c4892ffe9108d
parent1b4e027e1b1176b70a59665c0de58c04c7a4e210
mwifiex: fix struct member mismatch

Using bss->information_elements and treating
bss->len_beacon_ies as its size is wrong, the
real size is len_information_elements.

Found while I was reviewing the use of this
cfg80211 API (as it is actually potentially
broken due to races.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_ioctl.c