From 26e782627b331810c132c42c0a76dab434efc4b7 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 10 Feb 2025 12:05:45 +0100 Subject: [PATCH] rrmd: the daemon was crashing on wifi-7 devices. Signed-off-by: John Crispin --- feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc b/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc index abe5b4040..d8cca25ac 100644 --- a/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc +++ b/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc @@ -111,10 +111,10 @@ return { return; let channels; let offset = 0; - printf('%s \n', global.phy.phys[phy].band[0]); + if (!global.phy.phys[phy]) + return; switch (global.phy.phys[phy].band[0]) { case '2G': - printf('fooo abc\n'); channels = global.config.channels_2g; break; case '5G': @@ -125,13 +125,9 @@ return { return; } - printf('fooo, %.J\n', channels); - if (!channels) return; - printf('fooo2\n'); let num_chan = length(channels); - printf('fooo3\n'); phys[phy] = { channels, offset, @@ -139,11 +135,6 @@ return { curr_chan: 0, delay: 5, }; - - printf('%.J\n', phys[phy]); - - // scan(phy, { dev }); -// scan(phy, { dev, scan_ssids: [ '' ], }); }, status: function() {