Skip to content

rpi4 arch fails to start AP mode for wlan0 #39

Description

@moookino

Hi @oofnikj

thanks for you work, I'm trying to use my RPI4 a router with connected phone with hotspot via usb.
running make run starts everything without errors, but logs in container indicating that wlan0/phy0 device is down and not able to start it. Can you help me to identify what's possible root cause or what's missing?

Logs from container:

Tue Jan 10 13:08:20 2023 daemon.notice netifd: radio0 (1208): WARNING: Variable 'phy0' does not exist or is not an array/object
Tue Jan 10 13:08:20 2023 daemon.err odhcp6c[1286]: Failed to send RS (Address not available)
Tue Jan 10 13:08:20 2023 daemon.notice netifd: wan (1287): udhcpc: broadcasting discover
Tue Jan 10 13:08:21 2023 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLED
Tue Jan 10 13:08:20 2023 daemon.notice netifd: wan (1287): udhcpc: started, v1.35.0
Tue Jan 10 13:08:20 2023 daemon.notice netifd: radio0 (1208): command failed: No error information (-524)
Tue Jan 10 13:08:20 2023 daemon.notice netifd: radio0 (1208): command failed: I/O error (-5)
Tue Jan 10 13:08:20 2023 user.err : jail: failed to clone/fork: Operation not permitted
Tue Jan 10 13:08:20 2023 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Tue Jan 10 13:08:21 2023 daemon.err hostapd: Driver does not support configured HT capability [SHORT-GI-40]
Tue Jan 10 13:08:20 2023 daemon.notice netifd: radio0 (1208): WARNING: Variable 'wlan' does not exist or is not an array/object
Tue Jan 10 13:08:21 2023 daemon.notice hostapd: wlan0: AP-DISABLED
Tue Jan 10 13:08:21 2023 daemon.err hostapd: wlan0: Unable to setup interface.
Tue Jan 10 13:08:21 2023 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Tue Jan 10 13:08:21 2023 daemon.info procd: - init complete -
Tue Jan 10 13:08:21 2023 daemon.err odhcp6c[1286]: Failed to send SOLICIT message to ff02::1:2 (Address not available)
Tue Jan 10 13:08:21 2023 daemon.err hostapd: rmdir[ctrl_interface=/var/run/hostapd]: Permission denied
Tue Jan 10 13:08:21 2023 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Tue Jan 10 13:08:21 2023 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Tue Jan 10 13:08:21 2023 daemon.notice netifd: radio0 (1208): Command failed: ubus call hostapd config_add {"iface":"wlan0", "config":"/var/run/hostapd-phy0.conf"} (Invalid argument)
Tue Jan 10 13:08:21 2023 daemon.notice netifd: radio0 (1208): Usage: ubus [<options>] <command> [arguments...]
Tue Jan 10 13:08:21 2023 daemon.notice netifd: radio0 (1208): Options:
Tue Jan 10 13:08:21 2023 daemon.notice netifd: radio0 (1208): Device setup failed: HOSTAPD_START_FAILED
Tue Jan 10 13:08:21 2023 daemon.notice netifd: Wireless device 'radio0' set retry=0
Tue Jan 10 13:08:21 2023 daemon.crit netifd: Wireless device 'radio0' setup failed, retry=0
Tue Jan 10 13:08:21 2023 daemon.notice netifd: Wireless device 'radio0' is now down
Tue Jan 10 13:08:22 2023 daemon.err odhcp6c[1286]: Failed to send SOLICIT message to ff02::1:2 (Address not available)
Tue Jan 10 13:08:24 2023 daemon.notice netifd: wan (1287): udhcpc: broadcasting select for 192.168.1.233, server 192.168.1.1
Tue Jan 10 13:08:23 2023 daemon.notice netifd: wan (1287): udhcpc: broadcasting discover
Tue Jan 10 13:08:24 2023 daemon.notice netifd: Interface 'wan' is now up
Tue Jan 10 13:08:24 2023 daemon.notice netifd: wan (1287): udhcpc: lease of 192.168.1.233 obtained from 192.168.1.1, lease time 43200
Tue Jan 10 13:08:24 2023 user.notice firewall: Reloading firewall due to ifup of wan (eth1)

Error from system:

ieee80211 phy0: bremf_ap_add_uif: Registering netdeuice failed
eee80211 phy0: bremf_cfg80211_add_iface: add iface wland type 3 failed: err=-52

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions