diff options
author | Jouni Malinen <j@w1.fi> | 2008-11-22 15:00:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-26 09:47:48 -0500 |
commit | bf8c1ac6d81ba8c0e4dc2215f84f5e2a3c8227e8 (patch) | |
tree | 9ec81c268e2e16585a4b604237a36fc2728805fb /net/wireless | |
parent | 39d1ffee57c7ce02c90ec8e9272df8aa8ddf600f (diff) |
nl80211: Change max TX power to be in mBm instead of dBm
In order to be consistent with NL80211_ATTR_POWER_RULE_MAX_EIRP,
change NL80211_FREQUENCY_ATTR_MAX_TX_POWER to use mBm and U32 instead
of dBm and U8. This is a userspace interface change, but the previous
version had not yet been pushed upstream and there are no userspace
programs using this yet, so there is justification to get this change in
as long as it goes in before the previous version gets out.
Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/nl80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 2e8464eaaaa2..c9141e3df9ba 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -198,8 +198,8 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags, | |||
198 | if (chan->flags & IEEE80211_CHAN_RADAR) | 198 | if (chan->flags & IEEE80211_CHAN_RADAR) |
199 | NLA_PUT_FLAG(msg, NL80211_FREQUENCY_ATTR_RADAR); | 199 | NLA_PUT_FLAG(msg, NL80211_FREQUENCY_ATTR_RADAR); |
200 | 200 | ||
201 | NLA_PUT_U8(msg, NL80211_FREQUENCY_ATTR_MAX_TX_POWER, | 201 | NLA_PUT_U32(msg, NL80211_FREQUENCY_ATTR_MAX_TX_POWER, |
202 | chan->max_power); | 202 | DBM_TO_MBM(chan->max_power)); |
203 | 203 | ||
204 | nla_nest_end(msg, nl_freq); | 204 | nla_nest_end(msg, nl_freq); |
205 | } | 205 | } |