UPSTREAM: mwifiex: update cfg80211 with correct reason code when association fails
authorBing Zhao <bzhao@marvell.com>
Sat, 6 Oct 2012 01:50:33 +0000 (18:50 -0700)
committerGerrit <chrome-bot@google.com>
Sat, 6 Oct 2012 21:29:03 +0000 (14:29 -0700)
commit54033e63a12fe909dc9847e27a0b5b86baff4844
treee75efe62bfccf5d72c3e9f14e74cc99224f2686f
parent9fc0875583130bd69346d918580f6a1c9a30394d
UPSTREAM: mwifiex: update cfg80211 with correct reason code when association fails

This patch adds support to send correct reason code got from
firmware when association attempt fails. Also, the error message
displayed for association failure due to network incompatibility
is modified. Current message "cannot find ssid.." misleads user.

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 application
is informed with correct reason codes in various scenarios.

Change-Id: If89a1e85af82d8054fc65a8d6b95a3961ccd987b
Reviewed-on: https://gerrit.chromium.org/gerrit/34847
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: Bing Zhao <bzhao@marvell.com>
Tested-by: Bing Zhao <bzhao@marvell.com>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/scan.c