基于mips内核的Atheros芯片--wlan中的VAP的创建
来源:互联网 发布:apache php显示源代码 编辑:程序博客网 时间:2024/06/07 15:49
重要是使用命令创建,可以通过无线网卡和手机登陆的无线网络标识。登陆名称就是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.
- 基于mips内核的Atheros芯片--wlan中的VAP的创建
- Atheros LSDK 创建VAP命令
- 基于Atheros无线芯片的设备、驱动、虚拟网桥分析
- atheros 8328交换芯片 在SDK_10.5.13上面的移植
- 基于智能卡芯片内核加密芯片的上位机软件保护研究
- WinCE 基于Wlan的TCP/IP通信
- WinCE 基于Wlan的TCP/IP通信
- atheros芯片无线网卡不能扫描12,13信道的解决方案
- Atheros无线网卡芯片全介绍及与IBM兼容的讨论[转载]
- Android平台上GDB for MIPS芯片的构建
- MIPS 架构的 AR9331芯片 编译链相关内容
- 基于MIPS的uBoot编译环境搭建
- 基于MIPS架构的BackTrace实现
- 基于RTL8186的MIPS开发系统
- 基于MIPS架构的BackTrace实现
- 基于MIPS的uBoot编译环境搭建
- 基于MIPS架构上的UBI
- 基于MIPS架构的BackTrace实现
- AudioRecord的getMinBufferSize函数的分析
- 转载 GPU编程资源链接
- html设置加粗,倾斜,下划线,删除线
- NP完全问题
- VC编译选项 MT MTd MD MDd
- 基于mips内核的Atheros芯片--wlan中的VAP的创建
- C和C++的关系
- 浅淡spring的注入
- 我在赶集网的两个月(数据挖掘、竞情分析、产品、团购、运营、电话销售)
- 利用iconv函数族进行编码转换
- 关于ArcMap 安装后vbEditor不能用的问题的解决方法 .
- 结构体的sizeof问题
- 时间复杂度和空间复杂度
- 获得所有java System属性,实验所得,非文档拷贝,最全