|
@@ -198,8 +198,8 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags,
|
|
if (chan->flags & IEEE80211_CHAN_RADAR)
|
|
if (chan->flags & IEEE80211_CHAN_RADAR)
|
|
NLA_PUT_FLAG(msg, NL80211_FREQUENCY_ATTR_RADAR);
|
|
NLA_PUT_FLAG(msg, NL80211_FREQUENCY_ATTR_RADAR);
|
|
|
|
|
|
- NLA_PUT_U8(msg, NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
|
|
|
|
- chan->max_power);
|
|
|
|
|
|
+ NLA_PUT_U32(msg, NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
|
|
|
|
+ DBM_TO_MBM(chan->max_power));
|
|
|
|
|
|
nla_nest_end(msg, nl_freq);
|
|
nla_nest_end(msg, nl_freq);
|
|
}
|
|
}
|