aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-02-23 09:17:19 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-03-06 15:30:42 -0500
commit902acc7896d7649fb30e4b22bd4e643c7f34b02c (patch)
tree8d8f2838fead8417e16e801383ddb2691a89719f /include/net/mac80211.h
parentf7a921443740d7dafc65b17aa32531730d358f50 (diff)
mac80211: clean up mesh code
Various cleanups, reducing the #ifdef mess and other things. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 934cc25f757a..6aca472d7a02 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -465,6 +465,14 @@ struct ieee80211_vif {
465 u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); 465 u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *))));
466}; 466};
467 467
468static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif)
469{
470#ifdef CONFIG_MAC80211_MESH
471 return vif->type == IEEE80211_IF_TYPE_MESH_POINT;
472#endif
473 return false;
474}
475
468/** 476/**
469 * struct ieee80211_if_init_conf - initial configuration of an interface 477 * struct ieee80211_if_init_conf - initial configuration of an interface
470 * 478 *