diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/mac80211.h | 8 |
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 | ||
468 | static 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 | * |