UPSTREAM: mwifiex: correction in status codes used for association failure
authorBing Zhao <bzhao@marvell.com>
Fri, 18 Jan 2013 01:58:03 +0000 (17:58 -0800)
committerChromeBot <chrome-bot@google.com>
Fri, 18 Jan 2013 09:47:29 +0000 (01:47 -0800)
commit9e391d796a3f46ca5e49ee2ee448a82f883997d9
tree5cbb87c987e7aa5d765daea446c19ae989870b7d
parentfdeb05104ec71646376f9456cc6b342789fe2bf8
UPSTREAM: mwifiex: correction in status codes used for association failure

When AP responds with appropriate status code, we forward that
code correctly to cfg80211. But sometimes when there is no
response from AP, our firmware uses proprietary status codes.
We will map authentication timeout to WLAN_STATUS_AUTH_TIMEOUT
and other proprietary codes to WLAN_STATUS_UNSPECIFIED_FAILURE.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
BUG=chrome-os-partner:14966
TEST=check driver/wpa_supplicant logs and confirm that status
code 16 is informed for "status code=2 err=0xfffc a_id=0xffff"
authentication timeout and status code 1 is informed for
"status code=1 err=0xfffc a_id=0xffff" association timeout.

Change-Id: I8892b51073e41fe0f2db908a0f60046a806e1338
Reviewed-on: https://gerrit.chromium.org/gerrit/41611
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Bing Zhao <bzhao@marvell.com>
Tested-by: Bing Zhao <bzhao@marvell.com>
drivers/net/wireless/mwifiex/fw.h
drivers/net/wireless/mwifiex/join.c