If you are running Ubuntu, you can decrease your tx level using
First, run the following command to list your available devices:
The wireless device in the following example is
wlp2s0 and your broadcast device name may be different so use the wireless device from your list.
sudo iwconfig wlp2s0 txpower 0
The command will set the txpower to 0 dBm which is equal to 1 mW. The default is usually set to 20 dBm. I have found that my devices usually perform well at less than 20 dBm. You can change the txpower value as needed. Here is the formula to calculate mW from dBm for reference:
mW = 10dBm/10
- 20 = 100 mW
- 10 = 10 mW
- 5 = 3 mW
- 0 = 1 mW
Next, if there is not much interference and you are not using devices over a large range, you can also reduce the "retry" value but this may cause a more noticeable decline in performance. I believe the default retry value is usually "short 7". Here is an example:
sudo iwconfig wlp2s0 retry short 5
iwconfig command to verify your settings.
Additionally, you can use the power saving "Power Management" feature as well. Again, this feature sometimes negatively affects performance so you will need to test it out.
sudo iwconfig wlp2s0 power on
and use the
power off option instead to disable power management.
iwconfig commands are not persistent across reboots so you will need to run them again after you reboot or as a startup script or something like that. I've never used these settings with HostAPd so settings like Power Management and retry may perform differently for your setup.
Finally, there are some basic HostAPd examples for your configuration file at the Ubuntu WifiDocs WirelessAccessPoint help page. If your setup is currently working, these basic examples are not be needed.
However, an extremely detailed example config file can be found here. Of course, you will need to uncomment any lines you want to use and you can just copy and paste these lines into your
/etc/hostapd/hostapd.conf configuration file. To generate a copy of the detailed example file in your home directory (for future reference), run the following command:
zcat /usr/share/doc/hostapd/examples/hostapd.conf.gz | tee ~/hostapd.conf
The detailed example file does mention beamforming (beamformer and beamformee) and there many other settings that will help you achieve your goal (Station inactivity limit" amongst many others). However, your ability to use these features will be based on the capabilities of your hardware.
hostapd Ubuntu manpage
hostapd_cli Ubuntu manpage