I need to lower the transmission rate of my IEEE 802.11g network interface controller to have acceptable packet loss ratio (< 0.5 %), otherwise it becomes very high (> 50 % is typical, but it varies). I use NetworkManager to handle my network connection, however it (At least in this version of Debian) doesn't has a option to lower the transmission rate, so I do it manually through the command line with
sudo iwconfig wlan0 rate 1M every time I power on the computer.
How can I configure my GNU/Linux system so that the transmission rate is 1 Mbit/s by default (without having to set it manually every time I boot the computer)?.
Note: I connect only to a single wireless network, but it's not always available every time I power on the computer (this is because I'm not in that location, not a technical problem), and connecting isn't immediate anyway, so I can't work around the problem by making a script that is run when I log-in to the graphic environment and does
iwconfig lwan0 rate 1M.
Thanks in advance.