Community discussions

 
qinyurong
just joined
Topic Author
Posts: 9
Joined: Wed Jan 08, 2014 10:42 am

how to find radio name, data rates and tx power?

Tue Jan 14, 2014 9:31 am

I run CLI /interface/wireless/print,but,where is the radio name of wlan1?
And how to set data rates, Tx power?

Thanks a lot for help




run CLI /interface/wireless/print, the return is:
!re
=.id=*10
=name=wlan1
=mtu=1500
=l2mtu=2290
=mac-address=00:15:6D:74:05:74
=arp=enabled
=interface-type=Atheros AR5413
=mode=ap-bridge
=ssid=fri
=frequency=2427
=band=2ghz-b/g
=channel-width=5mhz
=scan-list=default
=wireless-protocol=any
=antenna-mode=ant-a
=wds-mode=disabled
=wds-default-bridge=none
=wds-ignore-ssid=false
=bridge-mode=enabled
=default-authentication=true
=default-forwarding=true
=default-ap-tx-limit=0
=default-client-tx-limit=0
=hide-ssid=false
=security-profile=default
=interworking-profile=disabled
=compression=false
=running=false
=disabled=false
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1681
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: how to find radio name, data rates and tx power?

Wed Jan 15, 2014 9:37 am

Radio name:
=.id=*10
=name=wlan1
=mtu=1500

TX POWER:
interface wireless set wlan1 tx-power=something


OTHER OPTIONS:

interface wireless set wlan1 blablablablablablablablablabla
adaptive-noise-immunity default-client-tx-limit ht-rxchains nv2-preshared-key supported-rates-a/g
allow-sharedkey default-forwarding ht-supported-mcs nv2-qos supported-rates-b
antenna-gain dfs-mode ht-txchains nv2-queue-count tdma-period-size
antenna-mode disable-running-check hw-fragmentation-threshold nv2-security tx-power
area disabled hw-protection-mode on-fail-retry-time tx-power-mode
arp disconnect-timeout hw-protection-threshold periodic-calibration update-stats-interval
band distance hw-retries periodic-calibration-interval wds-cost-range
basic-rates-a/g frame-lifetime l2mtu preamble-mode wds-default-bridge
basic-rates-b frequency mac-address prism-cardtype wds-default-cost
bridge-mode frequency-mode master-interface proprietary-extensions wds-ignore-ssid
burst-time frequency-offset max-station-count radio-name wds-mode
channel-width hide-ssid mode rate-selection wireless-protocol
comment ht-ampdu-priorities mtu rate-set wmm-support
compression ht-amsdu-limit name scan-list
country ht-amsdu-threshold noise-floor-threshold security-profile
default-ap-tx-limit ht-basic-mcs nv2-cell-radius ssid
default-authentication ht-guard-interval nv2-noise-floor-offset station-bridge-clone-mac
Martín
martinruiz at ibersystems.es
Experto en redes WiFi y enlaces WiFi.

Facebook: @Ibersystems
Twitter: @Ibersystems

Certified in Traffic Shaping, Wireless, Internetworking, Routing and User Management.
MTCTCE - MTCWE - MTCINE - MTCUME - MTCRE
 
qinyurong
just joined
Topic Author
Posts: 9
Joined: Wed Jan 08, 2014 10:42 am

Re: how to find radio name, data rates and tx power?

Thu Jan 16, 2014 10:50 am

Radio name:
=.id=*10
=name=wlan1
=mtu=1500

TX POWER:
interface wireless set wlan1 tx-power=something
Thank you very much!

I follow you advice,now I can set radio-name, tx-power.
I program in JAVA.
Command is
aConn.sendCommand("/interface/wireless/set\n=.id=0" +
"\n=radio-name=" + "ap1" +
"\n=tx-power="+ "5" +
"\n" + tag);


but two questions:
1.how can I get the value of radio-name,tx-power?
command is
aConn.sendCommand("/interface/wireless/print\n" +
"=.proplist=radio-name,tx-power\n" +
tag);
xinxi = aConn.getData();

I cannot get the proper answer.


2. I still cannot find/set datarates.


Look forward to your favourable reply!
 
qinyurong
just joined
Topic Author
Posts: 9
Joined: Wed Jan 08, 2014 10:42 am

Re: how to find radio name, data rates and tx power?

Fri Jan 17, 2014 4:03 am

Radio name:
=.id=*10
=name=wlan1
=mtu=1500

TX POWER:
interface wireless set wlan1 tx-power=something


OTHER OPTIONS:

interface wireless set wlan1 blablablablablablablablablabla
adaptive-noise-immunity default-client-tx-limit ht-rxchains nv2-preshared-key supported-rates-a/g
allow-sharedkey default-forwarding ht-supported-mcs nv2-qos supported-rates-b
antenna-gain dfs-mode ht-txchains nv2-queue-count tdma-period-size
antenna-mode disable-running-check hw-fragmentation-threshold nv2-security tx-power
area disabled hw-protection-mode on-fail-retry-time tx-power-mode
arp disconnect-timeout hw-protection-threshold periodic-calibration update-stats-interval
band distance hw-retries periodic-calibration-interval wds-cost-range
basic-rates-a/g frame-lifetime l2mtu preamble-mode wds-default-bridge
basic-rates-b frequency mac-address prism-cardtype wds-default-cost
bridge-mode frequency-mode master-interface proprietary-extensions wds-ignore-ssid
burst-time frequency-offset max-station-count radio-name wds-mode
channel-width hide-ssid mode rate-selection wireless-protocol
comment ht-ampdu-priorities mtu rate-set wmm-support
compression ht-amsdu-limit name scan-list
country ht-amsdu-threshold noise-floor-threshold security-profile
default-ap-tx-limit ht-basic-mcs nv2-cell-radius ssid
default-authentication ht-guard-interval nv2-noise-floor-offset station-bridge-clone-mac
Thank you!
I got all.
Command ----- interface wireless print advanced.
but in JAva
aConn.sendCommand("/interface/wireless/print/advanced\n" +
tag);
return is fail
!trap
=message=no such command

why???
 
qinyurong
just joined
Topic Author
Posts: 9
Joined: Wed Jan 08, 2014 10:42 am

Re: how to find radio name, data rates and tx power?

Mon Jan 20, 2014 4:59 am

I got.

use this
aConn.sendCommand("/interface/wireless/print\n" + "=advanced=\n")

advanced is a parameter, not command.

Who is online

Users browsing this forum: No registered users and 8 guests