]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
mac80211: Fix tx power setting
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Wed, 24 Dec 2008 08:23:11 +0000 (13:53 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 20:59:36 +0000 (15:59 -0500)
commite3c92df08cbf6a0cb60a9c7ce377378383967e07
tree088d70d7924c6dac0e900d4190db928623ec3c76
parenta085ff718c8c9f14c44feb337774fadfd982e1a5
mac80211: Fix tx power setting

power_level in ieee80211_conf is being used for more than one
purpose. It being used as user configured power limit and the
final power limit given to the driver. By doing so, except very
first time, the tx power limit is taken from min(chan->max_power,
local->hw.conf.power_level) which is not what we want. This patch
defines a new memeber in ieee80211_conf which is meant only for
user configured power limit.

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/main.c
net/mac80211/wext.c