Community discussions

MikroTik App
 
samsung172
Forum Guru
Forum Guru
Topic Author
Posts: 1191
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Channel list script

Fri Mar 07, 2014 11:29 pm

ros code

#Script to set channel's in list.
#Will do both 10 and 20mhz in 5ghz

:global ifslink 5180,5750,5770,5790,5810,5830,5850,5870,5890
#Set 5ghx 20mhz scanlist
:global ifs5ghz 5390,5410,5430,5450,5470,5490,5510,5530,5550,5570,5590,5610,5630,5650,5670,5690
#set 5ghz 10 mhz scanlist
:global ifs2ghz 2409,2429,2414,2434,2419,2439,2424,2444,2449,2469,2454,2474,2459,2479,2464,2484
#set 2.4 ghz scanlist
:global band5ghz 5ghz-a/n
#possible values 5ghz-a  5ghz-a/n  5ghz-onlyn
:global band24ghz  2ghz-b/g/n
#possible values 2ghz-b  2ghz-b/g  2ghz-b/g/n  2ghz-onlyg  2ghz-onlyn

:global ifw5ghz20 20
:global ifw2ghz 10
:global ifw5ghz10 10


:foreach i in=$ifs5ghz do={/interface wireless channels add list=5ghz-10mhz frequency=$i width=$ifw5ghz10 band=$band5ghz } 
:foreach i in=$ifslink do={/interface wireless channels add list=5ghz-20mhz frequency=$i width=$ifw5ghz20 band=$band5ghz } 

#for 2,4ghz#
# :foreach i in=$ifs2ghz do={/interface wireless channels add list=2ghz-10mhz frequency=$i width=ifw2ghz band=band24ghz }
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Channel list script

Sat Mar 08, 2014 12:11 am

Warning: not all channels in that script are legals on all country
 
samsung172
Forum Guru
Forum Guru
Topic Author
Posts: 1191
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: Channel list script

Sun Mar 09, 2014 12:50 am

Edit channels to fit Your needs.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Channel list script

Sun Mar 09, 2014 4:03 am

Edit channels to fit Your needs.
You are misunderstanding my comment, is not for you, but for copy & paste maniacs... :lol:
 
dokacoimbra
just joined
Posts: 7
Joined: Fri Jan 13, 2023 6:11 pm

Re: Channel list script

Fri Feb 24, 2023 10:02 pm

I tried to use this script in the hap ac², but the equipment does not allow to set this new list of channels that was generated.
Apparently it no longer works in this version.
Version 6.49.7.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Channel list script

Sat Feb 25, 2023 12:11 am

Edit channels to fit Your needs.
You are misunderstanding my comment, is not for you, but for copy & paste maniacs... :lol:
Still actual this comment...

Who is online

Users browsing this forum: No registered users and 20 guests