Scan particualar freq using libiwinfo-lua scan

Hi.
I want to scan particular frequency AP cells.
I figured out this command can make it.

iw dev wlan0 scan freq 5745

But I want to write a code using Lua for this.

I found package "libiwinfo-lua" and I could access the function "scanlist".
like below:

local iwinfo = require("iwinfo")
local api = iwinfo.type("wlan0")
local iw = iwinfo[api]
local scanlist = iw.scanlist("wlan0")

for k, v in pairs(scanlist) do
    print(k, v)
end

but this code spends a lot of time like

iw dev wlan0 scan

I want to specify the range of frequency which I want to scan.

Can anybody help about this?

ubus call system board please