aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_mpm.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-28 19:44:28 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-28 19:44:28 (GMT)
commite8afaad7fd9a7fc9a761ed2f8a117bbb6ac9c730 (patch)
treea8a029c4a33a70412b03e1a961562cb9cbd7c4f9 /wpa_supplicant/mesh_mpm.c
parentee0ad453d5f68959e911bfee1c0b603984db25c2 (diff)
downloadhostap-e8afaad7fd9a7fc9a761ed2f8a117bbb6ac9c730.zip
hostap-e8afaad7fd9a7fc9a761ed2f8a117bbb6ac9c730.tar.gz
hostap-e8afaad7fd9a7fc9a761ed2f8a117bbb6ac9c730.tar.bz2
mesh: Write close reason from Mesh Peering Close to debug log
This makes it a bit easier to understand the debug log entries related to tearing down a mesh connection. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/mesh_mpm.c')
-rw-r--r--wpa_supplicant/mesh_mpm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c
index 8f327d8..f445b6c 100644
--- a/wpa_supplicant/mesh_mpm.c
+++ b/wpa_supplicant/mesh_mpm.c
@@ -1113,6 +1113,10 @@ void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
llid = WPA_GET_LE16(peer_mgmt_ie.plid);
wpa_printf(MSG_DEBUG, "MPM: plid=0x%x llid=0x%x", plid, llid);
+ if (action_field == PLINK_CLOSE)
+ wpa_printf(MSG_DEBUG, "MPM: close reason=%u",
+ WPA_GET_LE16(peer_mgmt_ie.reason));
+
sta = ap_get_sta(hapd, mgmt->sa);
/*