Running command create_ap fails on hostapd_cli -p
januhlir opened this issue · 1 comments
januhlir commented
Running command create_ap
fails on hostapd_cli -p ...
.
Could not open configuration file ... for reading.
Full output:
# create_ap wlan0 enp58s0u1u3c2 'MyAP123' 'my-secret-password'
Config dir: /tmp/create_ap.wlan0.conf.NwJTaLgg
PID: 13128
Network Manager found, set ap0 as unmanaged device... DONE
Creating a virtual WiFi interface... ap0 created.
Sharing Internet using method: nat
Setting /usr/sbin/dnsmasq to complain mode.
Warning: profile dnsmasq represents multiple programs
Warning: profile dnsmasq represents multiple programs
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.NwJTaLgg/hostapd_ctrl
Could not open configuration file '/tmp/create_ap.wlan0.conf.NwJTaLgg/hostapd.conf' for reading.
Failed to set up interface with /tmp/create_ap.wlan0.conf.NwJTaLgg/hostapd.conf
Failed to initialize interface
Error: Failed to run hostapd, maybe a program is interfering.
If an error like 'n80211: Could not configure driver mode' was thrown
try running the following before starting create_ap:
nmcli r wifi off
rfkill unblock wlan
Doing cleanup.. done
The file /tmp/create_ap.wlan0.conf.NwJTaLgg/hostapd_ctrl
doesn't exist.
It's supposed to be a socket file so it's hardly surprising.
I run it as root.
There is no other hostapd running:
# systemctl status hostapd
○ hostapd.service - Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Loaded: loaded (/usr/lib/systemd/system/hostapd.service; disabled; preset: disabled)
Active: inactive (dead)
...
# ps -ax | grep hostapd
11903 pts/1 S+ 0:00 grep --color=auto hostapd
nmcli r wifi off
rfkill unblock wlan
..also didn't help.
My card does support AP. I checked that with iw
.
I self-build the linux-wifi-hospot
tool myself.
OS: openSuse Slowroll
januhlir commented
I tried Linux Router, from Gary Will
https://github.com/garywill/linux-router
and that one worked!