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 <marek@shasta.cloud>
This commit is contained in:
Marek Kwaczynski
2025-03-11 09:54:44 +01:00
committed by John Crispin
parent 52f2e31892
commit afa7e2bbb3

View File

@@ -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 = [ '' ];
}