mesh: Add debug message when peering limit is reached
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
4b4093686b
commit
46e8d90f6a
1 changed files with 13 additions and 5 deletions
|
@ -938,8 +938,12 @@ void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
|
||||||
/* Now we will figure out the appropriate event... */
|
/* Now we will figure out the appropriate event... */
|
||||||
switch (action_field) {
|
switch (action_field) {
|
||||||
case PLINK_OPEN:
|
case PLINK_OPEN:
|
||||||
if (!plink_free_count(hapd) ||
|
if (plink_free_count(hapd) == 0) {
|
||||||
(sta->peer_lid && sta->peer_lid != plid)) {
|
event = OPN_IGNR;
|
||||||
|
wpa_printf(MSG_INFO,
|
||||||
|
"MPM: Peer link num over quota(%d)",
|
||||||
|
hapd->max_plinks);
|
||||||
|
} else if (sta->peer_lid && sta->peer_lid != plid) {
|
||||||
event = OPN_IGNR;
|
event = OPN_IGNR;
|
||||||
} else {
|
} else {
|
||||||
sta->peer_lid = plid;
|
sta->peer_lid = plid;
|
||||||
|
@ -947,8 +951,12 @@ void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PLINK_CONFIRM:
|
case PLINK_CONFIRM:
|
||||||
if (!plink_free_count(hapd) ||
|
if (plink_free_count(hapd) == 0) {
|
||||||
sta->my_lid != llid ||
|
event = CNF_IGNR;
|
||||||
|
wpa_printf(MSG_INFO,
|
||||||
|
"MPM: Peer link num over quota(%d)",
|
||||||
|
hapd->max_plinks);
|
||||||
|
} else if (sta->my_lid != llid ||
|
||||||
(sta->peer_lid && sta->peer_lid != plid)) {
|
(sta->peer_lid && sta->peer_lid != plid)) {
|
||||||
event = CNF_IGNR;
|
event = CNF_IGNR;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue