From: Javier Cardona Date: Tue, 9 Aug 2011 23:45:08 +0000 (-0700) Subject: mac80211: mesh gate implementation X-Git-Tag: 1.9.5~24 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=cbb4c4799ff0ed314b91461c332ac48a513ce8f4 mac80211: mesh gate implementation In this implementation, a mesh gate is a root node with a certain bit set in its RANN flags. The mpath to this root node is marked as a path to a gate, and added to our list of known gates for this if_mesh. Once a path discovery process fails, we forward the unresolved frames to a known gate. Thanks to Luis Rodriguez for refactoring and bug fix help. Signed-off-by: Javier Cardona Signed-off-by: John W. Linville Signed-off-by: Christian Lamparter --- diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 7efc875..2f726e3 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -646,6 +646,10 @@ struct ieee80211_rann_ie { u32 rann_metric; } __attribute__ ((packed)); +enum ieee80211_rann_flags { + RANN_FLAG_IS_GATE = 1 << 0, +}; + #define WLAN_SA_QUERY_TR_ID_LEN 2 struct ieee80211_mgmt {