Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running command create_ap fails on hostapd_cli -p #387

Open
januhlir opened this issue Apr 2, 2024 · 1 comment
Open

Running command create_ap fails on hostapd_cli -p #387

januhlir opened this issue Apr 2, 2024 · 1 comment

Comments

@januhlir
Copy link

januhlir commented Apr 2, 2024

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
Copy link
Author

januhlir commented Apr 2, 2024

I tried Linux Router, from Gary Will
https://github.com/garywill/linux-router
and that one worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant