From: Jouni Malinen Date: Sun, 30 Sep 2012 16:29:38 +0000 (+0300) Subject: mac80211: Add debug print on unexpect authentication state X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f4126e8918985ccc1beb936efd4b9d1e9005a63;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mac80211: Add debug print on unexpect authentication state This is useful when debugging authentication process issues. Signed-off-by: Jouni Malinen Signed-off-by: Johannes Berg --- 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, status_code = le16_to_cpu(mgmt->u.auth.status_code); if (auth_alg != ifmgd->auth_data->algorithm || - auth_transaction != ifmgd->auth_data->expected_transaction) + auth_transaction != ifmgd->auth_data->expected_transaction) { + sdata_info(sdata, "%pM unexpected authentication state: alg %d (expected %d) transact %d (expected %d)\n", + mgmt->sa, auth_alg, ifmgd->auth_data->algorithm, + auth_transaction, + ifmgd->auth_data->expected_transaction); return RX_MGMT_NONE; + } if (status_code != WLAN_STATUS_SUCCESS) { sdata_info(sdata, "%pM denied authentication (status %d)\n",