summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorArkadiusz Miskiewicz <a.miskiewicz@gmail.com>2017-02-15 14:21:27 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-03-06 09:21:42 +0100
commit68506e9af132a6b5735c1dd4b11240da0cf5eeae (patch)
treed3cd6eb665a78a9fec761f4af990c2b3373db092 /net/mac80211/mlme.c
parentieee80211: add FT-PSK AKM suite selector (diff)
downloadlinux-68506e9af132a6b5735c1dd4b11240da0cf5eeae.tar.xz
linux-68506e9af132a6b5735c1dd4b11240da0cf5eeae.zip
mac80211: Print text for disassociation reason
When disassociation happens only numeric reason is printed in ieee80211_rx_mgmt_disassoc(). Add text variant, too. Signed-off-by: Arkadiusz Miƛkiewicz <arekm@maven.pl> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 23986934d7af..1568a74757bc 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2797,8 +2797,9 @@ static void ieee80211_rx_mgmt_disassoc(struct ieee80211_sub_if_data *sdata,
reason_code = le16_to_cpu(mgmt->u.disassoc.reason_code);
- sdata_info(sdata, "disassociated from %pM (Reason: %u)\n",
- mgmt->sa, reason_code);
+ sdata_info(sdata, "disassociated from %pM (Reason: %u=%s)\n",
+ mgmt->sa, reason_code,
+ ieee80211_get_reason_code_string(reason_code));
ieee80211_set_disassoc(sdata, 0, 0, false, NULL);