nl80211: Report max TX power in NL80211_BAND_ATTR_FREQS
This is useful information to provide for userspace (e.g., hostapd needs this to generate Country IE). Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
1048643ea9
commit
e2f367f269
2 changed files with 7 additions and 0 deletions
|
@ -198,6 +198,9 @@ static int nl80211_send_wiphy(struct sk_buff *msg, u32 pid, u32 seq, int flags,
|
|||
if (chan->flags & IEEE80211_CHAN_RADAR)
|
||||
NLA_PUT_FLAG(msg, NL80211_FREQUENCY_ATTR_RADAR);
|
||||
|
||||
NLA_PUT_U8(msg, NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
|
||||
chan->max_power);
|
||||
|
||||
nla_nest_end(msg, nl_freq);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue