博通wifi 芯片配置工具wl 详解

wl是博通wifi 芯片配置工具,除可以设置phy芯片的一些硬件参数如信道、频宽、和信道带宽外,还可以查看phy芯片的一些状态和参数。在配置phy芯片一些硬件参数之前要执行wl down

将芯片关闭,然后执行配置命令,配置完成后通过wl up 再讲芯片启动起来。

 wl wl sta_info  mac 在当做ap模式时,用户查看station 的连接信息。

wl rssi mac 获取指定station 的信号强度,可以用于定位。

wl chanspec 设置信道和信道带宽参数。例如 wl chanspec 36/40 信道36 频宽 40Mhz

1.设置天线:

2X2:

wl down

wl txchain 3

wl rxchain 3

wl antdiv 3

wl txant 3

wl up

1X1:(天线1)

wl down

wl txchain 1

wl rxchain 1

wl antdiv 0

wl txant 0

wl up

1X1:(天线2)

wl txchain 2

wl rxchain 2

wl antdiv 1

wl txant 1

2.设置MCS:

wl down

wl nrate –m mcs_index

wl up

3.设置带宽:

wl down

wl chanspec –c channel –b band –w bandwidth –s sideband

wl up

4.设置发射功率

wl down

wl txpwr1 pwr_value(dBm)

wl up

5.设置信道

wl down

wl channel chan_no

wl up

Most of the wireless options can be accessed using the program "wl" via the console window. This program has many more options than our WRT is able to process. Some can only be used in Client Mode and others only in Access Point (AP) Mode.

Usage: wl [-a|i <adapter>] [-hu] <command> [arguments]
 -a, -i        adapter name or number
 -h, -u        this message
 
Examples:
~ # wl ssid
~ # wl txpwr1 -o -m 35

Note For NEWD-2 builds, you must specify the interface when performing a command.

Example:

~ # wl -i eth1 status

If you have multiple radios, then each one will have it's own interface, i.e eth2, eth3

[edit]Common Tasks

[edit]Toggle radio on/off, restart, etc

reinitialize adapter and mark as up

reset adapter and mark as down

mark adapter down but do not reset hardware.

toggle radio on/off

~ # wl radio
radio is on (WL_RADIO_SW_DISABLE 0 WL_RADIO_HW_DISABLE 0)
~ # wl radio off
~ # wl radio
radio is off (WL_RADIO_SW_DISABLE 1 WL_RADIO_HW_DISABLE 0)
~ # wl radio on

restart the driver. (Driver must already be down)

[edit]Alphabetical list of commands

[edit]aciargs

Get/Set various aci tuning parameters. Choices are:

       enter:  CRS glitch trigger level to start detecting ACI
       exit:   CRS glitch trigger level to exit ACI mode
       glitch  Seconds interval between ACI scans when glitchcount is continuously high
       spin:   Num microsecs to delay between rssi samples
       Usage: wl aciargs [enter x][exit x][spin x][glitch x]

[edit]addwep

Set an encryption key.

       The key must be 5, 13 or 16 bytes long, or
       10, 26, 32, or 64 hex digits long.  The encryption algorithm is
       automatically selected based on the key size. keytype is accepted
       only when key length is 16 bytes/32 hex digits and specifies
       whether AES-OCB or AES-CCM encryption is used. Default is ccm.
       addwep <keyindex> <keydata> [ocb | ccm] [notx] [xx:xx:xx:xx:xx:xx]

[edit]aes

Set AES options.

       wl aes [options]
       [on|enable|1]   enable AES
       [off|disable|0] disable AES
       [sw|software]   perform AES in software
       [hw|hardware]   perform AES in hardware

[edit]antdiv

Sets which antenna to use to receive on.

       0 - force use of antenna 0
       1 - force use of antenna 1
       3 - automatic selection of antenna diversity

Note: can be used in conjunction with 'wl txant' to set the transmit antenna.

[edit]ap

Set AP mode: 0 (STA) or 1 (AP)

[edit]assoc

Print information about current network association. (also known as "status")

    SSID: "XXXX"
    Mode: Managed   RSSI: -48 dBm   noise: -97 dBm  Channel: 6
    BSSID: XX:XX:XX:XX:XX:XX        Capability: ESS
    Supported Rates: [ 1(b) 2(b) 5.5 11 ]

[edit]assoclist

AP only: Get the list of associated MAC addresses.

[edit]atten

Set the transmit attenuation for B band.

       Args: bb radio txctl1.
       auto to revert to automatic control

[edit]authe_sta_list

Get authenticated sta mac address list

[edit]autho_sta_list

Get authorized sta mac address list

[edit]authorize

Restrict traffic to 802.1X packets until 802.1X authorization succeeds

[edit]band

Returns or sets the current band

       auto - auto switch between available bands (default)
       a - force use of 802.11a band
       b - force use of 802.11b band

[edit]bands

Return the list of available 802.11 bands

[edit]bssid

Get the BSSID value, error if STA and not associated

[edit]cap

Display WL Capabilities

     ap sta wet led wme pio 802.11d 802.11h rm cqa afterburner

[edit]channel

Set the channel:

       valid channels for 802.11b/g (2.4GHz band) are 1 through 14
       valid channels for 802.11a  (5 GHz band) are:
               36, 40, 44, 48, 52, 56, 60, 64,
               100, 104, 108, 112, 116,120, 124, 128, 132, 136, 140,
               149, 153, 157, 161,
               184, 188, 192, 196, 200, 204, 208, 212, 216

[edit]channel_qa

Get last channel quality measurment

[edit]channel_qa_start

Start a channel quality measurment

[edit]clk

set board clock state. return error for set_clk attempt if the driver is not down

       0: clock off
       1: clock on

[edit]cmds

Generates a short list of all available wl commands.

(Most wireless options can be set and monitored via the wl console program.)

~ # wl cmds
ver               cmds              up                down
out               clk               restart           reboot
ucflags           radio             dump              srdump
nvdump            nvset             nvget             revinfo
msglevel          PM                wake              promisc
monitor           frag              rts               cwmin
cwmax             srl               lrl               rate
mrate             infra             ap                bssid
channel           tssi              txpwr             txpwr1
txpathpwr         txpwrlimit        powerindex        atten
phyreg            radioreg          shmem             macreg
antdiv            txant             plcphdr           phytype
scbdump           ratedump          rateparam         wepstatus
primary_key       addwep            rmwep             wep
tkip              aes               keys              tsc
wsec_test         tkip_countermeasures wsec_restrict     eap
authorize         deauthorize       deauthenticate    wsec
wpa_auth          set_pmk           scan              passive
regulatory        spect             scanresults       assoc
status            disassoc          chanlist          channels
channels_in_country curpower          scansuppress      evm
rateset           roam_trigger      roam_delta        roam_scan_period
suprates          scan_channel_time scan_unassoc_time scan_home_time
scan_passive_time scan_nprobes      prb_resp_timeout  channel_qa
channel_qa_start  country           locale            join
ssid              mac               macmode           wds
lazywds           noise             fqacurcy          crsuprs
int               lbt               band              bands
phylist           shortslot         shortslot_override shortslot_restrict
ignore_bcns       pktcnt            upgrade           gmode
gmode_protection  gmode_protection_control gmode_protection_cts gmode_protection_override
legacy_erp        scb_timeout       assoclist         rssi
isup              fasttimer         slowtimer         glacialtimer
radar             rssidump          interference      aciargs
frameburst        pwr_percent       wet               dtim
wds_remote_mac    wds_wpa_role_old  wds_wpa_role      authe_sta_list

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

一叶知秋yyds

分享是一种美德,感谢金主打赏

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值