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

基于mips内核的Atheros芯片–wlan中的VAP的创建「建议收藏」重要是使用命令创建 可以通过无线网卡和手机登陆的无线网络标识 登陆名称就是 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

重要是使用命令创建,可以通过无线网卡和手机登陆的无线网络标识。登陆名称就是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 add bridge
delbr delete bridge
addif add interface to bridge
delif delete interface from bridge
setageing

[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.

编程小号
上一篇 2025-09-01 15:51
下一篇 2025-08-27 16:06

相关推荐

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