diff options
author | Javier Cardona <javier@cozybit.com> | 2010-12-03 03:20:40 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-06 16:01:28 -0500 |
commit | 45904f21655cf4f0ae7d0fab5906fe51bf56ecf4 (patch) | |
tree | fd023d65b881b6cfcf1529eed7c1ad2523c166e1 /include | |
parent | b9e61f11f47035e3b4545b51fb547fef48eb3096 (diff) |
nl80211/mac80211: define and allow configuring mesh element TTL
The TTL in path selection information elements is different from
the mesh ttl used in mesh data frames. Version 7.03 of the 11s
draft calls this ttl 'Element TTL'.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nl80211.h | 4 | ||||
-rw-r--r-- | include/net/cfg80211.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 5cfa579df476..9e541452d805 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -1547,6 +1547,9 @@ enum nl80211_mntr_flags { | |||
1547 | * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh | 1547 | * @NL80211_MESHCONF_TTL: specifies the value of TTL field set at a source mesh |
1548 | * point. | 1548 | * point. |
1549 | * | 1549 | * |
1550 | * @NL80211_MESHCONF_ELEMENT_TTL: specifies the value of TTL field set at a | ||
1551 | * source mesh point for path selection elements. | ||
1552 | * | ||
1550 | * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically | 1553 | * @NL80211_MESHCONF_AUTO_OPEN_PLINKS: whether we should automatically |
1551 | * open peer links when we detect compatible mesh peers. | 1554 | * open peer links when we detect compatible mesh peers. |
1552 | * | 1555 | * |
@@ -1593,6 +1596,7 @@ enum nl80211_meshconf_params { | |||
1593 | NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, | 1596 | NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, |
1594 | NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, | 1597 | NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, |
1595 | NL80211_MESHCONF_HWMP_ROOTMODE, | 1598 | NL80211_MESHCONF_HWMP_ROOTMODE, |
1599 | NL80211_MESHCONF_ELEMENT_TTL, | ||
1596 | 1600 | ||
1597 | /* keep last */ | 1601 | /* keep last */ |
1598 | __NL80211_MESHCONF_ATTR_AFTER_LAST, | 1602 | __NL80211_MESHCONF_ATTR_AFTER_LAST, |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 6b2af7aeddd3..93a4b2068334 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -624,6 +624,8 @@ struct mesh_config { | |||
624 | u16 dot11MeshMaxPeerLinks; | 624 | u16 dot11MeshMaxPeerLinks; |
625 | u8 dot11MeshMaxRetries; | 625 | u8 dot11MeshMaxRetries; |
626 | u8 dot11MeshTTL; | 626 | u8 dot11MeshTTL; |
627 | /* ttl used in path selection information elements */ | ||
628 | u8 element_ttl; | ||
627 | bool auto_open_plinks; | 629 | bool auto_open_plinks; |
628 | /* HWMP parameters */ | 630 | /* HWMP parameters */ |
629 | u8 dot11MeshHWMPmaxPREQretries; | 631 | u8 dot11MeshHWMPmaxPREQretries; |