aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi
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 /drivers/net/wireless/rtlwifi
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 'drivers/net/wireless/rtlwifi')
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192ce/trx.c2
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192cu/trx.c2
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192de/trx.c2
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192se/trx.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c
index 390d6d4fcaa0..a8fecd7638f6 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.c
@@ -567,7 +567,7 @@ bool rtl92ce_rx_query_desc(struct ieee80211_hw *hw,
567 if (GET_RX_DESC_RXHT(pdesc)) 567 if (GET_RX_DESC_RXHT(pdesc))
568 rx_status->flag |= RX_FLAG_HT; 568 rx_status->flag |= RX_FLAG_HT;
569 569
570 rx_status->flag |= RX_FLAG_MACTIME_MPDU; 570 rx_status->flag |= RX_FLAG_MACTIME_START;
571 571
572 if (stats->decrypted) 572 if (stats->decrypted)
573 rx_status->flag |= RX_FLAG_DECRYPTED; 573 rx_status->flag |= RX_FLAG_DECRYPTED;
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c
index 6e66f04c363f..b6222eedb835 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c
@@ -334,7 +334,7 @@ bool rtl92cu_rx_query_desc(struct ieee80211_hw *hw,
334 rx_status->flag |= RX_FLAG_40MHZ; 334 rx_status->flag |= RX_FLAG_40MHZ;
335 if (GET_RX_DESC_RX_HT(pdesc)) 335 if (GET_RX_DESC_RX_HT(pdesc))
336 rx_status->flag |= RX_FLAG_HT; 336 rx_status->flag |= RX_FLAG_HT;
337 rx_status->flag |= RX_FLAG_MACTIME_MPDU; 337 rx_status->flag |= RX_FLAG_MACTIME_START;
338 if (stats->decrypted) 338 if (stats->decrypted)
339 rx_status->flag |= RX_FLAG_DECRYPTED; 339 rx_status->flag |= RX_FLAG_DECRYPTED;
340 rx_status->rate_idx = rtlwifi_rate_mapping(hw, 340 rx_status->rate_idx = rtlwifi_rate_mapping(hw,
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/trx.c b/drivers/net/wireless/rtlwifi/rtl8192de/trx.c
index 4686f340b9d6..3baaf21abed4 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192de/trx.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192de/trx.c
@@ -514,7 +514,7 @@ bool rtl92de_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats,
514 rx_status->flag |= RX_FLAG_40MHZ; 514 rx_status->flag |= RX_FLAG_40MHZ;
515 if (GET_RX_DESC_RXHT(pdesc)) 515 if (GET_RX_DESC_RXHT(pdesc))
516 rx_status->flag |= RX_FLAG_HT; 516 rx_status->flag |= RX_FLAG_HT;
517 rx_status->flag |= RX_FLAG_MACTIME_MPDU; 517 rx_status->flag |= RX_FLAG_MACTIME_START;
518 if (stats->decrypted) 518 if (stats->decrypted)
519 rx_status->flag |= RX_FLAG_DECRYPTED; 519 rx_status->flag |= RX_FLAG_DECRYPTED;
520 rx_status->rate_idx = rtlwifi_rate_mapping(hw, 520 rx_status->rate_idx = rtlwifi_rate_mapping(hw,
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/trx.c b/drivers/net/wireless/rtlwifi/rtl8192se/trx.c
index e3cf4c02122a..26d027cb5069 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192se/trx.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192se/trx.c
@@ -554,7 +554,7 @@ bool rtl92se_rx_query_desc(struct ieee80211_hw *hw, struct rtl_stats *stats,
554 if (stats->is_ht) 554 if (stats->is_ht)
555 rx_status->flag |= RX_FLAG_HT; 555 rx_status->flag |= RX_FLAG_HT;
556 556
557 rx_status->flag |= RX_FLAG_MACTIME_MPDU; 557 rx_status->flag |= RX_FLAG_MACTIME_START;
558 558
559 /* hw will set stats->decrypted true, if it finds the 559 /* hw will set stats->decrypted true, if it finds the
560 * frame is open data frame or mgmt frame, 560 * frame is open data frame or mgmt frame,