我正在运行hostapd
在 adb shell
上的 Android 设备上使用以下命令。
hostapd -B /data/misc/wifi/hostapd.conf
它给了我以下日志
04-04 12:33:23.276 3052 3052 E hostapd : Using interface wlan0 with hwaddr 00:0a:f5:33:62:98 and ssid "SSID"
04-04 12:33:23.385 712 712 I cnss-daemon: RTM_NEWROUTE Indication
04-04 12:33:23.387 800 3045 I LOWI-8.2.0.2.b: [LOWI-Scan] get_intf_mode: WLAN interface type 3, err 0
04-04 12:33:23.398 3052 3052 I hostapd : wlan0: interface state UNINITIALIZED->ENABLED
04-04 12:33:23.398 3052 3052 I hostapd : wlan0: AP-ENABLED
04-04 15:36:35.520 3046 3046 D hostapd : wlan0: Setup of interface done.
04-04 15:36:35.520 3046 3046 D hostapd : ctrl_iface not configured!
我假设,
hostapd
运行正常。但我看不到 SSID
在任何站或设备中。还有一件事,
ignore_broadcast_ssid
在 hostapd.conf
中设置为 0这表明 SSID 没有隐藏我也知道,一些
DNSMASQ
需要进行相关配置。但我认为SSID
在该配置之前在任何站或设备上可见。谁能指出我做错了什么?
最佳答案
我在使用 Raspberry Pi 3 时遇到了这个问题。问题是 wpa_supplicant 与 Stretch 上的 hostapd 发生冲突。通过使用 hostapd 禁用 wpa_supplicant 来解决。引用 Roger James :
adding the following line to to the relevant WLAN interface stanzas in /etc/dhcpcd.conf.
nohook wpa_supplicant
e.g.
interface wlan0
nohook wpa_supplicant
static ip_address=192.168.0.1/24
关于android - Hostapd 显示 wlan0 : AP-ENABLED, 但 SSID 在设备中不可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49645755/