aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/nl80211.h3
-rw-r--r--net/wireless/nl80211.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 54d6ebe38e39..e08c8bcfb78d 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -508,7 +508,8 @@ enum nl80211_band_attr {
508 * on this channel in current regulatory domain. 508 * on this channel in current regulatory domain.
509 * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory 509 * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory
510 * on this channel in current regulatory domain. 510 * on this channel in current regulatory domain.
511 * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in dBm. 511 * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm
512 * (100 * dBm).
512 */ 513 */
513enum nl80211_frequency_attr { 514enum nl80211_frequency_attr {
514 __NL80211_FREQUENCY_ATTR_INVALID, 515 __NL80211_FREQUENCY_ATTR_INVALID,
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 }