aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-02-25 10:24:38 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-03-06 15:30:46 -0500
commitd6d1a5a7096172a1592115331a420630adf47f8c (patch)
tree4c5ead46ee39eb3693bd313243222692b5f9fc66 /net/mac80211/sta_info.h
parentc1edd987a4ae08908d8ec08c550240ea065e0649 (diff)
mac80211: clean up mesh RX path a bit more
Moves another ifdef into the sta_info header file in favour of compiling more code even w/o CONFIG_MAC80211_MESH. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: Luis Carlos Cobo <luisca@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r--net/mac80211/sta_info.h8
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
238static 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