BACKPORT: mwifiex: fix corner case association failure

This patch corrects the error case in association path by returning
-1. Earlier "media_connected" used to remain on in this error case
causing failure for further association attempts.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Fixes: b887664d882ee4 ('mwifiex: channel switch handling for station')
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit a6139b6271f9f95377fe3486aed6120c9142779b
 git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git
 master)
[backport due to directory change]
Signed-off-by: Wei-Ning Huang <wnhuang@google.com>

BUG=chrome-os-partner:47848
TEST=`emerge-peach_pit chromeos-kernel-3_8`

Change-Id: Id5e5d2f4fd3dfacd315bfc9c6ab479ece93285be
Reviewed-on: https://chromium-review.googlesource.com/348302
Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org>
Tested-by: Wei-Ning Huang <wnhuang@chromium.org>
Reviewed-by: Wei-Ning Huang <wnhuang@chromium.org>
1 file changed