TP-Link TL-WN722N V2およびAPモード(nl80211:ドライバは認証/接続または接続コマンドをサポートしていません)

TP-Link TL-WN722N V2およびAPモード(nl80211:ドライバは認証/接続または接続コマンドをサポートしていません)

私はID 2357:010cDebianと独自にコンパイルされたビルドルートファームウェアでTP-Link TL-WN722N V2(APモード)を使用しようとしています。最新のカーネル(v5.5およびv4.19)を使用してRTL8188EUモジュール準備と正しいファームウェアからrtlwifi/rtl8188eufw.bin。ドライバがロードされ、非APモードで使用できますが、使用しようとすると次のエラーが発生し、失敗しますnl80211: Driver does not support authentication/association or connect commands

$ cat /etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=foo
channel=6
hw_mode=g
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

# hostapd -dd /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=4 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Failed to set interface 4 to mode 2: -19 (No such device)
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x76c0d4f0)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x76c0d4f0)
wlan0: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: AP-DISABLED 
hostapd_cleanup(hapd=0x76f187c0 (wlan0))
wlan0: CTRL-EVENT-TERMINATING 
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_deinit_free: driver=0 drv_priv=0 -> hapd_deinit
hostapd_interface_free(0x76c0d4f0)
hostapd_interface_free: free hapd 0x76f187c0
hostapd_cleanup_iface(0x76c0d4f0)
hostapd_cleanup_iface_partial(0x76c0d4f0)
hostapd_cleanup_iface: free iface=0x76c0d4f0

# iwconfig
wlan0     unassociated  ESSID:""  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Kali Linuxに関する多くの質問が見つかりました(例:Kali linuxにHostAPDをインストールしようとしてエラー=ドライバが認証/接続または接続コマンドをサポートしていません。)、しかし答えはありません。

ツリー外部カーネルモジュール(例:https://github.com/abhijeet2096/TL-WN722N-V2https://github.com/Mange/rtl8192eu-linux-driver)?これらのドライバはステージングのドライバと似ていますが、クリーンアップされていません(つまり、ツリーの外部ドライバの問題やコード品質の低下を除いて機能が低下するようです)。

そして/またはツリーの外にいくつかのHostapdドライバがありますか?これらのツリー外部ドライバはいくつかの設定も参照しています(以前のバージョンのwpa_supplicant / hostapdにも適用できます)。https://github.com/abhijeet2096/TL-WN722N-V2/blob/master/wpa_0_8.confしかし、最新バージョンを使用することを好みます。

まだWi-Fi IPを設定していません。問題ではないことを願っています。

# ip addr show wlan0
    4: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
        link/ether 50:3e:aa:7d:81:39 brd ff:ff:ff:ff:ff:ff

ベストアンサー1

Realtek派生タスクマネージャであるLarry Fingerの回答:

一時ドライバは非常に古いバージョンのHostapdのみをサポートし、それほど良くありません。

最善の機会は、次を使用することです。v5.2.2.4支店pf http://github.com/lwfinger/rtl8188eu.git

このドライバは cfg80211/nl80211 コマンドを使用し、最新の Hostapd をサポートします。

源泉:http://lists.infradead.org/pipermail/hostap/2020-May/041657.html

クリーンアップ開発がツリーの外で行われる理由は疑問に思っています(メインラインに配置する方がユーザーにとって簡単です)。更新:ツリーの外部コードは非常に複雑で、フォームを整えるのに数年かかりました。残念ながら、これによりツリー外部ドライバが発生しました。

おすすめ記事