aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/mesh_mpm.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-06-28 22:12:32 (GMT)
committerJouni Malinen <j@w1.fi>2016-06-28 22:22:13 (GMT)
commit8bd90996f91d0b80b0bb95f8e7da325db88f0e47 (patch)
tree78678c238da065f7b0df84b6bdbf93b85413b117 /wpa_supplicant/mesh_mpm.c
parent78ac368574f385c344475640bbd8d11cbe6871df (diff)
downloadhostap-8bd90996f91d0b80b0bb95f8e7da325db88f0e47.zip
hostap-8bd90996f91d0b80b0bb95f8e7da325db88f0e47.tar.gz
hostap-8bd90996f91d0b80b0bb95f8e7da325db88f0e47.tar.bz2
mesh: Add debug prints on my/peer lid mismatches
This makes it easier to figure out why a received mesh peering frame could end up getting dropped. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/mesh_mpm.c')
-rw-r--r--wpa_supplicant/mesh_mpm.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/wpa_supplicant/mesh_mpm.c b/wpa_supplicant/mesh_mpm.c
index dbbf14d..45ef4a9 100644
--- a/wpa_supplicant/mesh_mpm.c
+++ b/wpa_supplicant/mesh_mpm.c
@@ -1185,6 +1185,9 @@ void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
"MPM: Peer link num over quota(%d)",
hapd->max_plinks);
} else if (sta->peer_lid && sta->peer_lid != plid) {
+ wpa_printf(MSG_DEBUG,
+ "MPM: peer_lid mismatch: 0x%x != 0x%x",
+ sta->peer_lid, plid);
return; /* no FSM event */
} else {
sta->peer_lid = plid;
@@ -1200,6 +1203,9 @@ void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
hapd->max_plinks);
} else if (sta->my_lid != llid ||
(sta->peer_lid && sta->peer_lid != plid)) {
+ wpa_printf(MSG_DEBUG,
+ "MPM: lid mismatch: my_lid: 0x%x != 0x%x or peer_lid: 0x%x != 0x%x",
+ sta->my_lid, llid, sta->peer_lid, plid);
return; /* no FSM event */
} else {
if (!sta->peer_lid)
@@ -1219,12 +1225,19 @@ void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
* restarted.
*/
event = CLS_ACPT;
- else if (sta->peer_lid != plid)
+ else if (sta->peer_lid != plid) {
+ wpa_printf(MSG_DEBUG,
+ "MPM: peer_lid mismatch: 0x%x != 0x%x",
+ sta->peer_lid, plid);
return; /* no FSM event */
- else if (peer_mgmt_ie.plid && sta->my_lid != llid)
+ } else if (peer_mgmt_ie.plid && sta->my_lid != llid) {
+ wpa_printf(MSG_DEBUG,
+ "MPM: my_lid mismatch: 0x%x != 0x%x",
+ sta->my_lid, llid);
return; /* no FSM event */
- else
+ } else {
event = CLS_ACPT;
+ }
break;
default:
/*