基于mips内核的Atheros芯片–wlan中的VAP的创建「建议收藏」

2022-11-17 14:32:59 浏览数 (1)

大家好,又见面了,我是你们的朋友全栈君。

重要是使用命令创建,可以通过无线网卡和手机登陆的无线网络标识。登陆名称就是ssid号。

1:/etc/rc.d/rc.wlan up //这个文件主要用来加载wlan相应的驱动程序。

2:配置ip地址,针对br0。

ifconfig br0 10.10.99.194 up

3:创建基本的VAP

/etc/rc.d/rc.wlan up

wlanconfig ath0 create wlandev wifi0 wlanmode ap

iwconfig ath0 essid “haha_5.4G”

ifconfig ath0 up

brctl addif br0 ath0

扩展参数设置:

ifconfig ath0 down

iwpriv wifi0 ATHDebug 0x0

iwpriv ath0 dbgLVL 0x100

iwpriv wifi0 setCountryID 156

iwpriv wifi0 setCountry CN

iwpriv ath0 mode 11NAHT20

iwpriv wifi0 ForBiasAuto 1

iwpriv wifi0 AMPDUFrames 32

iwpriv wifi0 AMPDULim 50000

iwpriv ath0 pureg 0

iwconfig ath0 mode master

iwconfig ath0 rate auto

iwpriv ath0 puren 0

iwconfig ath0 channel 161

iwconfig ath0 txpower 6dBm

iwconfig ath0 frag 2342

iwconfig ath0 rts 2344

iwpriv ath0 shpreamble 0

iwpriv ath0 dtim_period 1

iwpriv ath0 bintval 100

iwpriv ath0 wmm 1

iwpriv wifi0 AMPDU 1

iwpriv ath0 shortgi 1

ifconfig ath0 up

iwpriv wifi0 HALDbg 0x0

iwpriv wifi0 ATHDebug 0x0

iwpriv ath1 dbgLVL 0x100

iwpriv wifi0 setCountryID 156

iwpriv wifi0 setCountry CN

iwpriv wifi0 ForBiasAuto 1

iwpriv wifi0 AMPDUFrames 32

iwpriv wifi0 AMPDULim 50000

iwlist ath0 channel

/etc/rc.d/rc.wlan up

wlanconfig ath0 create wlandev wifi0 wlanmode ap

iwconfig ath0 essid “cctv”

ifconfig ath0 up

brctl addif br0 ath0

wlanconfig ath1 create wlandev wifi1 wlanmode ap

iwconfig ath1 essid “2.4test”

iwpriv ath1 mode 11NGHT20

ifconfig ath1 up

brctl addif br0 ath1

brctl show

4:常用命令.

Iwpriv

Iwlist

iwconfig

Ifconfig

wlanconfig

如果对命令不熟悉,可以使用其帮助信息。如

~ # iwlist

Usage: iwlist [interface] scanning [essid NNN] [last]

[interface] frequency

[interface] channel

[interface] bitrate

[interface] rate

[interface] encryption

[interface] keys

[interface] power

[interface] txpower

[interface] retry

[interface] ap

[interface] accesspoints

[interface] peers

[interface] event

[interface] auth

[interface] wpakeys

[interface] genie

[interface] modulation

[root@localhost ~]$brctl Usage: brctl [commands] commands: addbr <bridge> add bridge delbr <bridge> delete bridge addif <bridge> <device> add interface to bridge delif <bridge> <device> delete interface from bridge setageing <bridge> <time> set ageing time setbridgeprio <bridge> <prio> set bridge priority setfd <bridge> <time> set bridge forward delay sethello <bridge> <time> set hello time setmaxage <bridge> <time> set max message age setpathcost <bridge> <port> <cost> set path cost setportprio <bridge> <port> <prio> set port priority show show a list of bridges showmacs <bridge> show a list of mac addrs showstp <bridge> show bridge stp info stp <bridge> {on|off} turn stp on/off

[root@localhost ~]$iwconfig –help Usage: iwconfig [interface] interface essid {NNN|any|on|off} interface mode {managed|ad-hoc|master|…} interface freq N.NNN[k|M|G] interface channel N interface bit {N[k|M|G]|auto|fixed} interface rate {N[k|M|G]|auto|fixed} interface enc {NNNN-NNNN|off} interface key {NNNN-NNNN|off} interface power {period N|timeout N|saving N|off} interface nickname NNN interface nwid {NN|on|off} interface ap {N|off|auto} interface txpower {NmW|NdBm|off|auto} interface sens N interface retry {limit N|lifetime N} interface rts {N|auto|fixed|off} interface frag {N|auto|fixed|off} interface modulation {11g|11a|CCK|OFDMg|…} interface commit Check man pages for more details.

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/234211.html原文链接:https://javaforall.cn

0 人点赞