I have just bought a Raspberry Pi 4 and would like to use it as a wifi access point (for information, I will probably install Gentoo with hostapd in it).
I would like this access point to be in “passive” mode, only listening to new device probes and not emitting beacon when there is no station connected to it. I looked at hostapd configuration file, but I could not find anything suitable.
I wonder if I can, by order of preference:
- find a configuration option to manage this automatically;
- be able to automatically capture connection/disconnection events and switch beacon on/off using a bit of shell scripting;
- if nothing else is available, modify a driver or an application to add this no beacon idle mode.
I've once heard of a company selling AP with such a configuration, but after days of research all over the internet, I couldn't find anything for me to do it in my RPi.
Have someone ever heard of a way to do this?
(Note: I initially asked this question on stackoverflow, but have been redirected here for “off-topic”)
iw --help | less. There are many low level options to configure the WiFi driver, also adjusting the beacon count. What if you set it to 0? – Ingo May 13 '20 at 22:45