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>
This commit is contained in:
@@ -1429,6 +1429,7 @@ enum monitor_flags {
|
||||
* @MPATH_INFO_DISCOVERY_TIMEOUT: @discovery_timeout filled
|
||||
* @MPATH_INFO_DISCOVERY_RETRIES: @discovery_retries filled
|
||||
* @MPATH_INFO_FLAGS: @flags filled
|
||||
* @MPATH_INFO_HOP_COUNT: @hop_count filled
|
||||
*/
|
||||
enum mpath_info_flags {
|
||||
MPATH_INFO_FRAME_QLEN = BIT(0),
|
||||
@@ -1438,6 +1439,7 @@ enum mpath_info_flags {
|
||||
MPATH_INFO_DISCOVERY_TIMEOUT = BIT(4),
|
||||
MPATH_INFO_DISCOVERY_RETRIES = BIT(5),
|
||||
MPATH_INFO_FLAGS = BIT(6),
|
||||
MPATH_INFO_HOP_COUNT = BIT(7)
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1457,6 +1459,7 @@ enum mpath_info_flags {
|
||||
* This number should increase every time the list of mesh paths
|
||||
* changes, i.e. when a station is added or removed, so that
|
||||
* userspace can tell whether it got a consistent snapshot.
|
||||
* @hop_count: hops to destination
|
||||
*/
|
||||
struct mpath_info {
|
||||
u32 filled;
|
||||
@@ -1467,6 +1470,7 @@ struct mpath_info {
|
||||
u32 discovery_timeout;
|
||||
u8 discovery_retries;
|
||||
u8 flags;
|
||||
u8 hop_count;
|
||||
|
||||
int generation;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user