wpa_supplicant 一切正常:
# wpa_supplicant -i wlan0 -D nl80211 -c /etc/wpa_supplicant.conf -B
Successfully initialized wpa_supplicant
# udhcpc -i wlan0
udhcpc: started, v1.31.0
[ 80.342527] random: mktemp: uninitialized urandom read (6 bytes read)
udhcpc: sending discover
udhcpc: sending select for 192.168.43.14
udhcpc: lease of 192.168.43.14 obtained, lease time 3599
deleting routers
运行 hostapd 出错:
# hostapd /etc/hostapd2.conf
Configuration file: /etc/hostapd2.conf
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
wlan0 : interface state UNINITIALIZED->DISABLED
wlan0 : AP-DISABLED
wlan0 : CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan0 wasn't started
/etc/hostapd2.conf 内容:
interface=wlan0
driver=nl80211
ssid=mywifi
channel=1
wmm_enabled=0
wpa=3
wpa_passphrase=wa12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0
离线
离线