树莓派 3B+开启热点失败

2019-02-25 14:43:53 +08:00
 dqwyy

树莓派 3B+、Raspbian Stretch、Linux raspberrypi 4.19.23-v7+

使用 create_ap 的时候报错

pi@raspberrypi:/etc $ WARN: brmfmac driver doesn't work properly with virtual interfaces and
      it can cause kernel panic. For this reason we disallow virtual
      interfaces for your adapter.
      For more info: https://github.com/oblique/create_ap/issues/203
WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
Config dir: /tmp/create_ap.wlan0.conf.nY22VbL8
PID: 2551
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.nY22VbL8/hostapd_ctrl
Configuration file: /tmp/create_ap.wlan0.conf.nY22VbL8/hostapd.conf
nl80211: Could not configure driver mode
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface wlan0 wasn't started

Error: Failed to run hostapd, maybe a program is interfering.

Doing cleanup.. done

wlan0 一开始是 up 的,然后一执行 create_ap 就 down 了,重新 sudo ifconfig wlan0 up 的话,等会再执行 create_ap 又会 down 了,如此反复。

尝试直接使用 hostapd,则出现这个

pi@raspberrypi:/etc/hostapd $ sudo hostapd -d hostapd.conf 
random: Trying to read entropy from /dev/random
Configuration file: hostapd.conf
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=2 op=0 soft=0 hard=0
nl80211: Using driver-based roaming
nl80211: TDLS supported
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: Supported vendor command: vendor_id=0x1018 subcmd=1
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: Enable multi-channel concurrent (driver advertised support)
nl80211: Disable use_monitor with device_ap_sme since no monitor mode support detected
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 3 (AP)
nl80211: Setup AP(wlan0) - device_ap_sme=1 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x10d2498 (device SME)
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x10d2498 match=
nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Could not configure driver mode
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=3)
netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Teardown AP(wlan0) - device_ap_sme=1 use_monitor=0
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x10d1d88)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x10d1d88)
hostapd_bss_deinit: deinit bss wlan0
hostapd_cleanup(hapd=0x10d2ad8 (wlan0))
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x10d1d88)
hostapd_interface_free: free hapd 0x10d2ad8
hostapd_cleanup_iface(0x10d1d88)
hostapd_cleanup_iface_partial(0x10d1d88)
hostapd_cleanup_iface: free iface=0x10d1d88

相关问题:

请问该如何解决?

6307 次点击
所在节点    Raspberry Pi
1 条回复
CrabAss
2019-03-14 01:19:56 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/538481

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX