aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-09-10 18:02:02 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-09-15 16:48:23 -0400
commit17741cdc264e4d768167766a252210e201c1519a (patch)
tree72c0e697af29a40c03bce002b529c3951d34a3b7 /net/mac80211/sta_info.h
parent8aa21e6fd703cb3fed66ac07dcbcb861f00cf6d6 (diff)
mac80211: share STA information with driver
This patch changes mac80211 to share some more data about stations with drivers. Should help iwlwifi and ath9k when they get around to updating, and might also help with implementing rate control algorithms without internals. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: Sujith Manoharan <Sujith.Manoharan@atheros.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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h
index 220079900991..e7ce12dbf270 100644
--- a/net/mac80211/sta_info.h
+++ b/net/mac80211/sta_info.h
@@ -218,6 +218,7 @@ struct sta_ampdu_mlme {
218 * @plink_timeout: TBD 218 * @plink_timeout: TBD
219 * @plink_timer: TBD 219 * @plink_timer: TBD
220 * @debugfs: debug filesystem info 220 * @debugfs: debug filesystem info
221 * @sta: station information we share with the driver
221 */ 222 */
222struct sta_info { 223struct sta_info {
223 /* General information, mostly static */ 224 /* General information, mostly static */
@@ -232,8 +233,7 @@ struct sta_info {
232 spinlock_t flaglock; 233 spinlock_t flaglock;
233 struct ieee80211_ht_info ht_info; 234 struct ieee80211_ht_info ht_info;
234 u64 supp_rates[IEEE80211_NUM_BANDS]; 235 u64 supp_rates[IEEE80211_NUM_BANDS];
235 u8 addr[ETH_ALEN]; 236
236 u16 aid;
237 u16 listen_interval; 237 u16 listen_interval;
238 238
239 /* 239 /*
@@ -327,6 +327,9 @@ struct sta_info {
327 struct dentry *agg_status; 327 struct dentry *agg_status;
328 } debugfs; 328 } debugfs;
329#endif 329#endif
330
331 /* keep last! */
332 struct ieee80211_sta sta;
330}; 333};
331 334
332static inline enum plink_state sta_plink_state(struct sta_info *sta) 335static inline enum plink_state sta_plink_state(struct sta_info *sta)