aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2014-10-08 02:48:35 -0400
committerJohannes Berg <johannes.berg@intel.com>2014-10-09 05:30:08 -0400
commit2ba45384e5426b9a4aeb77656dce0bf3250ce54e (patch)
treeecb6921c85ad60f21c7cb10b5210e15f6cfee9f8 /include/net/mac80211.h
parenta2db2ed3fb7d35ff2405d08fc012a5db8ddb36e0 (diff)
mac80211: add device_timestamp to the ieee80211_channel_switch struct
Some devices may need the device timestamp in order to synchronize the channel switch. To pass this value back to the driver, add it to the channel switch structure and copy the device_timestamp value received in the rx info structure into it. Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 0ad1f47d2dc7..ec0a5b07055b 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1117,6 +1117,8 @@ struct ieee80211_conf {
1117 * Function (TSF) timer when the frame containing the channel switch 1117 * Function (TSF) timer when the frame containing the channel switch
1118 * announcement was received. This is simply the rx.mactime parameter 1118 * announcement was received. This is simply the rx.mactime parameter
1119 * the driver passed into mac80211. 1119 * the driver passed into mac80211.
1120 * @device_timestamp: arbitrary timestamp for the device, this is the
1121 * rx.device_timestamp parameter the driver passed to mac80211.
1120 * @block_tx: Indicates whether transmission must be blocked before the 1122 * @block_tx: Indicates whether transmission must be blocked before the
1121 * scheduled channel switch, as indicated by the AP. 1123 * scheduled channel switch, as indicated by the AP.
1122 * @chandef: the new channel to switch to 1124 * @chandef: the new channel to switch to
@@ -1124,6 +1126,7 @@ struct ieee80211_conf {
1124 */ 1126 */
1125struct ieee80211_channel_switch { 1127struct ieee80211_channel_switch {
1126 u64 timestamp; 1128 u64 timestamp;
1129 u32 device_timestamp;
1127 bool block_tx; 1130 bool block_tx;
1128 struct cfg80211_chan_def chandef; 1131 struct cfg80211_chan_def chandef;
1129 u8 count; 1132 u8 count;