I am trying to configure my wifi to reliably connect at start-up on a headless device.
I currently have done this with a simple entry in /etc/network/interfaces, along the lines of
auto wlan0 iface wlan0 inet static wpa-ssid <my ssid> wpa-psk <my psk> address <address> netmaks <netmask> gateway <gateway>
Now I also need to set txpower (which also requires me to set the region (reg) as I understand it).
I can do this from the command line with
iw reg set ... and
iwconfig wlan0 txpower .... However, what I need is for these values to be reliably set on startup.
I have looked in what I believe is the documentation for configuring wifi in /etc/interfaces, which is /usr/share/doc/wpasupplicant/README.modes.gz, but this does not seem to have any information on setting transmit power.
How can I achieve this?