summaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorSunil Dutt <usdutt@qti.qualcomm.com>2017-12-13 19:51:36 +0200
committerJohannes Berg <johannes.berg@intel.com>2017-12-19 10:37:31 +0100
commit983dafaab799511e092ffd006f3a064b37ccbccf (patch)
tree1ad4f67c0576cd536c24509f941e4d01eef8ab05 /net/wireless/nl80211.c
parent86b6c465727cc917ec8367fef29b20ccf8ffa081 (diff)
downloadlinux-983dafaab799511e092ffd006f3a064b37ccbccf.tar.gz
linux-983dafaab799511e092ffd006f3a064b37ccbccf.tar.bz2
linux-983dafaab799511e092ffd006f3a064b37ccbccf.zip
cfg80211: Scan results to also report the per chain signal strength
This commit enhances the scan results to report the per chain signal strength based on the latest BSS update. This provides similar information to what is already available through STA information. Signed-off-by: Sunil Dutt <usdutt@qti.qualcomm.com> Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index e4dddfb64ced..b3f8970c3a47 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -7839,6 +7839,11 @@ static int nl80211_send_bss(struct sk_buff *msg, struct netlink_callback *cb,
intbss->ts_boottime, NL80211_BSS_PAD))
goto nla_put_failure;
+ if (!nl80211_put_signal(msg, intbss->pub.chains,
+ intbss->pub.chain_signal,
+ NL80211_BSS_CHAIN_SIGNAL))
+ goto nla_put_failure;
+
switch (rdev->wiphy.signal_type) {
case CFG80211_SIGNAL_TYPE_MBM:
if (nla_put_u32(msg, NL80211_BSS_SIGNAL_MBM, res->signal))