summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJouni Malinen2008-11-21 18:01:30 +0100
committerJohn W. Linville2008-11-26 15:47:41 +0100
commite2f367f269fe19375f10e63efe0f2a6d3ddef8e6 (patch)
tree74cd1d3d89a9607159808a064c59684c7a962c45 /net/wireless
parentath5k: Clean up eeprom parsing and add missing calibration data (diff)
downloadkernel-qcow2-linux-e2f367f269fe19375f10e63efe0f2a6d3ddef8e6.tar.gz
kernel-qcow2-linux-e2f367f269fe19375f10e63efe0f2a6d3ddef8e6.tar.xz
kernel-qcow2-linux-e2f367f269fe19375f10e63efe0f2a6d3ddef8e6.zip
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>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 00121ceddb14..2e8464eaaaa2 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -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);
}