diff options
author | Jouni Malinen <j@w1.fi> | 2012-09-30 12:29:38 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-17 05:02:11 -0400 |
commit | 0f4126e8918985ccc1beb936efd4b9d1e9005a63 (patch) | |
tree | 8257157e6db9db30a52d4ac1e0b8945ec711cef1 /net/mac80211/mlme.c | |
parent | 700e8ea6770df3113e735bcc76ecd6ffac71a13c (diff) |
mac80211: Add debug print on unexpect authentication state
This is useful when debugging authentication process issues.
Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index a79bea5b93b7..04334b0b6b4e 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1898,8 +1898,13 @@ ieee80211_rx_mgmt_auth(struct ieee80211_sub_if_data *sdata, | |||
1898 | status_code = le16_to_cpu(mgmt->u.auth.status_code); | 1898 | status_code = le16_to_cpu(mgmt->u.auth.status_code); |
1899 | 1899 | ||
1900 | if (auth_alg != ifmgd->auth_data->algorithm || | 1900 | if (auth_alg != ifmgd->auth_data->algorithm || |
1901 | auth_transaction != ifmgd->auth_data->expected_transaction) | 1901 | auth_transaction != ifmgd->auth_data->expected_transaction) { |
1902 | sdata_info(sdata, "%pM unexpected authentication state: alg %d (expected %d) transact %d (expected %d)\n", | ||
1903 | mgmt->sa, auth_alg, ifmgd->auth_data->algorithm, | ||
1904 | auth_transaction, | ||
1905 | ifmgd->auth_data->expected_transaction); | ||
1902 | return RX_MGMT_NONE; | 1906 | return RX_MGMT_NONE; |
1907 | } | ||
1903 | 1908 | ||
1904 | if (status_code != WLAN_STATUS_SUCCESS) { | 1909 | if (status_code != WLAN_STATUS_SUCCESS) { |
1905 | sdata_info(sdata, "%pM denied authentication (status %d)\n", | 1910 | sdata_info(sdata, "%pM denied authentication (status %d)\n", |