腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
头像
20sanguo
帖子: 794
注册时间: 2008-05-10 9:53

腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

#1

帖子 20sanguo »

---2011.7.22添加:玩了微博才发现原来这篇东西是老手不看,新手不懂的垃圾,改一改,希望能帮到需要的人。---

很久没来,Kubuntu一直在用。小灵通要退市换了个android,但流量太巨,整了个w311M,不为别的,便宜。
光盘里有驱动,装上才发现只能ad-hoc,虽然可以手机也开ad-hoc,然后su进去脚本转发通过电脑上网,但wifi没开有些软件它就非说你没网络。

---2011.7.22添加
官方驱动安装方法:
1,在新丽德搜索linux,安装编译内核需要的头文件和源文件(选择版本和以装过的内核版本一样即可)
2,解压w311m linux驱动2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO.tar.bz2到一个文件 夹。
解压后修改os/linux/config.mk 里的HAS_WPA_SUPPLICANT=y和HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y保存
3,打开终端,cd 到刚解压的那个文件夹。执行sudo make。看看有什么错,没有的话执行 sudo make install。重启机器,应该就可以了。
---

如果想开soft AP只能从内核驱动下手,2.6.39.3没有,3.0.0rc7有了,CONFIG_RT2800USB_RT53XX=y,其他的看着选。
但是用了这个,网络管理器它提示“没核心”??这个太误导人了dmesg原来少rt2870.bin
在官方驱动http://www.ralinktech.com/support.php?s=2那包里的c ... rt2870.bin
开机,它完美了。

然后就简单了hostapd,http://w1.fi/hostapd/ git下载回来,CONFIG_DRIVER_NL80211=y打开,其他选项看说明编译出的两个文件放到你喜欢的地方。
简单的hostapd.conf内容
interface=wlan1
bridge=br0
driver=nl80211
ssid=ubuntu11
hw_mode=g
channel=1
wpa=3
wpa_passphrase=随便,不知道中文密码行不行
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

执行命令,也可以做个脚本
sudo ifconfig eth0 0.0.0.0 promisc #没有这句,手机能上,主机上不了网了又
sudo brctl addbr br0
sudo brctl addif br0 eth0
sudo ./hostapd hostapd.conf -B
sudo brctl show
sudo ifconfig br0 up
sudo dhclient br0 #这句根据自己上网环境改

现在手机wifi连吧,那些没有网络的软件不会再说话啦。终于可以睡觉了。另外win7被我搞得网络驱动都不行了,无线网络无法启用,连毛豆都只防127.0.0.1的网络了,完全找不出原因,这点linux还是好。

---2011.7.22添加
win7 我重装了
---
上次由 20sanguo 在 2011-07-23 0:32,总共编辑 3 次。
头像
lm789632
帖子: 389
注册时间: 2011-01-16 22:50
系统: UBUNTU 12.10
来自: HELL

Re: 腾达w311M USB(RT5370 )设置soft AP方法

#2

帖子 lm789632 »

20sanguo 写了:linux还是好
知道就好 :em02
lily3978
帖子: 381
注册时间: 2010-06-30 16:23

Re: 腾达w311M USB(RT5370 )设置soft AP方法

#3

帖子 lily3978 »

没有的功能都能编译出来,强人啊
goodjob66
帖子: 33
注册时间: 2009-10-18 18:05

Re: 腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

#4

帖子 goodjob66 »

我也安装W311M这个无线网卡,编译成功后还是搞不定,我看ReadMe里最后一步是 insmod rt5370sta.ko,但是我运行以后提示

insmod:error inserting 'rt5370sta.ko': -1 Unknown symbol in module

特来向楼主求救,谢谢
euroford
帖子: 763
注册时间: 2009-06-26 17:49

Re: 腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

#5

帖子 euroford »

goodjob66 写了:我也安装W311M这个无线网卡,编译成功后还是搞不定,我看ReadMe里最后一步是 insmod rt5370sta.ko,但是我运行以后提示

insmod:error inserting 'rt5370sta.ko': -1 Unknown symbol in module

特来向楼主求救,谢谢
安装之后,才能用吧 :em04
goodjob66
帖子: 33
注册时间: 2009-10-18 18:05

Re: 腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

#6

帖子 goodjob66 »

我运行了 make install了呀,还是不行呢,折腾了几天拉,不知道错在哪里
liboboleo
帖子: 2
注册时间: 2011-09-16 15:20

Re: 腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

#7

帖子 liboboleo »

我的显示


bobo@bobo-L41II8:~/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO$ sudo make
[sudo] password for bobo:
make -C tools
make[1]: 正在进入目录 `/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]:正在离开目录 `/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/tools'
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/tools/bin2h
cp -f os/linux/Makefile.6 /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/Makefile
make -C /lib/modules/2.6.38-11-generic/build SUBDIRS=/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.38-11-generic'
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/crypt_md5.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/crypt_sha2.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/crypt_hmac.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/crypt_aes.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/crypt_arc4.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/mlme.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_wep.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/action.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_data.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_init.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAsic’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_init.c:2173:17: warning: unused variable ‘irqFlag’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_init_inf.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_tkip.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_aes.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_sync.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/eeprom.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_sanity.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_info.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_cfg.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_wpa.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/dfs.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/spectrum.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_timer.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_channel.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_profile.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c: In function ‘AsicGetAutoAgcOffset’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:878:10: warning: unused variable ‘bTempSuccess’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:877:6: warning: unused variable ‘LookupTableIndex’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:876:6: warning: unused variable ‘CurrentTemp’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:875:8: warning: unused variable ‘BbpValue’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:874:32: warning: unused variable ‘pTxPowerTuningEntry2’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:871:8: warning: unused variable ‘RFValue’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:870:32: warning: unused variable ‘pTxPowerTuningEntry’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c: In function ‘AsicAdjustTxPower’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:1524:20: warning: unused variable ‘pFinalTxPwr’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:1522:11: warning: unused variable ‘bAutoTxAgc’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c: In function ‘AsicEnableIbssSync’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:2385:16: warning: unused variable ‘irqFlag’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c: In function ‘AsicAddPairwiseKeyEntry’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_asic.c:3124:16: warning: unused variable ‘irqFlag’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_cmd.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../os/linux/rt_profile.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rtmp_chip.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/assoc.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/auth.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/auth_rsp.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/sync.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/sanity.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/rtmp_data.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/connect.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/connect.c: In function ‘LinkUp’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/connect.c:1481:35: warning: unused variable ‘pCurrEntry’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/connect.c:1480:28: warning: unused variable ‘HashIdx’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/wpa.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/ags.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/sta_cfg.o
In file included from /usr/src/linux-headers-2.6.38-11-generic/arch/x86/include/asm/uaccess.h:571:0,
from /usr/src/linux-headers-2.6.38-11-generic/arch/x86/include/asm/sections.h:5,
from /usr/src/linux-headers-2.6.38-11-generic/arch/x86/include/asm/hw_irq.h:26,
from include/linux/irq.h:211,
from /usr/src/linux-headers-2.6.38-11-generic/arch/x86/include/asm/hardirq.h:5,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:12,
from /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/include/os/rt_linux.h:40,
from /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/include/rtmp_os.h:44,
from /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/include/rtmp_comm.h:60,
from /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/include/rt_config.h:33,
from /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/sta_cfg.c:28:
In function ‘copy_from_user’,
inlined from ‘RTMPSetInformation’ at /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/sta_cfg.c:1712:28:
/usr/src/linux-headers-2.6.38-11-generic/arch/x86/include/asm/uaccess_32.h:212:26: warning: call to ‘copy_from_user_overflow’ declared with attribute warning: copy_from_user() buffer size is not provably correct
In function ‘copy_from_user’,
inlined from ‘RTMPSetInformation’ at /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../sta/sta_cfg.c:2201:28:
/usr/src/linux-headers-2.6.38-11-generic/arch/x86/include/asm/uaccess_32.h:212:26: warning: call to ‘copy_from_user_overflow’ declared with attribute warning: copy_from_user() buffer size is not provably correct
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_os_util.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../os/linux/sta_ioctl.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../os/linux/rt_linux.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../os/linux/rt_main_dev.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/ba_action.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_led.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPFreeTxRxRingMemory’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:235:9: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:242:9: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:280:11: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ‘UCHAR **’ but argument is of type ‘struct __HTTX_BUFFER **’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c: In function ‘NICInitTransmit’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:509:12: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:62:20: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c: In function ‘RTMPAllocTxRxRingMemory’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:568:13: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ‘VOID **’ but argument is of type ‘struct __HTTX_BUFFER **’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:598:12: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ‘VOID **’ but argument is of type ‘struct __TX_BUFFER **’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:612:12: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ‘VOID **’ but argument is of type ‘struct __TX_BUFFER **’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:630:13: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:34:20: note: expected ‘VOID **’ but argument is of type ‘UCHAR **’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c: In function ‘RT28xx_UpdateBeaconToAsic’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_mac_usb.c:1392:16: warning: unused variable ‘irqFlag’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtusb_io.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtusb_data.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/cmm_data_usb.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtusb_bulk.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/ee_prom.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/ee_efuse.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_mcu.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_mcu.c: In function ‘RtmpAsicSendCommandToMcu’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtmp_mcu.c:415:13: warning: unused variable ‘pObj’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_rf.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../os/linux/rt_usb.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/frq_cal.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/frq_cal.c: In function ‘FrequencyCalibration’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/frq_cal.c:202:18: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/frq_cal.c:215:18: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/frq_cal.c:230:18: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/frq_cal.c:252:18: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/frq_cal.c:265:18: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/frq_cal.c:280:18: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/frq_cal.c:136:10: warning: unused variable ‘bUpdateRFR’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt3070.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt30xx.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt30xx.c: In function ‘RT30xx_ChipSwitchChannel’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt30xx.c:612:17: warning: unused variable ‘BbpR109’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt30xx.c:611:30: warning: unused variable ‘Tx1FinePowerCtrl’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt30xx.c:611:8: warning: unused variable ‘Tx0FinePowerCtrl’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt33xx.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt33xx.c: In function ‘RT33xxSetRxAnt’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt33xx.c:161:9: warning: unused variable ‘x’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt33xx.c: In function ‘RT33xx_ChipSwitchChannel’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt33xx.c:406:17: warning: unused variable ‘BbpR109’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt3370.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt3370.c: In function ‘NICInitRT3370RFRegisters’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt3370.c:51:7: warning: unused variable ‘bbpreg’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c: In function ‘RT5390_Init’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:490:25: warning: assignment makes integer from pointer without a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c: In function ‘RT5390SetRxAnt’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:737:9: warning: unused variable ‘Value’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c: In function ‘RT5390LoadRFSleepModeSetup’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:839:8: warning: unused variable ‘RFValue’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c: In function ‘RT5390ReverseRFSleepModeSetup’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:915:8: warning: unused variable ‘RFValue’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c: In function ‘RT5390_ChipSwitchChannel’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:1548:17: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:1559:17: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:1573:16: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:1443:17: warning: unused variable ‘BbpR110’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:1442:23: warning: unused variable ‘BbpR109’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c: In function ‘GetDesiredTssiAndCurrentTssi’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:3024:2: warning: missing braces around initializer
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:3024:2: warning: (near initialization for ‘htTssiInfo.PartA.field’)
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c: In function ‘RT5390_ATETssiCalibration’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:3303:2: warning: ISO C90 forbids mixed declarations and code
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:3392:4: warning: passing argument 3 of ‘eFuseWrite’ from incompatible pointer type
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/include/rtmp.h:5769:10: note: expected ‘PUSHORT’ but argument is of type ‘UCHAR *’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:3304:42: warning: unused variable ‘ChannelPower’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c: In function ‘GetPowerDeltaFromTssiRatio’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:3534:2: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘LONG’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:3563:2: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘LONG’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c: In function ‘RT5390_AsicResetBbpAgent’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:3841:8: warning: unused variable ‘BBPValue’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../chips/rt5390.c:3840:8: warning: unused variable ‘loop’
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rtusb_dev_id.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../os/linux/rt_usb_util.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../os/linux/usb_main_dev.o
CC [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.o
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c: In function ‘DefaultATEAsicSwitchChannel’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:1258:16: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:1044:21: warning: unused variable ‘RFValue2’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c: In function ‘ATETxPwrHandler’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:5338:45: warning: unused variable ‘CfgOfTxPwrCtrlOverMAC’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c: In function ‘Set_ATE_TX_FREQOFFSET_Proc’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:7750:13: warning: comparison of distinct pointer types lacks a cast
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c: In function ‘Set_ATE_TSSI_CALIBRATION_EX_Proc’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9476:9: warning: unused variable ‘CurrentChannel’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9475:9: warning: unused variable ‘BSSID_ADDR’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9474:10: warning: unused variable ‘ChannelPower’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9473:10: warning: unused variable ‘EEPData’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9472:31: warning: unused variable ‘TssiDeltaPerChannel’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9472:8: warning: unused variable ‘TssiRefPerChannel’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9471:53: warning: unused variable ‘BBP49Value’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9471:42: warning: unused variable ‘RF28Value’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9471:31: warning: unused variable ‘RF27Value’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9471:22: warning: unused variable ‘RFValue’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9471:9: warning: unused variable ‘BbpData’
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9479:1: warning: control reaches end of non-void function
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c: In function ‘Set_ATE_TSSI_CALIBRATION_Proc’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:9463:1: warning: control reaches end of non-void function
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c: In function ‘DO_RACFG_CMD_ATE_E2PROM_READ_BULK’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:4017:1: warning: the frame size of 1028 bytes is larger than 1024 bytes
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c: In function ‘DO_RACFG_CMD_E2PROM_WRITE_ALL’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:3041:1: warning: the frame size of 1032 bytes is larger than 1024 bytes
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c: In function ‘DO_RACFG_CMD_ATE_E2PROM_WRITE_BULK’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:4050:1: warning: the frame size of 1040 bytes is larger than 1024 bytes
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c: In function ‘Set_ATE_Load_E2P_Proc’:
/home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/../../common/rt_ate.c:8543:1: warning: the frame size of 1044 bytes is larger than 1024 bytes
LD [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/rt5370sta.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/rt5370sta.o
see include/linux/module.h for more information
CC /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/rt5370sta.mod.o
LD [M] /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/rt5370sta.ko
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.38-11-generic'
cp -f /home/bobo/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO/os/linux/rt5370sta.ko /tftpboot
bobo@bobo-L41II8:~/2011_0407_RT3370_RT5370_Linux_STA_V2.5.0.2_DPO$

sudo make install后还是不能用。ubuntu11.04 kernel2.6.38-11-generic #48-Ubuntu
急急
头像
marsteel
帖子: 555
注册时间: 2005-11-28 12:09
联系:

Re: 腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

#8

帖子 marsteel »

在Ubuntu 11.10下用rt2800usb,把device id激活就可以驱动了,晚些写个步骤上来
xd27303
帖子: 19
注册时间: 2010-09-08 23:35

Re: 腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

#9

帖子 xd27303 »

我也是找不到rt5370sta.ko,我是新手,求指导啊!!!!!!
hellosu
帖子: 2
注册时间: 2012-03-15 9:46

Re: 腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

#10

帖子 hellosu »

主要是想实现soft-AP功能,想通过hostapd开启无线网卡(主芯片是AR9271)的AP功能,但是现在hostapd不能开启!求各位有经验的大侠给看看!!太谢谢了!!
hostapd编译成功后,配置好/etc/hostapd/hostapd.conf后,执行以下指令,有错误!!

[root@localhost hostapd]# hostapd hostapd.conf
Configuration file: hostapd.conf
Using interface wlan0 with hwaddr 48:5d:60:a3:bd:a7 and ssid 'mySoftAp'
wlan0: STA 00:23:89:a3:51:a0 IEEE 802.11: disassociated
wlan0: IEEE 802.11 disassociated
Segmentation fault (core dumped)
看debug信息:
[root@localhost hostapd]# hostapd -dd hostapd.conf
Configuration file: hostapd.conf
ctrl_interface_group=10 (from group name 'wheel')
nl80211: Register Action command failed: ret=-19 (No such device)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 0
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
ELOOP: remaining socket: sock=4 eloop_data=0x82dd858 user_data=0x82dead8 handler=0x8074ec0
ELOOP: remaining socket: sock=6 eloop_data=0x82e0720 user_data=(nil) handler=0x807f0a0
[root@localhost hostapd]# iwconfig
lo no wireless extensions.

p3p1 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"admin"
Mode:Managed Frequency:2.437 GHz Access Point: FC:75:16:49:F2:40
Bit Rate=40.5 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=55/70 Signal level=-55 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:2 Missed beacon:0

[root@localhost hostapd]# hostapd -dd hostapd.conf
Configuration file: hostapd.conf
ctrl_interface_group=10 (from group name 'wheel')
nl80211: Register Action command failed: ret=-114 (Operation already in progress)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 8
nl80211: New interface mon.wlan0 created: ifindex=9
nl80211: Add own interface ifindex 9
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Completing interface initialization
Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 48:5d:60:a3:bd:a7 and ssid 'mySoftAp'
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
nl80211: Event message available
nl80211: Ignored unknown event (cmd=20)
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1043 ([UP][RUNNING])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
Unknown Broadcom information element ignored (type=52 len=26)

nl80211: Event message available
nl80211: MLME event 39
nl80211: MLME event frame - hexdump(len=26): c0 00 00 00 fc 75 16 49 f2 40 48 5d 60 a3 bd a7 fc 75 16 49 f2 40 00 00 03 00
wlan0: STA fc:75:16:49:f2:40 IEEE 802.11: disassociated
Disassociation notification for unknown STA fc:75:16:49:f2:40
Could not parse ProbeReq from 48:5d:60:eb:58:3b
nl80211: Event message available
wlan0: IEEE 802.11 disassociated
Segmentation fault (core dumped)
[root@localhost hostapd]# iwconfig
lo no wireless extensions.

p3p1 no wireless extensions.

wlan0 IEEE 802.11bgn Mode:Master Frequency:2.412 GHz Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off

mon.wlan0 IEEE 802.11bgn Mode:Monitor Frequency:2.412 GHz Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
此时无线网卡断开,不能上网!只能拔下重新插上才能上网!求大侠们帮助!感激不尽!!!

我用的是fedora 15,linux2.6
hellosu
帖子: 2
注册时间: 2012-03-15 9:46

Re: 腾达w311M无线网卡Linux下安装驱动及设置soft AP的方法tenda USB (RT5370)

#11

帖子 hellosu »

在电脑上可以扫描到我的AP(我新设的ssid)可以连接上,但是不能上网!linux也不能上网了,wifi原来是连接admin这个账号,hostapd开启后,wifi就断开了开始发送信号,这样对吗??O(∩_∩)O谢谢 高手们!我感激涕零啊!!
回复