Hot answers tagged

14 votes

hostapd will not start via "service" -- but will start directly

you have to configure: sudo nano /etc/default/hostapd DAEMON_CONF="/etc/hostapd/hostapd.conf" Find the line above and tell the defaul config where your one is.
user avatar
  • 149
11 votes

hostapd will not start via "service" -- but will start directly

This was a problem for me also and obviously still exists. I fixed the errors by removing hostapd from /etc/rc2.d/ and /etc/networking/if-pre-up.d/ /etc/network/interfaces controls hostapd now.. ...
user avatar
11 votes

Namespace management with ip netns (iproute2)

You have two questions in one: what are the empty files in /var/run/netns/? how to use /etc/netns/ which doesn't even exist? What are the empty files in /var/run/netns/? Some understanding of ...
user avatar
  • 25.5k
8 votes

Hostapd error nl80211: Could not configure driver mode

I had the same issue on my raspberry-PI. I could not find any proper solution but I did come up with a slightly dirty way to solve the issue: slightly modified solution from "adrianTNT" here on Ask ...
user avatar
  • 81
5 votes
Accepted

hostapd on two interfaces (two configuration files)

You were almost there at the end of the question. %i is used for instanced services. Here's an excerpt of the role of instances described in the systemd.unit(5): Unit files can be parameterized by a ...
user avatar
  • 25.5k
4 votes
Accepted

"nmcli nm wifi on" stops hostapd

After the commands above, restarting the hostapd did the trick. sudo service hostapd restart Now the internal wifi works as an access point and the usb dongle is connected to another access point ...
user avatar
  • 81
4 votes

How do I create a persistant (ad hoc) access point?

The point is, it is creating an wireless adhoc access point because you are asking it to create an adhoc access point. You need to create an AP in BSS (infrastructure mode) with hostapd. see: ...
user avatar
4 votes

Hostapd error nl80211: Could not configure driver mode

This message appear also if hostapd is still running for some reason in the background. So try sudo killall hostapd.
user avatar
4 votes

Finding capabilities of wifi driver/device?

I think you can find the answer to your question in the Arch Linux wiki here: https://wiki.archlinux.org/index.php/software_access_point This is the relevant section copied from the Arch Linux wiki: ...
user avatar
3 votes
Accepted

Why can't devices connected to my wlan0 interface communicate with eth0 devices?

If your webserver is listening on port 80 of any IP address (not just 10.10.1.1), then you can just use the gateway address of the interface you are connected to. However, before you can do that, you ...
user avatar
  • 1,283
3 votes
Accepted

Debian network disappearing

I am assuming that your IP config is identical to your previous install (debian 7) and therefore it should work now just as it did before. However, it is confusing to me that it did work as you have ...
user avatar
3 votes

Captive portal detection, popup implementation?

To make a captive portal appear, you need to stop all internet traffic and provide a 302 redirect to the client's browser. To do this, you need to have a firewall (like iptables) redirect all traffic ...
user avatar
  • 143
3 votes

hostapd will not start via "service" -- but will start directly

I just ran into this problem. By default install on my raspian wheezy, hostapd is started as S01 in services. This makes it start before ifplugd which configures eth0 and wlan0. The reason for this is ...
user avatar
  • 331
3 votes

How to execute hostapd command in cli?

Make sure your hostapd.conf file includes: ctrl_interface=/var/run/hostapd ctrl_interface_group=0
user avatar
  • 176
3 votes

How can I find the name of the hotspot connected devices from command line?

Quick reminder of the layers involved: LAN and WLAN communicate using MAC addresses (OSI level 2). The ARP protocol tells you which MAC address belongs to which IP address (OSI level 3). Names of ...
user avatar
  • 29.4k
3 votes
Accepted

Cant Start Hostapd because multiple Errors

Your system is using systemd. In some distributions, I've noticed that using the legacy service wrapper can hide some error messages that would be visible using the systemd-native systemctl command. ...
user avatar
  • 70.9k
2 votes

hostapd will not start via "service" -- but will start directly

Adding 10 seconds sleep in file /etc/init.d/hostapd fixed the problem for me. 1) sudo nano /etc/init.d/hostapd 2) Add the sleep in start) section like below case "$1" in start) ...
user avatar
  • 21
2 votes

hostapd will not start via "service" -- but will start directly

I think the problem is with your quotes on line 11 of /etc/default/hostapd: ”/etc/hostapd/hostapd.conf” Which should read: "/etc/hostapd/hostapd.conf" Your post actually helped me solve my problem,...
user avatar
2 votes

Setting up hostapd with a iwlwifi device to run a hotspot

you specified the wrong driver on your hostapd conf file, use iwlwifi (intel) instead of nl80211 (atheros) when you follow a guide you have to read and change anything necesary for your own needs.
user avatar
  • 37
2 votes

Using tee or pipe to log console output will cause my program not to start

The command that made it work is: sudo stdbuf -i0 -o0 -e0 hostapd /etc/hostapd/hostapd.conf | tee log.txt
user avatar
  • 131
2 votes
Accepted

Freeradius doesn't see its WAP-Client

I recommend your localhost entry in your /etc/freeradius/clients.conf to be: client localhost { ipaddr = 127.0.0.1 secret = secret require_message_authenticator = no nas_type ...
user avatar
2 votes

starting hostapd fails -- ACS: Unable to collect survey data

FWIW I'm currently troubleshooting what I believe is a similar problem. I am using the built-in wireless interface on a RPi4 (2GB RAM) with hostapd + dnsmasq. It seems to work fine when I specify a ...
user avatar
  • 213
2 votes
Accepted

Is it possible to pipe config file to hostapd?

The | operator connects the STDOUT from one command to the STDIN of the next command. This will only work with downstream commands that take STDIN as an input. hostapd doesn't appear to have a ...
user avatar
  • 580
2 votes

hostapd: Failed to set channel (freq=2417): -16 (Device or resource busy)

Solution one: You could try sudo rfkill unblock wlan and repeat sudo hostapd /etc/hostapd/hostapd.conf as proposed here and tested on my raspberry pi, where I received the same error message as ...
user avatar
  • 303
2 votes

IEEE 802.11AC 8x8 MU-MIMO with multiple NICs

MIMO works by using the signal from all antennas at the same to do some "magic" signal processing that allows you to differentiate between stations from different directions (to phrase the underlying ...
user avatar
  • 29.4k
2 votes

Intel AX200 ap-mode

Intel driver does not support AP on 5GHz band at all for reasons unknown to me. Trying to launch it is just a waste of time (at the moment of writing), so if you've ended here via google search - just ...
user avatar
  • 131
2 votes

Intel AX200 ap-mode

It would be better for determining the exact issue if you could post the output of iw reg get. With that said, as I have had worked through a very similar issue on my AX200 (and later AX210 as well), ...
user avatar
  • 21
2 votes

Why can't hostapd service start AP configured in 5 GHz band using Intel AX200 based adapter?

i checked the list and Intel® Wi-Fi 6 AX200 160MHz shows: AP mode on 2.4GHz (on devices driven by iwlmvm) https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
user avatar
  • 1,683
2 votes
Accepted

Why can't hostapd service start AP configured in 5 GHz band using Intel AX200 based adapter?

To my surprise, the solution was installing the network-manager package. No additional configuration was required, not even setting the wireless interface as managed by NetworkManager. I replicated ...
user avatar
2 votes

How to filter ARP-Requests with Nftables using a Raspberry Pi as AP (using hostapd)

As some in the comments suggested, the key was the option ap_isolate in hostapd.conf. It didn´t work before because of missing support from the driver of the BCM43455 chip which is the built-in NIC of ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible