mac80211: clean up mesh code
[deliverable/linux.git] / include / net / mac80211.h
index 934cc25f757ac3014e72ea17e1d5a5c9677ddb98..6aca472d7a02d2428ffcd5ab51a4b7cff1fd9759 100644 (file)
@@ -465,6 +465,14 @@ struct ieee80211_vif {
        u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *))));
 };
 
+static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif)
+{
+#ifdef CONFIG_MAC80211_MESH
+       return vif->type == IEEE80211_IF_TYPE_MESH_POINT;
+#endif
+       return false;
+}
+
 /**
  * struct ieee80211_if_init_conf - initial configuration of an interface
  *
This page took 0.024938 seconds and 5 git commands to generate.