V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dqwyy
V2EX  ›  Raspberry Pi

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

  •  
  •   dqwyy · 2019-02-25 14:43:53 +08:00 · 6314 次点击
    这是一个创建于 2104 天前的主题,其中的信息可能已经有所发展或是发生改变。

    树莓派 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
    

    相关问题:

    请问该如何解决?

    1 条回复    2019-03-14 01:19:56 +08:00
    CrabAss
        1
    CrabAss  
       2019-03-14 01:19:56 +08:00 via Android
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1063 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:21 · PVG 03:21 · LAX 11:21 · JFK 14:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.