aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.h
diff options
context:
space:
mode:
authorJavier Cardona <javier@cozybit.com>2011-05-13 13:45:43 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-05-16 14:10:49 -0400
commit57cf8043a64b56a10b9f194572548a3dfb62e596 (patch)
treea0b9530e824c7e7b1417e20f87e800819abfe285 /net/mac80211/sta_info.h
parent108697c44b8e50bea3505c6bf9667da4627cb2d5 (diff)
nl80211: Move peer link state definition to nl80211
These definitions need to be exposed now that we can set the peer link states via NL80211_ATTR_STA_PLINK_STATE. They were already being (opaquely) reported by NL80211_STA_INFO_PLINK_STATE. Signed-off-by: Javier Cardona <javier@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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h
index d6b566076f05..c6ae8718bd57 100644
--- a/net/mac80211/sta_info.h
+++ b/net/mac80211/sta_info.h
@@ -318,7 +318,7 @@ struct sta_info {
318 u8 plink_retries; 318 u8 plink_retries;
319 bool ignore_plink_timer; 319 bool ignore_plink_timer;
320 bool plink_timer_was_running; 320 bool plink_timer_was_running;
321 enum plink_state plink_state; 321 enum nl80211_plink_state plink_state;
322 u32 plink_timeout; 322 u32 plink_timeout;
323 struct timer_list plink_timer; 323 struct timer_list plink_timer;
324#endif 324#endif
@@ -336,12 +336,12 @@ struct sta_info {
336 struct ieee80211_sta sta; 336 struct ieee80211_sta sta;
337}; 337};
338 338
339static inline enum plink_state sta_plink_state(struct sta_info *sta) 339static inline enum nl80211_plink_state sta_plink_state(struct sta_info *sta)
340{ 340{
341#ifdef CONFIG_MAC80211_MESH 341#ifdef CONFIG_MAC80211_MESH
342 return sta->plink_state; 342 return sta->plink_state;
343#endif 343#endif
344 return PLINK_LISTEN; 344 return NL80211_PLINK_LISTEN;
345} 345}
346 346
347static inline void set_sta_flags(struct sta_info *sta, const u32 flags) 347static inline void set_sta_flags(struct sta_info *sta, const u32 flags)