diff options
author | Arkadiusz Miskiewicz <a.miskiewicz@gmail.com> | 2017-02-15 16:21:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-05 13:30:09 +0300 |
commit | 2b81ffa863713a123679a329a189fc33c89b7d8b (patch) | |
tree | 4186264ba169d92bee83819453d0716ffc5a16b7 /net | |
parent | cb40b5b92062c5598e0d61fba69210dc528b2343 (diff) | |
download | linux-2b81ffa863713a123679a329a189fc33c89b7d8b.tar.xz |
mac80211: Print text for disassociation reason
[ Upstream commit 68506e9af132a6b5735c1dd4b11240da0cf5eeae ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/mlme.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index f462f026fc6a..090e2aa8630e 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -2869,8 +2869,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); |