Hostapd nl80211은 인터페이스-19를 설정할 수 없습니다.

Hostapd nl80211은 인터페이스-19를 설정할 수 없습니다.

Debian Linux에서 Hostapd를 실행하려고 합니다. Olimex OLinuXino A13 WiFi에서 Realtek rtl8188 USB 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

어떤 종류의 도움이라도 대단히 감사하겠습니다!

답변1

driver=nl80211다음 과 같이 변경해야 합니다 .driver=rtl871xdrv파일 에서 /etc/hostapd/hostapd.conf:

RTL8188CUS(또는 그 변형)로 식별되는 RT8188C 및 RT8192C와 같은 Wi-Fi 칩은 Hostapd의 표준 nl80211 드라이버를 지원하지 않습니다.

AP 모드(hostapd를 통해)는 자신을 RTL8188CUS(또는 그 변형)로 식별하는 Wi-Fi 칩을 지원합니다. 특정 Wi-Fi 칩이 이라는 특수 버전의 Hostapd 드라이버와 작동한다고 주장하는 사람을 보거나 듣는다면 rtl871xdrv이것이 바로 그것입니다.

hostapd또는 지원되는 사용자 정의 버전을 설치할 수 있습니다 nl80211.

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

관련 정보