Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.01k
stars
278
forks
source link
Running command create_ap fails on hostapd_cli -p #387
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.
Running command
create_ap
fails onhostapd_cli -p ...
. Could not open configuration file ... for reading.Full output:
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:
..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