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

Nils Hendrik Rottgardt n.rottgardt at gmail.com
Thu Nov 7 03:23:10 PST 2024


- 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 at gmail.com>
---
 policy.c | 3 +++
 1 file changed, 3 insertions(+)

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) {
-- 
2.39.5




More information about the openwrt-devel mailing list