mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-02 11:27:48 +00:00
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:
committed by
John Crispin
parent
52f2e31892
commit
afa7e2bbb3
@@ -11,7 +11,7 @@ let scan_blocked_cnt = 0;
|
|||||||
|
|
||||||
function scan(phy, params) {
|
function scan(phy, params) {
|
||||||
if (params.wiphy_freq) {
|
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 = [ '' ];
|
params.scan_ssids = [ '' ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user