diff options
-rw-r--r-- | net/mac80211/mlme.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 29fafbe440b7..9e6c75abc922 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1123,7 +1123,8 @@ static void ieee80211_rx_mgmt_deauth(struct ieee80211_sub_if_data *sdata, | |||
1123 | reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); | 1123 | reason_code = le16_to_cpu(mgmt->u.deauth.reason_code); |
1124 | 1124 | ||
1125 | if (ifsta->flags & IEEE80211_STA_AUTHENTICATED) | 1125 | if (ifsta->flags & IEEE80211_STA_AUTHENTICATED) |
1126 | printk(KERN_DEBUG "%s: deauthenticated\n", sdata->dev->name); | 1126 | printk(KERN_DEBUG "%s: deauthenticated (Reason: %u)\n", |
1127 | sdata->dev->name, reason_code); | ||
1127 | 1128 | ||
1128 | if (ifsta->state == IEEE80211_STA_MLME_AUTHENTICATE || | 1129 | if (ifsta->state == IEEE80211_STA_MLME_AUTHENTICATE || |
1129 | ifsta->state == IEEE80211_STA_MLME_ASSOCIATE || | 1130 | ifsta->state == IEEE80211_STA_MLME_ASSOCIATE || |
@@ -1154,7 +1155,8 @@ static void ieee80211_rx_mgmt_disassoc(struct ieee80211_sub_if_data *sdata, | |||
1154 | reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); | 1155 | reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code); |
1155 | 1156 | ||
1156 | if (ifsta->flags & IEEE80211_STA_ASSOCIATED) | 1157 | if (ifsta->flags & IEEE80211_STA_ASSOCIATED) |
1157 | printk(KERN_DEBUG "%s: disassociated\n", sdata->dev->name); | 1158 | printk(KERN_DEBUG "%s: disassociated (Reason: %u)\n", |
1159 | sdata->dev->name, reason_code); | ||
1158 | 1160 | ||
1159 | if (ifsta->state == IEEE80211_STA_MLME_ASSOCIATED) { | 1161 | if (ifsta->state == IEEE80211_STA_MLME_ASSOCIATED) { |
1160 | ifsta->state = IEEE80211_STA_MLME_ASSOCIATE; | 1162 | ifsta->state = IEEE80211_STA_MLME_ASSOCIATE; |