From afa7e2bbb3f1ff37645e847759e6a5568917ad1c Mon Sep 17 00:00:00 2001 From: Marek Kwaczynski Date: Tue, 11 Mar 2025 09:54:44 +0100 Subject: [PATCH] rrmd: scan: fix setting center_freq1 in params Add casting center frequency to int, previosly was used string. { "dev": "wlan1", "wiphy_freq": "5180", "measurement_duration": "70", "center_freq1": "518030", "scan_ssids": [ "" ], "scan_flags": 4 } Signed-off-by: Marek Kwaczynski --- feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc b/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc index 39c1eb2b8..ff9438435 100644 --- a/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc +++ b/feeds/ucentral/rrmd/files/usr/share/rrmd/scan.uc @@ -11,7 +11,7 @@ let scan_blocked_cnt = 0; function scan(phy, params) { if (params.wiphy_freq) { - params.center_freq1 = params.wiphy_freq + phys[phy].offset; + params.center_freq1 = (int) (params.wiphy_freq) + (int) (phys[phy].offset); params.scan_ssids = [ '' ]; }