mac80211 takes these random values and treats them as maximum tx power for each channel.[/quotepi7psifo]
The value is _not_ random, it is provided by the hardware manufacturer as the correct value for that particular channel.
Valid values depend on hardware capabilities and regulatory domain. Perhaps in the past the driver allowed invalid values to be configured, but it has become more strict since then.
Future versions of the driver should at least support manual override of the txpower value, with a modprobe parameter.[/quote2ivokerh]
No they should not. What rt2x00 could do at the most, is change the max TXpower value and let the regulatory domain daemon sort the maximum allowed value. But a driver should not enforce illegal actions.
What is the regulatory domain daemon?[/quote2ztqvvzx]
The next kernel will have regulatory domain support to limit the allowed frequencies and txpower based on the current location. There will be a userspace side agent controlling the supported values.