Wireless tools for Linux

Wireless tools for Linux是一个Linux命令行工具包,用来设置支持Linux Wireless Extension的无线设备。Wireless tools for Linux 和 Linux Wireless Extension 由 Jean Tourrilhes在维护,由Hewlett-Packard(HP惠普)赞助。

大多数基于Linux内核的操作系统都包含Wireless tools。在许多GNU/Linux 发行版中,都缺省安装这个工具包,即使是没有自动安装,也能很容易地找到其二进制代码安装包。

Wireless Extension (WE)是一组通用的API,能在用户空间对通用Wireless LANs进行配置和统计。它的好处在于仅通过一组单一的工具就能对各种各样的Wireless LANs进行管理,不过它们是什么类型,只要其驱动支持Wireless Extension就行;另一个好处就是不用重启驱动或Linux就能改变这些参数。

Wireless Tools (WT)就是用来操作Wireless Extensions的工具集,它们使用字符界面,虽然粗糙,但支持所有Wireless Extension。虽然还有很多其他管理Wireless Extensions的工具,但Wireless Tools是参考实现,它包括以下工具:

        iwconfig:设置基本无线参数

        iwlist:扫描、列出频率,比特率,密钥等

        iwspy:获取每个节点链接的质量(只能查阅与之相连的节点)

        iwpriv:操作Wireless Extensions 特定驱动

        ifrename: 基于各种静态标准命名接口

大多数 Linux 发行版本都在其网络初始化脚本中集成Wireless Extension,以便启动时配置无线接口。他们还将Wireless Tools作为其标准封装包。

 

iwconfig

iwconfig是Linux Wireless Extensions(LWE)的用户层配置工具之一。LWE是Linux下对无线网络配置的工具,包括内核的支持、用户层配置工具和驱动接口的支持三部分。目前很多无线网卡都支持LWE,而且主流的Linux发布版本,比如Redhat
Linux、Ubuntu Linux都已经带了这个配置工具。


iwconfig

用法: iwconfig interface [essid {NN|on|off}]
[nwid {NN|on|off}]
[mode {managed|ad-hoc|…}
[freq N.NNNN[k|M|G]]
[channel N]
[ap {N|off|auto}]
[sens N]
[nick N]
[rate {N|auto|fixed}]
[rts {N|auto|fixed|off}]
[frag {N|auto|fixed|off}]
[enc {NNNN-NNNN|off}]
[power {period N|timeout N}]
[retry {limit N|lifetime N}]
[txpower N {mW|dBm}]
[commit]
说明:iwconfig是LWE最主要的工具,可以对无线网卡的大部分参数进行配置。


参数:
essid设置无线网卡的ESSID(Extension Service Set ID)。

通过ESSID来区分不同的无线网络,正常情况下只有相同ESSID的无线站点才可以互相通讯,除非想监听无线网络。其后的参数为双引号括起的ESSID字符串,或者是any/on/off,如果ESSID字符串中包含
any/no/off,则需要在前面加”–“。


示例:
$iwconfig eth0 essid any                   允许任何ESSID,也就是混杂模式
$iwconfig eth0 essid “My Network”          设置ESSID为”My Network”
$iwconfig eth0 essid — “ANY”              设置ESSID为”ANY”


nwid: Network ID,只用于pre-802.11的无线网卡,802.11网卡利用ESSID和AP的MAC地址来替换nwid,现在基本上不用设置。


示例:
$iwconfig eth0 nwid AB34
$iwconfig eth0 nwid off


nick: Nickname,一些网卡需要设置该参数,但是802.11协议栈、MAC都没有用到该参数,一般也不用设置。


示例:
$iwconfig eth0 nickname “My Linux Node”


mode设置无线网卡的工作模式,可以是
Ad-hoc:不带AP的点对点无线网络
Managed:通过多个AP组成的网络,无线设备可以在这个网络中漫游
Master:设置该无线网卡为一个AP
Repeater:设置为无线网络中继设备,可以转发网络包
Secondary:设置为备份的AP/Repeater
Monitor:监听模式
Auto:由无线网卡自动选择工作模式


示例:
$iwconfig eth0 mode Managed
$iwconfig eth0 mode Ad-Hoc


freq/channel设置无线网卡的工作频率或者频道,小于1000的参数被认为是频道,大于10000的参数被认为是频率。频率单位为Hz,可以在数字后面附带k, M, G来改变数量级,比如 2.4G。频道从1开始。使用lwlist工具可以查看无线网卡支持的频率和频道。参数off/auto指示无线网络自动挑选频率。
注意:如果是Managed模式,AP会指示无线网卡的工作频率,因此该设置的参数会被忽略。Ad-hoc模式下只使用该设定的频率初始无线网络,如果加入已经存在的Ad-hoc网络则会忽略该设置的频率参数。


示例:
$iwconfig eth0 freq 2422000000
$iwconfig eth0 freq 2.422G
$iwconfig eth0 channel 3
$iwconfig eth0 channel auto


ap连接到指定的AP或者无线网络,后面的参数可以是AP的MAC地址,也可以是iwlist
scan出来的标识符。如果是Ad-hoc,则连接到一个已经存在的Ad-hoc网络。使用off参数让无线网卡不改变当前已连接的AP下进入自动模式。any/auto参数,无线网卡自动选择最好的AP。
注意:如果无线信号低到一定程度,无线网络会进入自动选择AP模式。


示例:
$iwconfig eth0 ap 00:60:1D:01:23:45
$iwconfig eth0 ap any
$iwconfig eth0 ap off


rate/bit如果无线网卡支持多速率,则可以通过该命令设置工作的速率。小于1000的参数由具体的无线网卡驱动定义,一般是传输速率的索引值,大于1000的为速率,单位bps,可以在数字后面附带k,
M, G来指定数量级。auto参数让无线网卡自动选择速率     fixed参数让无线网卡不使用自动速率模式。


示例:
$iwconfig eth0 rate 11M
$iwconfig eth0 rate auto
$iwconfig eth0 rate 5.5M auto    //自动选择5.5M以下的速率


txpower如果无线网卡支持多发射功率设定,则使用该参数设定发射,单位为dBm,如果指定为W(毫瓦),只转换公式为:
dBm=30+log(W)。参数on/off可以打开和关闭发射单元,auto和fixed指定无线是否自动选择发射功率。


示例:
$iwconfig eth0 txpower 15
$iwconfig eth0 txpower 30mW
$iwconfig eth0 txpower auto
$iwconfig eth0 txpower off  


sens设置接收灵敏度的下限,在该下限之下,无线网卡认为该无线网络信号太差,不同的网卡会采取不同的措施,一些现代的无线网卡会自动选择新的AP。正的参数为raw
data,直接传给无线网卡驱动处理,一般认为是百分比。负值表示dBm值。


示例:
$iwconfig eth0 sens -80
$iwconfig eth0 sens 2


retry设置无线网卡的重传机制。limit ‘value’ 指定最大重传次数;lifetime
‘value’指定最长重试时间,单位为秒,可以附带m和u来指定单位为毫秒和微秒。如果无线网卡支持自动模式,则在limit和lifetime之前还可以附加min和max来指定上下限值。


示例:
$iwconfig eth0 retry 16
$iwconfig eth0 retry lifetime 300m
$iwconfig eth0 retry min limit 8


rts指定RTS/CTS握手方式,使用RTS/CTS握手会增加额外开销,但如果无线网络中有隐藏无线节点或者有很多无线节点时可以提高性能。
后面的参数指定一个使用该机制的最小包的大小,如果该值等于最大包大小,则相当于禁止使用该机制。可以使用auto/off/fixed
参数。


示例:
$iwconfig eth0 rts 250
$iwconfig eth0 rts off


frag设置发送数据包的分片大小。设置分片会增加额外开销,但在噪声环境下可以提高数据包的到达率。一般情况下该参数小于最大包大小,有些支持Burst模式的无线网卡可以设置大于最大包大小的值来允许Burst模式。还可以使用auto/fixed/off参数。


示例:
$iwconfig eth0 frag 512
$iwconfig eth0 frag off 


key/enc[ryption]设置无线网卡使用的加密密钥,此处为设置WEP模式的加密key,如果要使用WPA,需要wpa_supplicant工具包。密钥参数可以是
XXXX-XXXX-XXXX-XXXX 或者 XXXXXXXX
格式的十六进制数值,也可以是s:xxxxxx的ASCII字符。如果在密钥参数之前加了[index],则只是设置该索引值对应的密钥,并不改变当前的密钥。直接指定[index]值可以设置当前使用哪一个密钥。指定on/off可以控制是否使用加密模式。open/restricted指定加密模式,取决于不同的无线网卡,大多数无线网卡的open模式不使用加密且允许接收没有加密的数据包,restricted模式使用加密。可以使用多个key参数,但只有最后一个生效。
WEP密钥可以是40bit,用10个十六进制数字或者5个ASCII字符表示,也可以是128bit,用26个十六进制数字或者13个ASCII字符表示。
示例:
$iwconfig eth0 key 0123-4567-89
$iwconfig eth0 key [3] 0123-4567-89
$iwconfig eth0 key s:password [2]
$iwconfig eth0 key [2]
$iwconfig eth0 key open
$iwconfig eth0 key off
$iwconfig eth0 key restricted [3] 0123456789
$iwconfig eth0 key 01-23 key 45-67 [4] key [4]


power:设置无线网卡的电源管理模式。period ‘value’ 指定唤醒的周期,timeout
‘value’指定进入休眠的等待时间,这两个参数之前可以加min和max修饰,这些值的单位为秒,可以附加m和u来指定毫秒和微秒。off/on参数指定是否允许电源管理,all/unicast/multicast
指定允许唤醒的数据包类型。


示例:
$iwconfig eth0 power period 2
$iwconfig eth0 power 500m unicast
$iwconfig eth0 power timeout 300u all
$iwconfig eth0 power off
$iwconfig eth0 power min period 2 power max period 4


commit提交所有的参数修改给无线网卡驱动。有些无线网卡驱动会先缓存无线网卡参数修,使用这个命令来让无线网卡的参数修改生效。不过一般不需要使用该命令,因为无线网卡驱动最终都会是参数的修改生效,一般在debug时会用到。
为了方便配置,可以把配置写到 /etc/network/interfaces中,这样以后就不用反复配置了。
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
echo nameserver 192.168.1.1>/etc/resolv.conf
pre-up /sbin/iwconfig eth1 essid “LW HOME LINK”
pre-up /sbin/iwconfig eth1 key s:liwei
auto usb0
iface usb0 inet static
address 192.168.0.200
netmask 255.255.255.0
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider
auto eth0
iface eth0 inet manual

ifconfig

ifconfig 是一个用来查看、配置、启用或禁用网络接口的工具,这个工具极为常用的。可以用这个工具来临时性的配置网卡的IP地址、掩码、广播地址、网关等。也可以把它写入一个文件中(比如/etc/rc.d/rc.local),这样系统引导后,会读取这个文件,为网卡设置IP地址

1.ifconfig 查看网络接口状态

ifconfig 如果不接任何参数,就会输出当前网络接口的情况;

[root@linuxchao ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:03:0D:27:86:41
inet addr:192.168.1.86 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::203:dff:fe27:8641/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:618 errors:0 dropped:0 overruns:0 frame:0
TX packets:676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:491238 (479.7 KiB) TX bytes:86286 (84.2 KiB)
Interrupt:5 Base address:0x8c00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1692 errors:0 dropped:0 overruns:0 frame:0
TX packets:1692 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3174550 (3.0 MiB) TX bytes:3174550 (3.0 MiB)

解说:
eth0 表示第一块网卡, 其中 HWaddr 表示网卡的物理地址,可以看到目前这个网卡的物理地址(MAC地址)是00:03:0D:27:86:41; inet addr 用来表示网卡的IP地址,此网卡的 IP地址是 192.168.1.86,广播地址,Bcast:192.168.1.255,掩码地址Mask:255.255.255.0

lo 是表示主机的回坏地址,这个一般是用来测试一个网络程序,但又不想让局域网或外网的用户能够查看,只能在此台主机上运行和查看所用的网络接口。比如把 HTTPD服务器的指定到回坏地址,在浏览器输入 127.0.0.1就能看到你所架WEB网站了。但只是您能看得到,局域网的其它主机或用户无从知道;

如果想知道主机所有网络接口的情况,请用下面的命令;
[root@linuxchao ~]#ifconfig -a

如果想查看某个端口,比如查看eth0 的状态,就可以用下面的方法;
[root@linuxchao ~]#ifconfig eth0

2.ifconfig 配置网络接口

ifconfig 可以用来配置网络接口的IP地址、掩码、网关、物理地址等;值得一说的是用ifconfig 为网卡指定IP地址,这只是用来调试网络用的,并不会更改系统关于网卡的配置文件。如果您想把网络接口的IP地址固定下来,目前有三个方法:一是通过各个发行和版本专用的工具来修改IP地址;二是直接修改网络接口的配置文件;三是修改特定的文件,加入ifconfig 指令来指定网卡的IP地址,比如在redhat或Fedora中,把ifconfig 的语名写入/etc/rc.d/rc.local文件中;

ifconfig 配置网络端口的方法:

ifconfig 工具配置网络接口的方法是通过指令的参数来达到目的的,我们只说最常用的参数;
ifconfig 网络端口 IP地址 hw MAC地址 netmask 掩码地址 broadcast 广播地址 [up/down]

* 实例一:
比如我们用ifconfig 来调试 eth0网卡的地址
[root@linuxchao ~]#ifconfig eth0 down
[root@linuxchao ~]#ifconfig eth0 192.168.1.99 broadcast 192.168.1.255 netmask 255.255.255.0
[root@linuxchao ~]#ifconfig eth0 up
[root@linuxchao ~]#ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:03:0D:27:86:41
inet addr:192.168.1.99 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::203:dff:fe27:8641/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:618 errors:0 dropped:0 overruns:0 frame:0
TX packets:676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:491238 (479.7 KiB) TX bytes:86286 (84.2 KiB)
Interrupt:5 Base address:0x8c00

注解: 上面的例子我们解说一下;

第一行:ifconfig eth0 down 表示如果eth0是激活的,就把它DOWN掉。此命令等同于 ifdown eth0;
第二行:用ifconfig 来配置 eth0的IP地址、广播地址和网络掩码;
第三行:用ifconfig eth0 up 来激活eth0 ; 此命令等同于 ifup eth0
第四行:用 ifconfig eth0 来查看 eth0的状态;

当然您也可以用直接在指令IP地址、网络掩码、广播地址的同时,激活网卡;要加up参数;比如下面的例子;
[root@linuxchao ~]#ifconfig eth0 192.168.1.99 broadcast 192.168.1.255 netmask 255.255.255.0 up

* 实例二:在这个例子中,我们要学会设置网络IP地址的同时,学会设置网卡的物理地址(MAC地址);

比如我们设置网卡eth1的IP地址、网络掩码、广播地址,物理地址并且激活它;
[root@linuxchao ~]#ifconfig eth1 192.168.1.252 hw ether 04:64:03:00:12:51 netmask 255.255.255.0 broadcast 192.168.1.255 up

[root@linuxchao ~]#ifconfig eth1 hw ether 04:64:03:00:12:51
[root@linuxchao ~]#ifconfig eth1 192.168.1.252 netmask 255.255.255.0 broadcast 192.168.1.255 up

其中 hw 后面所接的是网络接口类型, ether表示乙太网, 同时也支持 ax25 、ARCnet、netrom等,详情请查看 man ifconfig ;

3.如何用ifconfig 来配置虚拟网络接口

有时我们为了满足不同的需要还需要配置虚拟网络接口,比如我们用不同的IP地址来架运行多个HTTPD服务器,就要用到虚拟地址;这样就省却了同一个IP地址,如果开设两个的HTTPD服务器时,要指定端口号。

虚拟网络接口指的是为一个网络接口指定多个IP地址,虚拟接口是这样的 eth0:0 、 eth0:1、eth0:2 … .. eth1N。当然您为eth1 指定多个IP地址,也就是 eth1:0、eth1:1、eth1:2 … …以此类推;

其实用ifconfig 为一个网卡配置多个IP地址,就用前面我们所说的ifconfig的用法,这个比较简单;看下面的例子;
[root@linuxchao ~]#ifconfig eth1:0 192.168.1.251 hw ether 04:64:03:00:12:51 netmask 255.255.255.0 broadcast 192.168.1.255 up

[root@linuxchao ~]#ifconfig eth1 hw ether 04:64:03:00:12:51
[root@linuxchao ~]#ifconfig eth1 192.168.1.251 netmask 255.255.255.0 broadcast 192.168.1.255 up

注意:指定时,要为每个虚拟网卡指定不同的物理地址;

在 Redhat/Fedora 或与Redhat/Fedora类似的系统,您可以把配置网络IP地址、广播地址、掩码地址、物理地址以及激活网络接口同时放在一个句子中,写入/etc/rc.d/rc.local中。比如下面的例子;
ifconfig eth1:0 192.168.1.250 hw ether 00:11:00:33:11:44 netmask 255.255.255.0 broadcast 192.168.1.255 up
ifconfig eth1:1 192.168.1.249 hw ether 00:11:00:33:11:55 netmask 255.255.255.0 broadcast 192.168.1.255 up

解说:上面是为eth1的网络接口,设置了两个虚拟接口;每个接口都有自己的物理地址、IP地址… …

4.如何用ifconfig 来激活和终止网络接口的连接

激活和终止网络接口的用 ifconfig 命令,后面接网络接口,然后加上 down或up参数,就可以禁止或激活相应的网络接口了。当然也可以用专用工具ifup和ifdown 工具;
[root@linuxchao ~]#ifconfig eth0 down
[root@linuxchao ~]#ifconfig eth0 up
[root@linuxchao ~]#ifup eth0
[root@linuxchao ~]#ifdown eth0

对于激活其它类型的网络接口也是如此,比如 ppp0,wlan0等;不过只是对指定IP的网卡有效。

注意:对DHCP自动分配的IP,还得由各个发行版自带的网络工具来激活;当然得安装dhcp客户端;这个您我们应该明白;

比如Redhat/Fedora
[root@linuxchao ~]#/etc/init.d/network start

Slackware 发行版;
[root@linuxchao ~]#/etc/rc.d/rc.inet1

iwlist

iwlist主要用来显示无线网卡的一些附加信息,
useage: iwlist [interface] options
scanning 扫描一定范围内的无线接入点和Ad-Hoc单元信息,包括ESSID,信号质量,频段以及无线模式等
frequency 频率
channel显示设备支持的频道及当前所在的频道
rate/bitrate 设备支持的速率
encryption 加密
key 密钥
power 电源
txpower 发送功率

retry 重传机制
ap 本地无线接入点及信号质量
peers 直连
event 设备支持的无线事件

auth 当前设置的WPA认证参数

wpa 罗列设备上设置的所有WPA加密密钥

modu 罗列设备支持的调制模式及当前开启的调制模式

iwpriv

iwpriv:操作Wireless Extensions 特定驱动。通过iwpriv,我们可以得到AP的一些参数设置,也可以设置自己的WIFI参数。

[root@root- /]#iwpriv

    mlan0     Available private ioctls :
extscan          (8BFA) : set   0 int   & get   2 char
hostcmd          (8BE4) : set 2047 byte  & get 2047 byte
arpfilter        (8BE6) : set 2047 byte  & get 2047 byte
regrdwr          (8BE3) : set 256 char  & get 256 char
sdcmd52rw        (8BFE) : set   7 byte  & get   7 byte
sdcmd53rw        (8BFF) : set   0 char  & get   0 char
setgetconf       (8BEA) : set 2000 byte  & get 2000 byte
getcis           (8BE1) : set   0       & get 512 byte
scantype         (8BEB) : set   8 char  & get   8 char
deauth           (0001) : set   1 addr  & get   0
getNF            (0001) : set   1 int   & get   1 int
getRSSI          (0002) : set   1 int   & get   1 int
bgscan           (0004) : set   1 int   & get   1 int
enable11d        (0005) : set   1 int   & get   1 int
adhocgrate       (0006) : set   1 int   & get   1 int
sdioclock        (0007) : set   1 int   & get   1 int
wmm              (0008) : set   1 int   & get   1 int
uapsdnullgen     (000A) : set   1 int   & get   1 int
setcoalescing    (000B) : set   1 int   & get   1 int
adhocgprot       (000C) : set   1 int   & get   1 int
disable_chsw     (000F) : set   1 int   & get   1 int
setpowercons     (0001) : set   1 int   & get   1 int
wmm_qosinfo      (0002) : set   1 int   & get   1 int
lolisteninter    (0003) : set   1 int   & get   1 int
psnullinterval   (0005) : set   1 int   & get   1 int
bcnmisto         (0006) : set   1 int   & get   1 int
ldocfg           (0008) : set   1 int   & get   1 int
rtsctsctrl       (000F) : set   1 int   & get   1 int
moduletype       (000B) : set   1 int   & get   1 int
autodeepsleep    (000C) : set   1 int   & get   1 int
enhanceps        (000D) : set   1 int   & get   1 int
wakeupmt         (000E) : set   1 int   & get   1 int
setrxant         (0001) : set   1 int   & get   0
settxant         (0002) : set   1 int   & get   0
authalgs         (0004) : set   1 int   & get   0
encryptionmode   (0005) : set   1 int   & get   0
setregioncode    (0006) : set   1 int   & get   0
setlisteninter   (0007) : set   1 int   & get   0
setmultipledtim  (0008) : set   1 int   & get   0
setbcnavg        (0009) : set   1 int   & get   0
setdataavg       (000A) : set   1 int   & get   0
associate        (000B) : set   1 int   & get   0
getregioncode    (0001) : set   0       & get   1 int
getlisteninter   (0002) : set   0       & get   1 int
getmultipledtim  (0003) : set   0       & get   1 int
gettxrate        (0004) : set   0       & get   1 int
getbcnavg        (0005) : set   0       & get   1 int
getdataavg       (0006) : set   0       & get   1 int
getauthtype      (0007) : set   0       & get   1 int
getrsnmode       (0008) : set   0       & get   1 int
act_paircipher   (0009) : set   0       & get   1 int
act_groupcipher  (000A) : set   0       & get   1 int
getdtim          (000B) : set   0       & get   1 int
getrxant         (0001) : set   0       & get  12 char
gettxant         (0002) : set   0       & get  12 char
gettsf           (0003) : set   0       & get  12 char
wpssession       (0004) : set   0       & get  12 char
deepsleep        (8BFB) : set   1 char  & get   6 char
adhocstop        (0004) : set   0       & get   0
radioon          (0001) : set   0       & get   0
radiooff         (0002) : set   0       & get   0
rmaeskey         (0003) : set   0       & get   0
crypto_test      (0006) : set   0       & get   0
reasso-on        (0007) : set   0       & get   0
reasso-off       (0008) : set   0       & get   0
wlanidle-on      (0009) : set   0       & get   0
wlanidle-off     (000A) : set   0       & get   0
softreset        (000C) : set   0       & get   0
sleepparams      (0002) : set  64 char  & get  64 char
requesttpc       (0004) : set  64 char  & get  64 char
powercap         (0005) : set  64 char  & get  64 char
measreq          (000C) : set  64 char  & get  64 char
bca-ts           (0003) : set  64 char  & get  64 char
scanmode         (0006) : set  64 char  & get  64 char
getadhocstatus   (0009) : set  64 char  & get  64 char
setgenie         (000A) : set  64 char  & get  64 char
getgenie         (000B) : set  64 char  & get  64 char
qstatus          (000D) : set  64 char  & get  64 char
ts_status        (000E) : set  64 char  & get  64 char
setaeskey        (0001) : set  32 char  & get   0
getaeskey        (0001) : set   1 int   & get 128 char
version          (0002) : set   1 int   & get 128 char
verext           (0003) : set   1 int   & get 128 char
setwpaie         (8BE0) : set  24 char  & get   0
setband          (0001) : set  10 char  & get   0
setadhocch       (0002) : set  10 char  & get   0
chanswann        (0003) : set  10 char  & get   0
getband          (0001) : set   0       & get  10 char
getadhocch       (0002) : set   0       & get  10 char
getlog           (8BE9) : set   0       & get 512 char
tpccfg           (0001) : set  16 int   & get  16 int
scanprobes       (0006) : set  16 int   & get  16 int
ledgpio          (0005) : set  16 int   & get  16 int
sleeppd          (0007) : set  16 int   & get  16 int
rateadapt        (0008) : set  16 int   & get  16 int
getSNR           (0009) : set  16 int   & get  16 int
getrate          (000A) : set  16 int   & get  16 int
getrxinfo        (000B) : set  16 int   & get  16 int
atimwindow       (000C) : set  16 int   & get  16 int
bcninterval      (000D) : set  16 int   & get  16 int
sdiopullctrl     (000E) : set  16 int   & get  16 int
scantime         (000F) : set  16 int   & get  16 int
sysclock         (0010) : set  16 int   & get  16 int
txcontrol        (0012) : set  16 int   & get  16 int
hscfg            (0014) : set  16 int   & get  16 int
hssetpara        (0015) : set  16 int   & get  16 int
inactoext        (0016) : set  16 int   & get  16 int
dbgscfg          (0017) : set  16 int   & get  16 int
drvdbg           (0018) : set  16 int   & get  16 int
drvdelaymax      (001A) : set  16 int   & get  16 int
intfctrl         (001B) : set  16 int   & get  16 int
setquietie       (001C) : set  16 int   & get  16 int
ctspowerctrl     (001E) : set  16 int   & get  16 int
psmode           (001F) : set  16 int   & get  16 int
setuserscan      (0001) : set 2000 byte  & get 2000 byte
getscantable     (0002) : set 2000 byte  & get 2000 byte
setmrvltlv       (0003) : set 2000 byte  & get 2000 byte
getassocrsp      (0004) : set 2000 byte  & get 2000 byte
addts            (0005) : set 2000 byte  & get 2000 byte
delts            (0006) : set 2000 byte  & get 2000 byte
qconfig          (0007) : set 2000 byte  & get 2000 byte
qstats           (0008) : set 2000 byte  & get 2000 byte
txpktstats       (000C) : set 2000 byte  & get 2000 byte
getcfptable      (0009) : set 2000 byte  & get 2000 byte
mefcfg           (000A) : set 2000 byte  & get 2000 byte
getmem           (000B) : set 2000 byte  & get 2000 byte
[root@root- /]#iwpriv mlan0 getband
mlan0     getband:bg

转载于:https://www.cnblogs.com/APeng2019/p/10719388.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值