[MAC80211]: Add support for setting TX power and radio status
This adds support for disabling the radio and setting the TXpower through wext. This also fixes the prism TXpower ioctl (It always overwrote the TXpower value in ieee80211_hw_config()) Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
501d857ec9
commit
61609bc0e4
@@ -704,7 +704,12 @@ int ieee80211_hw_config(struct ieee80211_local *local)
|
||||
|
||||
local->hw.conf.channel = chan->chan;
|
||||
local->hw.conf.channel_val = chan->val;
|
||||
local->hw.conf.power_level = chan->power_level;
|
||||
if (!local->hw.conf.power_level) {
|
||||
local->hw.conf.power_level = chan->power_level;
|
||||
} else {
|
||||
local->hw.conf.power_level = min(chan->power_level,
|
||||
local->hw.conf.power_level);
|
||||
}
|
||||
local->hw.conf.freq = chan->freq;
|
||||
local->hw.conf.phymode = mode->mode;
|
||||
local->hw.conf.antenna_max = chan->antenna_max;
|
||||
|
Reference in New Issue
Block a user