diff mbox series

[usteer,v3,6/9] policy: Added error message if nodes has no rrm number on bss transition

Message ID 20241107112313.507-7-n.rottgardt@gmail.com
State New
Headers show
Series Better handling of unfriendly STAs / IEEE enhancements / MBO | expand

Commit Message

Nils Hendrik Rottgardt Nov. 7, 2024, 11:23 a.m. UTC
- policy: Sometimes hostapd does not return an rrm nr which breaks roaming with neighbors. This is shown as an error in the log.

Signed-off-by: Nils Hendrik Rottgardt <n.rottgardt@gmail.com>
---
 policy.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/policy.c b/policy.c
index f3150e9..933c529 100644
--- a/policy.c
+++ b/policy.c
@@ -373,6 +373,9 @@  usteer_roam_trigger_sm(struct usteer_local_node *ln, struct sta_info *si)
 			break;
 		}
 
+		if (!candidate->node->rrm_nr)
+			MSG(FATAL, "Candiates node rrm nr not returned from hostapd. Neighbor list empty!");
+
 		si->roam_transition_request_validity_end = current_time + 10000;
 		validity_period = 10000 / usteer_local_node_get_beacon_interval(ln); /* ~ 10 seconds */
 		if (si->sta->aggressive) {