16 votes
Accepted

Why is hostapd masked after installation?

Just from the installation with sudo apt install hostapd there is nothing configured for the service. hostapd has no default setup so it doesn't make sense to start the service without it. To avoid ...
Ingo's user avatar
  • 42.1k
14 votes

How to configure hostapd for a 5Ghz network

TL;DR use hw_mode=a I see that the man pages for hostapd are quite useless I found a more useful page https://wiki.gentoo.org/wiki/Hostapd with the following example 802.11a/n/ac with WPA2-PSK and ...
Jaromanda X's user avatar
  • 2,415
4 votes
Accepted

How to use AP and Managed wifi?

You have to do three steps: create a virtual interface ap0 for the access point start access point daemon hostapd using interface ap0 start wpa_supplicant for wifi client using interface wlan0 You ...
Ingo's user avatar
  • 42.1k
4 votes
Accepted

Pi Zero W configuration to run AP + Client Mode on Raspbian Buster lite

There are many quirks with creating the virtual interface ap0. You have to follow exactly a sequence, otherwise it won't work. If other applications bind to the wifi port it cannot be set. create a ...
Ingo's user avatar
  • 42.1k
4 votes
Accepted

hostapd AP over both wlan0 and eth1

If you are open to use another modern all-in-one networking environment without needing additional helpers like hostapd, dnsmasq or bridge utils you can use systemd-networkd. It makes life easier. It ...
Ingo's user avatar
  • 42.1k
4 votes
Accepted

USB external antenna not working

What you have purchased isn't only an antenna to replace the built-in antenna (I don't believe that's possible), it is a complete new WiFi transmitter/receiver that can be used in addition to the ...
Ingo's user avatar
  • 42.1k
4 votes

Roboust Network connectivity

With the built-in wifi-device of a Raspberry Pi it is possible to create an access point together with an uplink client connection. This can be done with creating a virtual interface ap0 (or what name ...
Ingo's user avatar
  • 42.1k
4 votes

Can't resolve hostname in sub-network

You are asking for a general tutorial in name resolution which has nothing to do with Raspberry Pi. It is a general networking issue and I can only give an overview where you can look for more details....
Ingo's user avatar
  • 42.1k
3 votes

DNSMasq unknown interface wifi0 - failed to start

The Tutorial you used is not up to date as it was written in 2013 and seems to be written for normal Ubuntu not Ubuntu Core. I never used Ubuntu Core but they seem to use systemd-networkd: By ...
jake's user avatar
  • 1,347
3 votes

Unable to start/stop enable/disable install/remove hostapd

The solution passed to remove the service file in /etc/systemd/system/hostapd.service. Using cat in this file, because nano wasn't able to open it, I saw that the file was corrupted, so I delete the ...
David González Blazman's user avatar
3 votes
Accepted

Low wifi speed even with 5Ghz wifi adapter

Check out this test of RPi performance w.r.t various network interfaces. Built-in WiFi on an RPi 3 is capped at 36 Mbps, and a USB dongle is capped at about 80Mbps in ideal conditions. At 10 meters ...
Dmitry Grigoryev's user avatar
3 votes
Accepted

Rpi4 with Buster wpa_supplicant fails to connect to hostapd network hosted on Ubuntu laptop

Thanks to @Ingo suggesting a fresh installation of Buster, I was eventually able to track down the problem, which was due to an update in the package firmware-brcm80211. The current release of Buster (...
Joey Dodson's user avatar
3 votes

Creating an AP with hostapd and a Wi-Fi backend

It is unclear what you really want: I just need the ability to connect to the Pi through AP mode and the Pi should be able to contact a website for data But you are talking about wlan1 that is ...
Ingo's user avatar
  • 42.1k
3 votes
Accepted

Raspberry Pi w/Buster dynamic AP and Wi-fi client

I do not follow exactly all steps you have done because there are sophisticated dependencies between the services and interfaces. But here are some general thoughts that can explain your problems. The ...
Ingo's user avatar
  • 42.1k
3 votes

Pi 3 wifi access point

Using NOOBS is not a good idea. We have seen many problems here using it. If you only want to have an access point running on the RasPi then just download Raspberry Pi OS (32-bit) Lite, flash it to an ...
Ingo's user avatar
  • 42.1k
3 votes

Raspberry Pi as Access Point with hostapd crashes Pi whenever I try to connect

It seems that that one of hundred tutorials you used is somewhat outdated. You should use the tutorial given on the official Raspberry Pi site: Setting up a Raspberry Pi as a routed wireless access ...
Ingo's user avatar
  • 42.1k
3 votes

How to invoke the existing persistent p2p Go on restart of device (to create auto connect)

[EDITED AFTER FINDING A SOLUTION] To summarize the issue, when restarting wpa_supplicant on the Raspberry Pi and reinvoking a previously defined persistent group, the P2P Clients (e.g., Android phones)...
ircama's user avatar
  • 178
2 votes
Accepted

Wifi Repeater – Set Interface down by Default (dhcpcd)

You also asked: "Maybe you got even hints for a better solution in general." I prefer to use systemd-networkd because it has all in one. Using two USB/wifi dongle simplifies it a lot. So my hint is to ...
Ingo's user avatar
  • 42.1k
2 votes
Accepted

hostapd don't start at boot

I've resolved by myself, I have made a script in bash that restart the hostapd service with #!/bin/bash service hostapd restart and make it executable with sudo chmod +x /location/file then ...
Stefano's user avatar
  • 41
2 votes

Why is hostapd masked after installation?

As of Debian Buster with hostapd (2:2.7+git20190128+0c1e29f-6+deb10u3), there is a new configuration method which requires that the service be masked. In the past, one would uncomment the #DAEMON_CONF=...
Christian Chapman's user avatar
2 votes

Unable to configure Raspberry pi 3 B+ as a 5Ghz AP using 802.11ac in India

Try starting with channel=48 and without using acs_survey. Once you get something working you can experiment from there.
iamaguest's user avatar
2 votes

How to setup hostapd to send DNS server address during DHCP session start on RPizeroW wifi repeater

I was redirected here from the excellent thread of Ingo because I'm trying to make my RPi3 to act as WiFi extender. Like you, I followed every steps and I noticed that a device connected to the ...
DioZ's user avatar
  • 21
2 votes
Accepted

Interface (wlan) down after booting – have to restart hostapd service

Compared to the official guidelines you are missing a) an entry to the file /etc/default/hostapd: DAEMON_CONF="/etc/hostapd/hostapd.conf" b) an entry to the file dhcpcd.conf nohook wpa_supplicant
oh.dae.su's user avatar
  • 934
2 votes

Utilising a Raspberry Pi as a wireless access point and a webserver

You have configured a bridge with slave interfaces eth0 and wlan0. Everything looks good. You only have one (virtual) interface br0 with an ip address 192.168.1.90. Don't be confused by eth0 and ...
Ingo's user avatar
  • 42.1k
2 votes

Hide hostapd SSID broadcast once client connected

A client that knows the SSID will connect even if the SSID is hidden. So there is no need to hide it after the client connects, just run with it hidden all the time. You can manually add a new client ...
hardillb's user avatar
  • 196
2 votes

DHCP configuration in systemd

If you ask to configure DHCP in systemd I assume you mean to use systemd-networkd. Then with "automatically" enabled DHCP server you must have a DHCPServer=yes line in the [Network] section of your *....
Ingo's user avatar
  • 42.1k
2 votes
Accepted

Pi4 wifi repeater at 2.4Ghz

It turns out this was happening because I was trying to use the same wifi card as both a client and an access point. It was connecting to the WLAN network on channel 100, so depsite the hostapd ...
srossd's user avatar
  • 151
2 votes

Does RaspAP lock the file system?

Developer of RaspAP here. The project does not lock the file system or interfere with other services. I installed mosquitto after RaspAP, enabled the service and rebooted. Confirmed it's active and ...
billz's user avatar
  • 41
2 votes
Accepted

hostapd problems while setting up Pi 4 as Access Point

I had the same problem. By mistake, you set the config file /etc/hostapd/hostapd.conf to DAEMON_OPTS instead of DAEMON_CONF. 1. Add DAEMON_CONF="/etc/hostapd/hostapd.conf" to /etc/default/...
M. Rostami's user avatar
  • 4,323
2 votes
Accepted

How to disable standalone network configuration in raspberry pi?

Remove packages: apt-get -y remove hostapd dnsmasq bridge-utils Comment the line below from /etc/sysctl.conf: #net.ipv4.ip_forward=1 Reset iptables: iptables -F Delete following lines from ...
M. Rostami's user avatar
  • 4,323

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