Community discussions

MikroTik App
 
aa007
just joined
Topic Author
Posts: 20
Joined: Tue Apr 06, 2010 3:51 am

[BUG?] 6.30 - Getting wireless frequency no longer works

Wed Jul 15, 2015 4:06 pm

Hi all,

I have a simple script that does frequnecny autotuning in the morning and then fixes it (we don't wnat any changes in frequency during the working hours). After upgrading from 6.29.1 to 6.30, this command no longer works:
:local oldFrequency;
/interface wireless monitor wlan1 once do={:set oldFrequency $frequency};
:log info "Frequency was set from $oldFrequency";
I have even tried upgrading to 6.30.1, but no changes. I have seen the new variable channel, but the output cant be used in this command:
/interface wireless set wlan1 frequency=$currentFrequency;
Thanks
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1135
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: [BUG?] 6.30 - Getting wireless frequency no longer works

Wed Jul 15, 2015 4:34 pm

6.30 has new wireless-fp package, "frequency" parameter is no longer available.

You can use this however:
{
/interface wireless
:local tTest [monitor wlan1 once as-value]
:put [:pick ($tTest->"channel") 0 4]
}
Unimus - configuration management, automation and backup solution
Mass Config Push, network-wide RouterOS upgrades, and more!

Who is online

Users browsing this forum: AndyGs, atcjomo, Baidu [Spider], Bing [Bot], Google Feedfetcher, kuranabtneha and 78 guests