Skip to content

Commit

Permalink
rrmd: the daemon was crashing on wifi-7 devices.
Browse files Browse the repository at this point in the history
Signed-off-by: John Crispin <[email protected]>
  • Loading branch information
blogic committed Feb 10, 2025
1 parent 9105d68 commit 26e7826
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -125,25 +125,16 @@ 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,
num_chan,
curr_chan: 0,
delay: 5,
};

printf('%.J\n', phys[phy]);

// scan(phy, { dev });
// scan(phy, { dev, scan_ssids: [ '' ], });
},

status: function() {
Expand Down

0 comments on commit 26e7826

Please sign in to comment.