aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorThomas Pedersen <thomas@cozybit.com>2012-11-13 13:46:27 -0500
committerJohannes Berg <johannes.berg@intel.com>2012-11-13 15:43:55 -0500
commitf4bda337bbb6e245e2a07f344990adeb6a70ff35 (patch)
tree6ccf2bc38fb67098df931ce55eb0905959813864 /net/mac80211/ieee80211_i.h
parent2a91c9f781de209d420d751e43eb43ffe6934803 (diff)
mac80211: support RX_FLAG_MACTIME_END
Allow drivers to indicate their mactime is at RX completion and adjust for this in mac80211. Also rename the existing RX_FLAG_MACTIME_MPDU to RX_FLAG_MACTIME_START to clarify its intent. Based on similar code by Johannes Berg. Signed-off-by: Thomas Pedersen <thomas@cozybit.com> [fix docs, atheros drivers] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index e1fb97cc9a41..bff82a8e62f3 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1259,7 +1259,18 @@ static inline int ieee80211_bssid_match(const u8 *raddr, const u8 *addr)
1259 is_broadcast_ether_addr(raddr); 1259 is_broadcast_ether_addr(raddr);
1260} 1260}
1261 1261
1262static inline bool
1263ieee80211_have_rx_timestamp(struct ieee80211_rx_status *status)
1264{
1265 WARN_ON_ONCE(status->flag & RX_FLAG_MACTIME_START &&
1266 status->flag & RX_FLAG_MACTIME_END);
1267 return status->flag & (RX_FLAG_MACTIME_START | RX_FLAG_MACTIME_END);
1268}
1262 1269
1270u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,
1271 struct ieee80211_rx_status *status,
1272 unsigned int mpdu_len,
1273 unsigned int mpdu_offset);
1263int ieee80211_hw_config(struct ieee80211_local *local, u32 changed); 1274int ieee80211_hw_config(struct ieee80211_local *local, u32 changed);
1264void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx); 1275void ieee80211_tx_set_protected(struct ieee80211_tx_data *tx);
1265void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, 1276void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,