diff options
author | Julan Hsu <julanhsu@google.com> | 2019-01-15 18:28:42 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-01-19 03:54:36 -0500 |
commit | cc24163690997c685641d84e77ff6f1c592b06fe (patch) | |
tree | 9bb749a12989d2743f1a505e0e2cd47fddf7d1de /net/wireless | |
parent | d9bb410888ce1354ce29dcde671e1e21cc0c64cd (diff) |
nl80211/mac80211: mesh: add hop count to mpath info
Expose hop count to destination information in mpath info
Signed-off-by: Julan Hsu <julanhsu@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/nl80211.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index a89688929b16..159125e16c79 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -5827,7 +5827,10 @@ static int nl80211_send_mpath(struct sk_buff *msg, u32 portid, u32 seq, | |||
5827 | pinfo->discovery_timeout)) || | 5827 | pinfo->discovery_timeout)) || |
5828 | ((pinfo->filled & MPATH_INFO_DISCOVERY_RETRIES) && | 5828 | ((pinfo->filled & MPATH_INFO_DISCOVERY_RETRIES) && |
5829 | nla_put_u8(msg, NL80211_MPATH_INFO_DISCOVERY_RETRIES, | 5829 | nla_put_u8(msg, NL80211_MPATH_INFO_DISCOVERY_RETRIES, |
5830 | pinfo->discovery_retries))) | 5830 | pinfo->discovery_retries)) || |
5831 | ((pinfo->filled & MPATH_INFO_HOP_COUNT) && | ||
5832 | nla_put_u8(msg, NL80211_MPATH_INFO_HOP_COUNT, | ||
5833 | pinfo->hop_count))) | ||
5831 | goto nla_put_failure; | 5834 | goto nla_put_failure; |
5832 | 5835 | ||
5833 | nla_nest_end(msg, pinfoattr); | 5836 | nla_nest_end(msg, pinfoattr); |