mwifiex: remove redundant initialization for bss_descriptor
authorBing Zhao <bzhao@marvell.com>
Fri, 12 Apr 2013 17:34:18 +0000 (10:34 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:38:36 +0000 (15:38 -0400)
commitc43933e61ea9b630521bf0d5cf06c155478308a7
tree6c6706b2006fe66980d0ea451d64b685fffe80c0
parentd837a2ae40fd37bcbb5a42126e3d89c68c90fccc
mwifiex: remove redundant initialization for bss_descriptor

Initialization of bss_descriptor is unnecessary as the entire
structure will be overwritten by a memcpy followed by.

Initialize disable_11ac flag properly by setting it to true in
mwifiex_fill_new_bss_desc().

Reported-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/scan.c
drivers/net/wireless/mwifiex/sta_ioctl.c