diff options
author | Arik Nemtsov <arik@wizery.com> | 2014-10-22 05:32:48 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-10-23 14:40:02 -0400 |
commit | 8b94148cfec4c40f4c55308fdcd816bbfe2b4016 (patch) | |
tree | 838ee7d02e37999303a621c2382130ec968755f7 /include/net/mac80211.h | |
parent | 452218d9fd22505ed790e95b460b0f40cebb95a0 (diff) |
mac80211: expose TDLS-initiator value to low level driver
Some drivers need to know which station is the TDLS link initiator.
Expose this value via the mac80211 ieee80211_sta structure.
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 96d224357c8c..99dd3ce7484e 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1427,6 +1427,8 @@ struct ieee80211_sta_rates { | |||
1427 | * @smps_mode: current SMPS mode (off, static or dynamic) | 1427 | * @smps_mode: current SMPS mode (off, static or dynamic) |
1428 | * @rates: rate control selection table | 1428 | * @rates: rate control selection table |
1429 | * @tdls: indicates whether the STA is a TDLS peer | 1429 | * @tdls: indicates whether the STA is a TDLS peer |
1430 | * @tdls_initiator: indicates the STA is an initiator of the TDLS link. Only | ||
1431 | * valid if the STA is a TDLS peer in the first place. | ||
1430 | */ | 1432 | */ |
1431 | struct ieee80211_sta { | 1433 | struct ieee80211_sta { |
1432 | u32 supp_rates[IEEE80211_NUM_BANDS]; | 1434 | u32 supp_rates[IEEE80211_NUM_BANDS]; |
@@ -1442,6 +1444,7 @@ struct ieee80211_sta { | |||
1442 | enum ieee80211_smps_mode smps_mode; | 1444 | enum ieee80211_smps_mode smps_mode; |
1443 | struct ieee80211_sta_rates __rcu *rates; | 1445 | struct ieee80211_sta_rates __rcu *rates; |
1444 | bool tdls; | 1446 | bool tdls; |
1447 | bool tdls_initiator; | ||
1445 | 1448 | ||
1446 | /* must be last */ | 1449 | /* must be last */ |
1447 | u8 drv_priv[0] __aligned(sizeof(void *)); | 1450 | u8 drv_priv[0] __aligned(sizeof(void *)); |