mac80211: make use of regulatory tx power settings on change of tx power
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 22 Oct 2008 20:13:53 +0000 (13:13 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 31 Oct 2008 23:00:52 +0000 (19:00 -0400)
commitd9d2925713d92bbe33b2edff3d7de1ce5646ab54
tree4158ac6cb1615183a2d7dcb34b97a341597b2d21
parente2ef12d3fdb771002e7c7b6bd8f19902b1934e03
mac80211: make use of regulatory tx power settings on change of tx power

We do not know what max power to allow until a device is targeting
a channel, therefore only allow changing tx power if a channel is defined.
Also make use of the channel's max power setting as defined by
regulatory rules before allowing the user to use the requested power
setting. If the user asked us to figure it out we use the max allowed
by regulatory.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/wext.c