All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: Print text for disassociation reason
@ 2017-02-15 13:21 Arkadiusz Miśkiewicz
  2017-02-27 13:16 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Arkadiusz Miśkiewicz @ 2017-02-15 13:21 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Arkadiusz Miśkiewicz

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>
---
 net/mac80211/mlme.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 098ce9b179ee..fcf8d0aa66ec 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2801,8 +2801,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);
 
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mac80211: Print text for disassociation reason
  2017-02-15 13:21 [PATCH] mac80211: Print text for disassociation reason Arkadiusz Miśkiewicz
@ 2017-02-27 13:16 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2017-02-27 13:16 UTC (permalink / raw)
  To: Arkadiusz Miśkiewicz; +Cc: linux-wireless, Arkadiusz Miśkiewicz

On Wed, 2017-02-15 at 14:21 +0100, Arkadiusz Miśkiewicz wrote:
> When disassociation happens only numeric reason is printed
> in ieee80211_rx_mgmt_disassoc(). Add text variant, too.

Applied, thanks.

johannes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-27 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15 13:21 [PATCH] mac80211: Print text for disassociation reason Arkadiusz Miśkiewicz
2017-02-27 13:16 ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.