Hi guys, when I try to set regulatory domain I get the error “Couldn’t change interface - minimal antenna gain for this country is 25 (6)”
I can’t see anywhere antenna gain as a setting, am I missing something?

Hi guys, when I try to set regulatory domain I get the error “Couldn’t change interface - minimal antenna gain for this country is 25 (6)”
I can’t see anywhere antenna gain as a setting, am I missing something?

Mikrotik removed “antenna gain” from the WinBox menu’s in 6.47 and 7.0beta8.
The only way to change the antenna gain now is via the CLI (“New Terminal”).
http://forum.mikrotik.com/t/v6-47-stable-is-released/140100/1
Their intention is to set the built in antenna gain to the correct fixed value, and persuade us not to change it.
It would be interesting to know on what value it was set, so you know how much it will change if set to 25 dBi.
> interface wireless export verbose
… as it is not shown if at the default value with the regular export.
> interface wireless set antenna-gain=25
Funny stuff actually, LHG is marketed as 24dbi if I’m not mistaken… So how come the regulatory domain requires 25dbi? 24 is not low!
Config dump below, antenna gain is set to 0
[admin@MikroTik] > interface wireless export verbose
# jan/02/1970 11:06:04 by RouterOS 6.47
# software id = 3E56-YZHY
#
# model = RouterBOARD LHG G-5acD
# serial number = 99F4092C98B7
/interface wireless security-profiles
set [ find default=yes ] authentication-types="" disable-pmkid=no eap-methods=\
passthrough group-ciphers=aes-ccm group-key-update=5m interim-update=0s \
management-protection=disabled management-protection-key="" mode=none \
mschapv2-password="" mschapv2-username="" name=default \
radius-called-format=mac:ssid radius-eap-accounting=no \
radius-mac-accounting=no radius-mac-authentication=no radius-mac-caching=\
disabled radius-mac-format=XX:XX:XX:XX:XX:XX radius-mac-mode=as-username \
static-algo-0=none static-algo-1=none static-algo-2=none static-algo-3=none \
static-key-0="" static-key-1="" static-key-2="" static-key-3="" \
static-sta-private-algo=none static-sta-private-key="" static-transmit-key=\
key-0 supplicant-identity=MikroTik tls-certificate=none tls-mode=\
no-certificates unicast-ciphers=aes-ccm wpa-pre-shared-key="" \
wpa2-pre-shared-key=""
/interface wireless
set [ find default-name=wlan1 ] adaptive-noise-immunity=none allow-sharedkey=no \
ampdu-priorities=0 amsdu-limit=8192 amsdu-threshold=8192 antenna-gain=0 \
area="" arp=enabled arp-timeout=auto band=5ghz-a/n/ac basic-rates-a/g=6Mbps \
bridge-mode=enabled channel-width=20/40/80mhz-XXXX compression=no country=\
no_country_set default-ap-tx-limit=0 default-authentication=yes \
default-client-tx-limit=0 default-forwarding=yes disable-running-check=no \
disabled=no disconnect-timeout=3s distance=dynamic frame-lifetime=0 \
frequency=auto frequency-mode=superchannel frequency-offset=0 \
guard-interval=any hide-ssid=no ht-basic-mcs=\
mcs-0,mcs-1,mcs-2,mcs-3,mcs-4,mcs-5,mcs-6,mcs-7 ht-supported-mcs="mcs-0,mcs-\
1,mcs-2,mcs-3,mcs-4,mcs-5,mcs-6,mcs-7,mcs-8,mcs-9,mcs-10,mcs-11,mcs-12,mcs-1\
3,mcs-14,mcs-15,mcs-16,mcs-17,mcs-18,mcs-19,mcs-20,mcs-21,mcs-22,mcs-23" \
hw-fragmentation-threshold=disabled hw-protection-mode=none \
hw-protection-threshold=0 hw-retries=7 installation=outdoor \
interworking-profile=disabled keepalive-frames=enabled l2mtu=1600 \
mac-address=B8:69:F4:61:61:79 max-station-count=2007 mode=station mtu=1500 \
multicast-buffering=enabled multicast-helper=default name=wlan1 \
nv2-cell-radius=30 nv2-downlink-ratio=50 nv2-mode=dynamic-downlink \
nv2-preshared-key="" nv2-qos=default nv2-queue-count=2 nv2-security=\
disabled nv2-sync-secret="" on-fail-retry-time=100ms preamble-mode=both \
radio-name=B869F4616179 rate-selection=advanced rate-set=default rx-chains=\
0,1 scan-list=default secondary-channel="" security-profile=default \
skip-dfs-channels=disabled ssid=MikroTik station-bridge-clone-mac=\
00:00:00:00:00:00 station-roaming=enabled supported-rates-a/g=\
6Mbps,9Mbps,12Mbps,18Mbps,24Mbps,36Mbps,48Mbps,54Mbps tdma-period-size=2 \
tx-chains=0,1 tx-power-mode=default update-stats-interval=disabled \
vht-basic-mcs=mcs0-7 vht-supported-mcs=mcs0-9,mcs0-9,mcs0-9 vlan-id=1 \
vlan-mode=no-tag wds-cost-range=50-150 wds-default-bridge=none \
wds-default-cost=100 wds-ignore-ssid=no wds-mode=disabled \
wireless-protocol=any wmm-support=disabled wps-mode=push-button
/interface wireless manual-tx-power-table
set wlan1 manual-tx-powers="1Mbps:17,2Mbps:17,5.5Mbps:17,11Mbps:17,6Mbps:17,9Mbp\
s:17,12Mbps:17,18Mbps:17,24Mbps:17,36Mbps:17,48Mbps:17,54Mbps:17,HT20-0:17,H\
T20-1:17,HT20-2:17,HT20-3:17,HT20-4:17,HT20-5:17,HT20-6:17,HT20-7:17,HT40-0:\
17,HT40-1:17,HT40-2:17,HT40-3:17,HT40-4:17,HT40-5:17,HT40-6:17,HT40-7:17"
/interface wireless nstreme
set wlan1 disable-csma=no enable-nstreme=no enable-polling=yes framer-limit=\
3200 framer-policy=none
/interface wireless align
set active-mode=yes audio-max=-20 audio-min=-100 audio-monitor=\
00:00:00:00:00:00 filter-mac=00:00:00:00:00:00 frame-size=300 \
frames-per-second=25 receive-all=no ssid-all=no
/interface wireless cap
set bridge=none caps-man-addresses="" caps-man-certificate-common-names="" \
caps-man-names="" certificate=none discovery-interfaces="" enabled=no \
interfaces="" lock-to-caps-man=no static-virtual=no
/interface wireless sniffer
set channel-time=200ms file-limit=10 file-name="" memory-limit=10 \
multiple-channels=no only-headers=no receive-errors=no streaming-enabled=no \
streaming-max-rate=0 streaming-server=0.0.0.0
/interface wireless snooper
set channel-time=200ms multiple-channels=yes receive-errors=no
Actually I see 24.5 dBi. They always round it to the higher number.
Your new signal strength can be seen in the status. Yes 25 dB lower. The chipset does not go below 2 dBm whatever you set. (See the rest of the Ron Touw presentation)
http://forum.mikrotik.com/t/v6-47-stable-is-released/140100/1
@bpwl I don’t seem quite to get the hang of this console.. I honestly expected something more unix/linux like on a mikrotik (it’s my first)
[admin@MikroTik] /interface wireless> /interface wireless set antenna-gain=25
numbers:
What numbers?! ![]()
Command set takes a parameter (let’s call it non-attribute) in form of single digit which defines to which entity it actually applies. If you don’t pass the number, you’re asked to enter it. Some (most) of times you can write name of entity instead.
In your particular case there could be more than one wireless interface present … and the number is … if you first execute /interface wireless print, it’ll show index numbers in first column. That’s the number you want to use with subsequent issues of set command. Just beware, the index numbers are dynamic and only valid until next print is executed. Also they don’t exist before print is executed for the first time.
Or, as I already mentioned, use interface name instead …
/interface wireless set wlan1 antenna-gain=25
Fixed:
/interface wireless set "wlan1" antenna-gain=25
The wlan name has to be in quotes. The “numbers” part would be the name: wlan1 or whatever you have set.
Consistent style with
...export verbose
, for example:
/interface wireless set [ find default-name=wlan1 ] antenna-gain=25
Check it:
put [ /interface wireless get [ find default-name=wlan1 ] antenna-gain ]
25
![]()