mwifiex: save and copy AP's VHT capability info correctly
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 5 Mar 2014 02:43:14 +0000 (18:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Mar 2014 04:38:13 +0000 (21:38 -0700)
commit5184c0b7c349f6783986d1848a5f1cdf333075b1
treeae0f2dcb866207b3d21a012ed4e02393eea77a1d
parenteab0ff3d06510c626d121d51e599d4012847fd0f
mwifiex: save and copy AP's VHT capability info correctly

commit d51246481c7f28bbfa1f814ded2da65e531cd4b2 upstream.

While preparing association request, intersection of device's
VHT capability information and corresponding field advertised
by AP is used.

This patch fixes a couple errors while saving and copying vht_cap
and vht_oper fields from AP's beacon.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/11ac.c
drivers/net/wireless/mwifiex/scan.c