blink -mtk7601 rt2860在mini2440上的热点配置
上上篇讲述了如何移植usb无线网卡到mini2440上的驱动,这篇讲述如何将他作为热点,通过手机或者电脑房问他,这样可以实现一个小型的服务器。
下面讲述如何配置成热点。
首先在MT7601U_LinuxAP_3.0.0.1_20130802 文件加下找到 RT2870AP.DAT
打开它对他进行配置
# Copy this file to /etc/Wireless/RT2870STA/RT2870STA.dat
# This file is a binary file and will be read on loading rt.o module.
#
# Use "vi RT2870STA.dat" to modify settings according to your need.
#
# 1.) set NetworkType to "Adhoc" for using Adhoc-mode, otherwise using Infrastructure
# 2.) set Channel to "0" for auto-select on Infrastructure mode
# 3.) set SSID for connecting to your Accss-point.
# 4.) AuthMode can be "WEPAUTO", "OPEN", "SHARED", "WPAPSK", "WPA2PSK", "WPANONE"
# 5.) EncrypType can be "NONE", "WEP", "TKIP", "AES"
# for more information refer to the Readme file.
#
#@> AuthMode=value
#value
# OPEN For open system
# SHARED For shared key system
# WEPAUTO Auto switch between OPEN and SHARED
# WPAPSK For WPA pre-shared key (Infra)
# WPA2PSK For WPA2 pre-shared key (Infra)
# WPANONE For WPA pre-shared key (Adhoc)
# WPA Use WPA-Supplicant
# WPA2 Use WPA-Supplicant
#
#@> EncrypType=value
# value
## NONE For AuthMode=OPEN
# WEP For AuthMode=OPEN or AuthMode=SHARED
# TKIP For AuthMode=WPAPSK or WPA2PSK
# AES For AuthMode=WPAPSK or WPA2PSK
#The word of "Default" must not be removed
改动内容如下
SSID=RT2860AP
AuthMode=WPAPSK
EncrypType=AES
RekeyInterval=0
RekeyMethod=DISABLE
PMKCachePeriod=10
#密码设置
WPAPSK=123456789
最后将该文件导入到mini2440的 /etc下,当然事先建立文件夹
建立文件夹/etc/Wireless/RT2870AP
导入完毕后,使用iwconfig 看看无线网叫什么,一般的叫wlan0 ,eth0 ra0 ,
本模块叫 ra0 RTWIFI SoftAP
然后关闭mini2440本身自带的网卡
ifconfig eth0 down 这是自带的dm900的网卡
打开RT2860的WiFi
ifconfig ra0 up
在使用 iwconfig 出现
[root@FriendlyARM RT2870AP]# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
ra0 RTWIFI SoftAP ESSID:"RT2860AP"
Mode:Managed Channel=11 Access Point: E0:B9:4D:16:8D:F5
Bit Rate=150 Mb/s
给网卡配置ip
ifconfig ra0 192.168.1.100
查看
ifconfig
出现下面的表示正常
ra0 Link encap:Ethernet HWaddr E0:B9:4D:16:8D:F5
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14705 errors:0 dropped:0 overruns:0 frame:0
TX packets:2882 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1304396 (1.2 MiB) TX bytes:173979 (169.9 KiB)
然后打开电脑WiFi 连接上 输入密码
出现下图 表示热点配置成功