我有一个公认的USB无线适配器:
# lsusb
ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter.
我在运行Debian Jessie的内核已精简的设备上使用此适配器。
我已经安装了所需的各种应用程序:无线工具,wpa请求方,ralink固件包,hostapd和bridge-utils。
我已经重建了内核以包含各种模块,并构建了附带适配器的驱动程序。
# iwconfig
识别我的适配器为ra0
# iwlist ra0 scan
返回应该可用的网络
# iw list
什么也不返回。
# iw ra0 info
command failed: No such device (-19)
承载AP失败:
# /usr/sbin/hostapd -dd /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
Could not open file /sys/class/net/ra0/phy80211/name: No such file or directory
netlink: Operstate: linkmode=0, operstate=6
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -19 (No such device)
nl80211: Interface mode change to 2 from 0 failed
nl80211 driver initialization failed.
连接到AP也会失败:
# wpa_supplicant -Dnl80211 -ira0 -c/etc/wpa_supplicant/wpa_supplicant.conf
nl80211: Could not configure driver to use managed mode
ra0: Failed to initialize driver interface
我还在运行debian wheezy的笔记本电脑上尝试了适配器。那里一切都很好。
我是否缺少一些模块?
# lsmod
Module Size Used by
rt5370sta 742575 1
cfg80211 210493 0
rfkill 14017 1 cfg80211
hostap 103696 0
lib80211 5372 1 hostap
xt_nat 1750 3
xt_tcpudp 3046 6
ipt_MASQUERADE 2286 2
iptable_nat 2881 1
nf_nat_ipv4 3399 1 iptable_nat
nf_nat 17347 4 xt_nat,ipt_MASQUERADE,iptable_nat,nf_nat_ipv4
nf_conntrack_ipv4 13503 6
nf_defrag_ipv4 1285 1 nf_conntrack_ipv4
xt_state 1108 5
nf_conntrack 77834 6 ipt_MASQUERADE,iptable_nat,nf_nat_ipv4,nf_nat,nf_conntrack_ipv4,xt_state
iptable_filter 1347 1
ip_tables 11196 2 iptable_nat,iptable_filter
x_tables 17193 6 xt_nat,xt_tcpudp,ipt_MASQUERADE,xt_state,iptable_filter,ip_tables
ppp_deflate 3787 0
bsd_comp 5006 0
evdev 9979 0
tsc2007 5157 0
option 21380 1
usb_wwan 11156 1 option
usb_storage 45150 0
scsi_mod 120215 1 usb_storage
ppp_async 7246 1
ppp_generic 26588 7 ppp_deflate,bsd_comp,ppp_async
slhc 5513 1 ppp_generic
crc_ccitt 1517 1 ppp_async
phy_mxs_usb 2952 2
ci_hdrc_imx 3956 0
ci_hdrc 7027 1 ci_hdrc_imx
ehci_hcd 58577 1 ci_hdrc
usbserial 35306 5 option,usb_wwan
不,驱动程序的源代码在适配器随附的CD上,我不喜欢EXPERIMENTAL的声音。
—
DánjalSalberg Adlersson
值得一试;不要被实验性标签惊呆。另外,在使用供应商提供的驱动程序时,请确保其与您使用的内核版本兼容,并检查是否有任何更新。最后,要检查方框之间的差异,请比较的内容
—
casey 2013年
/proc/config.gz
。
您将需要安装适合驱动程序的固件,我在这里介绍了SUSE Linux下的Ralink设置:linuxintro.org/wiki/WLAN。您如何在Debian中找出驱动程序和固件是否相互匹配?
—
Thorsten Staerk
RT2800USB_RT53XX
?