我试图在Debian上运行hostapd。我使用的是Realtek rtl8188 using卡,在Olimex OLinuXino A13 WiFi上。但是,当我运行命令hostapd -dd /etc/hostapd/hostapd.conf时,我会得到一个错误。
root@a13-OLinuXino:~# hostapd -dd /etc.hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd.conf
Could not open file /sys/class/net/wlan12/phy80211/name: No such file or directory
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
netlink: Operstate: Linkmode=0, operstate=6
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Failed to set interface 3 to mode 2: -19 (No such device)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Failed to set interface 3 to mode 2: -19 (No such device)
nl80211: Interface mode change to 2 from 0 failed
nl80211 driver initialization failed.这是hostapd的配置文件:
root@a13-OLinuXino:~# cat /etc/hostapd/hostapd.conf
interface=wlan12
bridge=br0
driver=nl80211
country_code=NL
ssid=NAME
hw_mode=g
channel=3
wpa=2
wpa_passphrase=PASSWORD
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0任何帮助都是非常感谢的!
发布于 2017-02-14 13:52:10
您应该将driver=nl80211更改为/etc/hostapd/hostapd.conf文件上的driver=rtl871xdrv:
RT8188C和RT8192C等被公认为RTL8188CUS (或其变体)的Wifi芯片不支持主机AP模式的标准nl80211驱动程序(通过hostapd)支持将自己标识为RTL8188CUS (或其变体)的wifi芯片。如果你看到或听到有人声称某个wifi芯片与一个名为
rtl871xdrv的特殊版本的主机驱动程序一起工作,那就是它了。
也可以安装具有hostapd支持的自定义nl80211版本:
apt-get remove hostapd
git clone https://github.com/jenssegers/RTL8188-hostapd.git
cd RTL8188-hostapd/hostapd
make
make installhttps://unix.stackexchange.com/questions/344891
复制相似问题