diff options
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r-- | net/mac80211/sta_info.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index 4ad500373d5a..4d0840b8c58e 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h | |||
@@ -235,6 +235,14 @@ struct sta_info { | |||
235 | #endif | 235 | #endif |
236 | }; | 236 | }; |
237 | 237 | ||
238 | static inline enum plink_state sta_plink_state(struct sta_info *sta) | ||
239 | { | ||
240 | #ifdef CONFIG_MAC80211_MESH | ||
241 | return sta->plink_state; | ||
242 | #endif | ||
243 | return LISTEN; | ||
244 | } | ||
245 | |||
238 | 246 | ||
239 | /* Maximum number of concurrently registered stations */ | 247 | /* Maximum number of concurrently registered stations */ |
240 | #define MAX_STA_COUNT 2007 | 248 | #define MAX_STA_COUNT 2007 |