From: Bob Copeland Date: Thu, 25 Oct 2018 19:48:53 +0000 (-0400) Subject: {nl,mac}80211: report gate connectivity in station info X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=fc7ee7903366453f4a0a4f45959bef8d89834f41;p=carl9170fw.git {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 Signed-off-by: Johannes Berg Signed-off-by: Christian Lamparter --- diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index dc71644..2d94d0d 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -814,6 +814,8 @@ enum mesh_config_capab_flags { IEEE80211_MESHCONF_CAPAB_TBTT_ADJUSTING = 0x20, }; +#define IEEE80211_MESHCONF_FORM_CONNECTED_TO_GATE 0x1 + /** * mesh channel switch parameters element's flag indicator *