Hostapd nl80211 não conseguiu definir a interface -19

2

Estou tentando executar o hostapd no Debian Linux. Eu estou usando um cartão usb Realtek rtl8188, em um Olimex OLinuXino A13 WiFi. No entanto, quando eu executo o comando hostapd -dd /etc/hostapd/hostapd.conf , estou recebendo um erro.

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.

Este é o arquivo de configuração do 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

Qualquer ajuda é muito apreciada!

    
por B.Schuurman 14.02.2017 / 13:20

1 resposta

1

Você deve alterar o driver=nl80211 para driver=rtl871xdrv no seu arquivo /etc/hostapd/hostapd.conf :

Wifi chips like RT8188C and RT8192C, recognized as RTL8188CUS (or variants thereof) do not support the standard nl80211 driver of hostapd

AP mode (via hostapd) support for wifi chips that identify themselves as RTL8188CUS (or variants thereof). If you've seen or heard someone claim that a certain wifi chip works with a special version of hostapd driver called rtl871xdrv, this is it.

Ou você pode instalar uma versão hostapd personalizada com nl80211 support:

apt-get remove hostapd
git clone https://github.com/jenssegers/RTL8188-hostapd.git
cd RTL8188-hostapd/hostapd
make
make install
    
por 14.02.2017 / 14:52