aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-09-29 17:15:30 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-10-05 13:35:22 -0400
commit17e5a8082894a4b66cb69e7ec16074f0f01281e1 (patch)
tree604746f9c4aa8d77c41f1e22e9f553b5cdcfa823 /net/wireless
parent0bda652300dff8136c9d889f1133462c7c7d332c (diff)
downloadkernel_goldelico_gta04-17e5a8082894a4b66cb69e7ec16074f0f01281e1.zip
kernel_goldelico_gta04-17e5a8082894a4b66cb69e7ec16074f0f01281e1.tar.gz
kernel_goldelico_gta04-17e5a8082894a4b66cb69e7ec16074f0f01281e1.tar.bz2
nl80211: allow drivers to indicate whether the survey data channel is in use
Some user space applications only want to display survey data for the operating channel, however there is no API to get that yet. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 9c84825..0087c43 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -3489,6 +3489,8 @@ static int nl80211_send_survey(struct sk_buff *msg, u32 pid, u32 seq,
if (survey->filled & SURVEY_INFO_NOISE_DBM)
NLA_PUT_U8(msg, NL80211_SURVEY_INFO_NOISE,
survey->noise);
+ if (survey->filled & SURVEY_INFO_IN_USE)
+ NLA_PUT_FLAG(msg, NL80211_SURVEY_INFO_IN_USE);
nla_nest_end(msg, infoattr);