From: Arkadiusz Miskiewicz Date: Wed, 15 Feb 2017 13:21:27 +0000 (+0100) Subject: mac80211: Print text for disassociation reason X-Git-Tag: v4.12-rc1~129^2~155^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68506e9af132a6b5735c1dd4b11240da0cf5eeae;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 2398693..1568a74 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);