diff options
author | Bob Copeland | 2018-10-25 21:48:53 +0200 |
---|---|---|
committer | Johannes Berg | 2018-11-09 11:38:29 +0100 |
commit | dbdaee7aa6e61f56aac61b71a7807e76f92cc895 (patch) | |
tree | cfa0018280f5a983d6b77a475349388fc125375f /include/uapi | |
parent | mac80211: mesh: advertise gates in mesh formation (diff) | |
download | kernel-qcow2-linux-dbdaee7aa6e61f56aac61b71a7807e76f92cc895.tar.gz kernel-qcow2-linux-dbdaee7aa6e61f56aac61b71a7807e76f92cc895.tar.xz kernel-qcow2-linux-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 'include/uapi')
-rw-r--r-- | include/uapi/linux/nl80211.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index e45b88925783..ff6005edf32f 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -3116,6 +3116,8 @@ enum nl80211_sta_bss_param { * with an FCS error (u32, from this station). This count may not include * some packets with an FCS error due to TA corruption. Hence this counter * might not be fully accurate. + * @NL80211_STA_INFO_CONNECTED_TO_GATE: set to true if STA has a path to a + * mesh gate * @__NL80211_STA_INFO_AFTER_LAST: internal * @NL80211_STA_INFO_MAX: highest possible station info attribute */ @@ -3158,6 +3160,7 @@ enum nl80211_sta_info { NL80211_STA_INFO_ACK_SIGNAL_AVG, NL80211_STA_INFO_RX_MPDUS, NL80211_STA_INFO_FCS_ERROR_COUNT, + NL80211_STA_INFO_CONNECTED_TO_GATE, /* keep last */ __NL80211_STA_INFO_AFTER_LAST, |