diff options
author | Bob Copeland <me@bobcopeland.com> | 2018-10-25 15:48:53 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-11-09 11:38:29 +0100 |
commit | dbdaee7aa6e61f56aac61b71a7807e76f92cc895 (patch) | |
tree | cfa0018280f5a983d6b77a475349388fc125375f /net/wireless/nl80211.c | |
parent | 4a6ecd35f95b0e29b3470ca16772a1cc89607c97 (diff) | |
download | linux-stable-dbdaee7aa6e61f56aac61b71a7807e76f92cc895.tar.gz linux-stable-dbdaee7aa6e61f56aac61b71a7807e76f92cc895.tar.bz2 linux-stable-dbdaee7aa6e61f56aac61b71a7807e76f92cc895.zip |
{nl,mac}80211: report gate connectivity in station info
Capture the current state of gate connectivity from the mesh
formation field in mesh config whenever we receive a beacon,
and report that via GET_STATION. This allows applications
doing mesh peering in userspace to make peering decisions
based on peers' current upstream connectivity.
Signed-off-by: Bob Copeland <bobcopeland@fb.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 5e7178954d61..f231059242cc 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4883,6 +4883,7 @@ static int nl80211_send_station(struct sk_buff *msg, u32 cmd, u32 portid, PUT_SINFO(LOCAL_PM, local_pm, u32); PUT_SINFO(PEER_PM, peer_pm, u32); PUT_SINFO(NONPEER_PM, nonpeer_pm, u32); + PUT_SINFO(CONNECTED_TO_GATE, connected_to_gate, u8); if (sinfo->filled & BIT_ULL(NL80211_STA_INFO_BSS_PARAM)) { bss_param = nla_nest_start(msg, NL80211_STA_INFO_BSS_PARAM); |